当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : ubuntu9设置了ubuntu12的source.list,apt-get install报错,求解决方案
帖子发表于 : 2013-03-26 14:17 

注册: 2008-03-05 18:58
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
后来发现问题,source.list改为ubuntu9版本的,apt-get install时,老报错,求解决方案。

错误提示如下:

The following packages are BROKEN:
fuse-utils initramfs-tools wireless-crda
The following packages will be REMOVED:
grub-common{u} initramfs-tools-bin{u} libdrm-intel1{u} libdrm-nouveau1a{u} libdrm-radeon1{u} libdrm2{u}
libevent-2.0-5{u} libevent-core-2.0-5{u} libevent-extra-2.0-5{u} libevent-pthreads-2.0-5{u} libpciaccess0{u}
libplymouth2{u} udev
0 packages upgraded, 0 newly installed, 13 to remove and 37 not upgraded.
Need to get 0B of archives. After unpacking 2976kB will be freed.
The following packages have unmet dependencies:
initramfs-tools: Depends: udev (>= 117-5) but it is not installable
wireless-crda: Depends: udev but it is not installable
fuse-utils: Depends: udev but it is not installable
The following actions will resolve these dependencies:

Downgrade the following packages:
udev [175-0ubuntu9.3 (now) -> 141-1.2 (jaunty-updates)]

Score is 25

Writing extended state information... Done
Selecting previously unselected package udev.
(Reading database ... 30684 files and directories currently installed.)
Preparing to replace udev 175-0ubuntu9.3 (using .../udev_141-1.2_amd64.deb) ...
dpkg-divert: error: `local diversion of /sbin/udevadm to /sbin/udevadm.upgrade' clashes with `diversion of /sbin/udevadm to /sbin/udevadm.upgrade by fake-udev'
dpkg: error processing /var/cache/apt/archives/udev_141-1.2_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 2
dpkg-divert: error: mismatch on package
when removing `local diversion of /sbin/udevadm to /sbin/udevadm.upgrade'
found `diversion of /sbin/udevadm to /sbin/udevadm.upgrade by fake-udev'
dpkg: error while cleaning up:
subprocess new post-removal script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/udev_141-1.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of initramfs-tools:
initramfs-tools depends on udev (>= 117-5); however:
Package udev is not installed.
dpkg: error processing initramfs-tools (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
initramfs-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

----------------------------------------
当我干掉BROKEN pkg时:
sudo dpkg --remove --force-remove-reinstreq initramfs-tools
dpkg: dependency problems prevent removal of initramfs-tools:
linux-image-2.6.28-11-server depends on initramfs-tools (>= 0.36ubuntu6).
dmsetup depends on initramfs-tools.
kbd depends on initramfs-tools.
console-setup depends on initramfs-tools (>= 0.85eubuntu12).
ntfs-3g depends on initramfs-tools.
linux-image-2.6.28-11-generic depends on initramfs-tools (>= 0.36ubuntu6).
dpkg: error processing initramfs-tools (--remove):
dependency problems - not removing
Errors were encountered while processing:
initramfs-tools

似乎有几个重要的服务依赖这玩意。

---------------------------------------------
再另外,apt-get remove/reinstall 都不行。
udev也干不掉~

sudo apt-get remove initramfs-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package udev needs to be reinstalled, but I can't find an archive for it.

sudo apt-get install --reinstall initramfs-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package udev needs to be reinstalled, but I can't find an archive for it.


最后由 hyddd 编辑于 2013-03-26 14:54,总共编辑了 5 次

页首
 用户资料  
 
2 楼 
 文章标题 : Re: ubuntu9设置了ubuntu12的source.list,升级导致错误,求解决方案
帖子发表于 : 2013-03-26 14:28 

注册: 2007-10-22 16:54
帖子: 344
送出感谢: 0 次
接收感谢: 8
一级级地升,不能跳级哟。不如重装。


页首
 用户资料  
 
3 楼 
 文章标题 : Re: ubuntu9设置了ubuntu12的source.list,升级导致错误,求解决方案
帖子发表于 : 2013-03-26 14:30 

注册: 2007-10-22 16:54
帖子: 344
送出感谢: 0 次
接收感谢: 8
一级级地升,不能跳级哟。不如重装。如果不想升级了,就把源再改回ubuntu9 的源。


页首
 用户资料  
 
4 楼 
 文章标题 : Re: ubuntu9设置了ubuntu12的source.list,apt-get install报错,求解决方案
帖子发表于 : 2013-03-26 14:41 

注册: 2008-03-05 18:58
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
嗯,谢谢楼上。之前我的可能有点不恰当。我的意思是:source.list改为12后,做了一次aptitude install,当发现问题后,我把sourcelist改回9.0,再aptitude install发现报错了。错误如上。

upgrade后,还是一样的错误。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译