[Help] Всё отрубить

123
TAFF
На сайте с 28.08.2008
Offline
140
#11
myhand:
TAFF, отладочную информацию в yum включите. ключик -d

/ru/forum/416055 #8, по сути ничего не изменилось, та информация актуальна

✓ Администрирование (/ru/forum/494299) | ✓ Домены (/ru/forum/298049) | ✓ Продажа аккаунтов narod.ru (/ru/forum/585347)
M
На сайте с 16.09.2009
Offline
278
#12

Проверьте конфигурацию yum. Есть вероятность, что нечто подредактировали до нечитаемого вида:

cat /etc/yum.conf

ls /etc/yum/ /etc/yum.d/

покажите файлы в этих директориях (cat)

Абонементное сопровождение серверов (Debian) Отправить личное сообщение (), написать письмо ().
TAFF
На сайте с 28.08.2008
Offline
140
#13
myhand:
cat /etc/yum.conf
# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

# Default.
# installonly_limit = 3

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
myhand:
ls /etc/yum/ /etc/yum.d/
# ls /etc/yum/ /etc/yum.d/
ls: /etc/yum.d/: No such file or directory
/etc/yum/:
pluginconf.d

10 символов

M
На сайте с 16.09.2009
Offline
278
#14

ну и что в файлах директории /etc/yum.repos.d/, что в /etc/yum/pluginconf.d/ ?

TAFF
На сайте с 28.08.2008
Offline
140
#15
myhand:
ну и что в файлах директории /etc/yum.repos.d/
# ls /etc/yum.repos.d
CentOS-Base.repo
myhand:
что в /etc/yum/pluginconf.d/ ?
# ls /etc/yum/pluginconf.d/
fastestmirror.conf

упс тупанул, минутку...

TAFF добавил 20.11.2009 в 20:34

TAFF:
CentOS-Base.repo
# cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

TAFF:
fastestmirror.conf
cat /etc/yum/pluginconf.d/fastestmirror.conf
# cat /etc/yum/pluginconf.d/fastestmirror.conf
[main]
enabled=0
verbose=0
socket_timeout=3
hostfilepath=/var/cache/yum/timedhosts.txt
maxhostfileage=10
maxthreads=15

10символов

M
На сайте с 16.09.2009
Offline
278
#16

высвободите память

rpm -e yum-fastestmirror

и затем yum install ...

TAFF
На сайте с 28.08.2008
Offline
140
#17
myhand:
rpm -e yum-fastestmirror

# rpm -e yum-fastestmirror

error: Failed dependencies:

yum-fastestmirror is needed by (installed) yum-3.2.8-9.el5.centos.2.1.noarch

myhand:
и затем yum install ...

yum install

There was a problem importing one of the Python modules

required to run yum. The error leading to this problem was:

/usr/lib/python2.4/site-packages/_sqlite.so: failed to map segment from shared object: Cannot allocate memory

Please install a package which provides this module, or

verify that the module is installed correctly.

It's possible that the above module doesn't match the

current version of Python, which is:

2.4.3 (#1, May 24 2008, 13:47:28)

[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]

If you cannot solve this problem yourself, please go to

the yum faq at:

http://wiki.linux.duke.edu/YumFaq

M
На сайте с 16.09.2009
Offline
278
#18

у вас тупо не хватает памяти.

освободите память - потом запускайте yum

включите (enable=1 в /etc/yum/pluginconf.d/fastestmirror.conf) - после освобождения памяти должно все работать

TAFF
На сайте с 28.08.2008
Offline
140
#19

myhand, Понимаю, клик, как можно "все отрубить" чтобы воспользоваться yum'ом?

M
На сайте с 16.09.2009
Offline
278
#20

вам cyber2 это уже написал. (оставьте только sshd сервис, по крайней мере).

123

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий