他们买的VPS上只装了最最基本的东西,连DNS都没有配置,更别说GCC之类的了。
还好系统是CentOS的,可以装yum,于是下了好多包来装上(包括一大堆为解决依赖问题的),然而在执行yum check-update的时候出现问题:
GLib-CRITICAL **: file gtimer.c: line 106 (g_timer_stop): assertion `timer != NULL’ failed
==============================================
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
(process:15875): GLib-CRITICAL **: file gtimer.c: line 106 (g_timer_stop): assertion `timer != NULL’ failed
(process:15875): GLib-CRITICAL **: file gtimer.c: line 88 (g_timer_destroy): assertion `timer != NULL’ failed
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 97, in main
result, resultmsgs = do()
File "/usr/share/yum-cli/cli.py", line 470, in doCommands
return self.installPkgs()
File "/usr/share/yum-cli/cli.py", line 836, in installPkgs
self.doRepoSetup()
File "/usr/share/yum-cli/cli.py", line 75, in doRepoSetup
self.doSackSetup(thisrepo=thisrepo)
File "__init__.py", line 260, in doSackSetup
File "repos.py", line 277, in populateSack
File "/usr/lib64/python2.3/site-packages/sqlitecachec.py", line 40, in getPrimary
self.repoid))
TypeError: Can not create index on requires table: near "NOT": syntax error
==============================================
看来是Sqlite出问题了,重装试试:
[root@ve026591 ~]# rpm -qa | grep sqlite
python-sqlite-1.1.7-1.2.1
libsqlite-3.2.1-1
[root@ve026591 ~]# rpm -e libsqlite-3.2.1-1
error: Failed dependencies:
libsqlite3.so.0 is needed by (installed) python-sqlite-1.1.7-1.2.1.i386
libsqlite3.so.0 is needed by (installed) yum-metadata-parser-1.0-8.el4.centos.i386
[root@ve026591 ~]# rpm -e libsqlite-3.2.1-1 –nodeps
[root@ve026591 Linux]# rpm -ivh sqlite-3.3.6-2.i386.rpm
Preparing… ########################################### [100%]
1:sqlite ########################################### [100%]
[root@ve026591 ~]# rpm -e yum-2.4.3-4.el4.centos yum-metadata-parser-1.0-8.el4.centos
[root@ve026591 ~]# rpm -qa | grep yum
centos-yumconf-4-4.5
[root@ve026591 ~]# rpm -ivh yum-metadata-parser-1.0-8.el4.centos.i386.rpm
Preparing… ########################################### [100%]
1:yum-metadata-parser ########################################### [100%]
[root@ve026591 ~]# rpm -ivh yum-2.4.3-4.el4.centos.noarch.rpm
Preparing… ########################################### [100%]
1:yum ########################################### [100%]
[root@ve026591 ~]# yum check-update
Setting up repositories
update 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 1.1 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
update : ################################################## 1552/1552
primary.xml.gz 100% |=========================| 593 kB 00:11
base : ################################################## 1552/1552
primary.xml.gz 100% |=========================| 593 kB 00:07
addons : ################################################## 1552/1552
primary.xml.gz 100% |=========================| 593 kB 00:08
extras : ################################################## 1552/1552
MAKEDEV.i386 3.15.2-3 base
SysVinit.i386 2.85-34.4 base
apr.i386 0.9.4-24.9 base
aspell.i386 12:0.50.5-4.EL4 base
audit-libs.i386 1.0.15-3.EL4 base
authconfig.i386 4.6.10-rhel4.3 base
bash.i386 3.0-19.6 base
bind.i386 20:9.2.4-28.el4 base
bind-libs.i386 20:9.2.4-28.el4 base
bind-utils.i386 20:9.2.4-28.el4 base
binutils.i386 2.15.92.0.2-24 base
bzip2.i386 1.0.2-13.EL4.3 base
bzip2-libs.i386 1.0.2-13.EL4.3 base
centos-release.i386 6:4-4.4 base
chkconfig.i386 1.3.13.5.EL4-1 base
coreutils.i386 5.2.1-31.7 base
cpio.i386 2.5-13.RHEL4 base
cracklib.i386 2.8.9-1.3 base
cracklib-dicts.i386 2.8.9-1.3 base
cups-libs.i386 1:1.1.22-0.rc1.9.20.2. base
curl.i386 7.12.1-11.el4 base
cyrus-sasl.i386 2.1.19-14 base
cyrus-sasl-gssapi.i386 2.1.19-14 base
cyrus-sasl-md5.i386 2.1.19-14 base
cyrus-sasl-plain.i386 2.1.19-14 base
db4.i386 4.2.52-7.3.el4 base
e2fsprogs.i386 1.35-12.11.el4 base
elfutils.i386 0.97.1-5 base
elfutils-libelf.i386 0.97.1-5 base
fetchmail.i386 6.2.5-6.0.1.el4 base
file.i386 4.10-3.0.2.el4 base
findutils.i386 1:4.1.20-7.el4.3 base
finger.i386 0.17-26.EL4.1 base
finger-server.i386 0.17-26.EL4.1 base
fontconfig.i386 2.2.3-13.el4 base
freetype.i386 2.1.9-6.el4 base
ftp.i386 0.17-23.EL4 base
gd.i386 2.0.28-5.4E base
gnupg.i386 1.2.6-9 base
gpm.i386 1.20.1-71.RHEL4 base
grep.i386 2.5.1-32.3 base
groff.i386 1.18.1.1-3.EL4 base
gzip.i386 1.3.3-17.rhel4 base
httpd.i386 2.0.52-38.ent.centos4 base
httpd-manual.i386 2.0.52-38.ent.centos4 base
httpd-suexec.i386 2.0.52-38.ent.centos4 base
info.i386 4.7-5.el4.2 base
initscripts.i386 7.93.31.EL-2.centos4 base
iproute.i386 2.6.9-3.EL4.7 base
iputils.i386 20020927-19.EL4.5 base
krb5-libs.i386 1.3.4-54 base
less.i386 382-4.rhel4 base
libacl.i386 2.2.23-5.3.el4 base
libattr.i386 2.4.16-3.1.el4 base
libgcc.i386 3.4.6-9 base
libpng.i386 2:1.2.7-3.el4_5.1 base
libselinux.i386 1.19.1-7.4 base
libstdc++.i386 3.4.6-9 base
libtiff.i386 3.6.1-12 base
libtool-libs.i386 1.5.6-4.EL4.2 base
libuser.i386 0.52.5-1.el4.1 base
libxml2.i386 2.6.16-10 base
lm_sensors.i386 2.8.7-2.40.5 base
logrotate.i386 3.7.1-6.RHEL4 base
lsof.i386 4.72-1.4 base
mailx.i386 8.1.1-37.EL4 base
make.i386 1:3.80-6.EL4 base
man.i386 1.5o1-11.el4 base
man-pages.noarch 1.67-14.el4 base
ncompress.i386 4.2.4-44.rhel4 base
ncurses.i386 5.4-15.el4 base
net-snmp.i386 5.1.2-11.EL4.11 base
net-snmp-libs.i386 5.1.2-11.EL4.11 base
net-snmp-utils.i386 5.1.2-11.EL4.11 base
net-tools.i386 1.60-37.EL4.9 base
netpbm.i386 10.25-2.EL4.6 base
netpbm-progs.i386 10.25-2.EL4.6 base
newt.i386 0.51.6-9.rhel4 base
nscd.i386 2.3.4-2.39 base
ntsysv.i386 1.3.13.5.EL4-1 base
openldap.i386 2.2.13-8 base
openssh.i386 3.9p1-8.RHEL4.24 base
openssh-clients.i386 3.9p1-8.RHEL4.24 base
openssh-server.i386 3.9p1-8.RHEL4.24 base
openssl.i686 0.9.7a-43.17.el4_6.1 base
pam.i386 0.77-66.23 base
pcre.i386 4.5-4.el4_5.1 base
perl.i386 3:5.8.5-36.el4_5.2 base
perl-Compress-Zlib.i386 1.42-1.el4 base
perl-Net-DNS.i386 0.48-2.el4 base
perl-TimeDate.noarch 1:1.16-5.el4 base
perl-suidperl.i386 3:5.8.5-36.el4_5.2 base
popt.i386 1.9.1-23_nonptl base
procmail.i386 3.22-14.1.el4 base
procps.i386 3.2.3-8.9 base
psmisc.i386 21.4-4.1 base
python.i386 2.3.4-14.4 base
quota.i386 1:3.12-6.el4 base
rpm.i386 4.3.3-23_nonptl base
rpm-libs.i386 4.3.3-23_nonptl base
samba.i386 3.0.25b-0.4E.6 base
samba-client.i386 3.0.25b-0.4E.6 base
samba-common.i386 3.0.25b-0.4E.6 base
samba-swat.i386 3.0.25b-0.4E.6 base
sed.i386 4.1.2-6.el4 base
sendmail.i386 8.13.1-3.2.el4 base
sendmail-cf.i386 8.13.1-3.2.el4 base
sendmail-doc.i386 8.13.1-3.2.el4 base
shadow-utils.i386 2:4.0.3-63.RHEL4 base
slocate.i386 2.7-13.el4.8 base
tar.i386 1.14-12.5.1.RHEL4 base
tcp_wrappers.i386 7.6-37.4 base
tcpdump.i386 14:3.8.2-12.el4 base
tcsh.i386 6.13-9.el4.1 base
telnet.i386 1:0.17-31.EL4.5 base
traceroute.i386 1.4a12-24.EL4.1 base
tzdata.noarch 2007f-1.el4 base
udev.i386 039-10.19.el4 base
unixODBC.i386 2.2.11-1.RHEL4.1 base
unzip.i386 5.51-9.EL4.5 base
util-linux.i386 2.12a-16.EL4.29 base
vixie-cron.i386 4:4.1-49.EL4 base
wget.i386 1.10.2-0.40E base
words.noarch 3.0-3.2 base
xorg-x11-Mesa-libGL.i386 6.8.2-1.EL.33 base
xorg-x11-deprecated-libs.i386 6.8.2-1.EL.33 base
xorg-x11-libs.i386 6.8.2-1.EL.33 base
[root@ve026591 Linux]# yum install gcc
Setting up Install Process
Setting up repositories
update 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 1.1 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for gcc to pack into transaction set.
gcc-3.4.6-9.i386.rpm 100% |=========================| 44 kB 00:01
—> Package gcc.i386 0:3.4.6-9 set to be updated
–> Running transaction check
–> Processing Dependency: libgcc >= 3.4.6-9 for package: gcc
–> Processing Dependency: binutils >= 2.15.92.0.2-18 for package: gcc
–> Restarting Dependency Resolution with new changes.
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for binutils to pack into transaction set.
binutils-2.15.92.0.2-24.i 100% |=========================| 41 kB 00:01
—> Package binutils.i386 0:2.15.92.0.2-24 set to be updated
—> Downloading header for libgcc to pack into transaction set.
libgcc-3.4.6-9.i386.rpm 100% |=========================| 35 kB 00:00
—> Package libgcc.i386 0:3.4.6-9 set to be updated
–> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
gcc i386 3.4.6-9 base 4.4 M
Updating for dependencies:
binutils i386 2.15.92.0.2-24 addons 2.9 M
libgcc i386 3.4.6-9 addons 64 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 2 Package(s)
Remove 0 Package(s)
Total download size: 7.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): binutils-2.15.92.0 100% |=========================| 2.9 MB 00:47
(2/3): libgcc-3.4.6-9.i38 100% |=========================| 64 kB 00:01
(3/3): gcc-3.4.6-9.i386.r 100% |=========================| 4.4 MB 01:10
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : binutils ######################### [1/5]
Updating : libgcc ######################### [2/5]
Installing: gcc ######################### [3/5]
Cleanup : binutils ######################### [4/5]
Cleanup : libgcc ######################### [5/5]
Installed: gcc.i386 0:3.4.6-9
Dependency Updated: binutils.i386 0:2.15.92.0.2-24 libgcc.i386 0:3.4.6-9
Complete!
呵呵,问题顺利解决!

最新评论