当前位置: 技术问答>linux和unix
apt-get -f install 无法通过,望前辈们帮忙解决!
来源: 互联网 发布时间:2016-01-09
本文导语: # apt-get -f install Reading Package Lists... Done Building Dependency Tree... Done Correcting dependencies... Done The following extra packages will be installed: binutils cpp-2.95 cpp-3.3 cyrus-admin gcc-2.95 gobjc-2.95 libc6 libcomerr2 libdb3 libgcc...
# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
binutils cpp-2.95 cpp-3.3 cyrus-admin gcc-2.95 gobjc-2.95 libc6 libcomerr2
libdb3 libgcc1 libkrb53 make modutils tcl8.3
The following NEW packages will be installed:
cpp-2.95 cpp-3.3 gcc-2.95 libcomerr2 libkrb53
9 packages upgraded, 5 newly installed, 0 to remove and 154 not upgraded.
13 packages not fully installed or removed.
Need to get 0B/12.7MB of archives. After unpacking 12.3MB will be used.
Do you want to continue? [Y/n] y
(Reading database ... 13210 files and directories currently installed.)
Preparing to replace libc6 2.2.5-11.2 (using .../libc6_2.3.2.ds1-22sarge5_mipsel.deb) ...
Name Service Switch update in the C Library: pre-installation question.
Running services and programs that are using NSS need to be restarted,
otherwise they might not be able to do lookup or authentication any more.
The installation process is able to restart some services (such as ssh or
telnetd), but other programs cannot be restarted automatically. One such
program that needs manual stopping and restart after the glibc upgrade by
yourself is xdm - because automatic restart might disconnect your active
X11 sessions.
Known packages that need to be stopped before the glibc upgrade are:
xdm kdm gdm postgresql xscreensaver
This script does not detect any services to stop now.
If you want to interrupt the upgrade now and continue later, please
answer No to the question below.
Do you want to upgrade glibc now? [Y/n] y
Unpacking replacement libc6 ...
dpkg: warning - old post-removal script returned error exit status 176
dpkg - trying script from the new package instead ...
dpkg: error processing /var/cache/apt/archives/libc6_2.3.2.ds1-22sarge5_mipsel.deb (--unpack):
subprocess new post-removal script returned error exit status 176
dpkg: error while cleaning up:
subprocess pre-installation script returned error exit status 255
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.3.2.ds1-22sarge5_mipsel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
在网上找了很多,也想了很多办法,还是不行,希望得到大家的帮助,谢谢了!
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
binutils cpp-2.95 cpp-3.3 cyrus-admin gcc-2.95 gobjc-2.95 libc6 libcomerr2
libdb3 libgcc1 libkrb53 make modutils tcl8.3
The following NEW packages will be installed:
cpp-2.95 cpp-3.3 gcc-2.95 libcomerr2 libkrb53
9 packages upgraded, 5 newly installed, 0 to remove and 154 not upgraded.
13 packages not fully installed or removed.
Need to get 0B/12.7MB of archives. After unpacking 12.3MB will be used.
Do you want to continue? [Y/n] y
(Reading database ... 13210 files and directories currently installed.)
Preparing to replace libc6 2.2.5-11.2 (using .../libc6_2.3.2.ds1-22sarge5_mipsel.deb) ...
Name Service Switch update in the C Library: pre-installation question.
Running services and programs that are using NSS need to be restarted,
otherwise they might not be able to do lookup or authentication any more.
The installation process is able to restart some services (such as ssh or
telnetd), but other programs cannot be restarted automatically. One such
program that needs manual stopping and restart after the glibc upgrade by
yourself is xdm - because automatic restart might disconnect your active
X11 sessions.
Known packages that need to be stopped before the glibc upgrade are:
xdm kdm gdm postgresql xscreensaver
This script does not detect any services to stop now.
If you want to interrupt the upgrade now and continue later, please
answer No to the question below.
Do you want to upgrade glibc now? [Y/n] y
Unpacking replacement libc6 ...
dpkg: warning - old post-removal script returned error exit status 176
dpkg - trying script from the new package instead ...
dpkg: error processing /var/cache/apt/archives/libc6_2.3.2.ds1-22sarge5_mipsel.deb (--unpack):
subprocess new post-removal script returned error exit status 176
dpkg: error while cleaning up:
subprocess pre-installation script returned error exit status 255
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.3.2.ds1-22sarge5_mipsel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
在网上找了很多,也想了很多办法,还是不行,希望得到大家的帮助,谢谢了!
|
去cu看看吧,那里服务器高手多
个人用户一般很少遇到这种问题的
个人用户一般很少遇到这种问题的
|
我上了一下,太慢了
好像就是不行,你那里也没有aptitude
如果你能找到aptitude包本地安装一下,然后用aptitude试一下
好像就是不行,你那里也没有aptitude
如果你能找到aptitude包本地安装一下,然后用aptitude试一下
|
1. 先退出X环境,在命令行下解决,问题可能会少些。
2. 如提示所示,先停止一些服务:xdm kdm gdm postgresql xscreensaver
3. 使用 apt-get dist-upgrade 而不是 apt-get upgrade, 可以扫描并处理包依赖性。
4. 如果 apt-get -f install 不能解决, 可以先察看一下当前安装的版本 rpm -q
然后用先卸载 apt-get remove , 然后在直接安装新版本的方式 apt-get install。
5. 清理以保证足够的空间,看错误是解压缩时(--unpack)出错,所以空间也可能是个问题。
6. 如果确定空间足够的话,换一个升级镜像站点试一试。
2. 如提示所示,先停止一些服务:xdm kdm gdm postgresql xscreensaver
3. 使用 apt-get dist-upgrade 而不是 apt-get upgrade, 可以扫描并处理包依赖性。
4. 如果 apt-get -f install 不能解决, 可以先察看一下当前安装的版本 rpm -q
然后用先卸载 apt-get remove , 然后在直接安装新版本的方式 apt-get install。
5. 清理以保证足够的空间,看错误是解压缩时(--unpack)出错,所以空间也可能是个问题。
6. 如果确定空间足够的话,换一个升级镜像站点试一试。