未满足的依赖项:initramfs-tools [Xubuntu 12.04]

未满足的依赖项:initramfs-tools [Xubuntu 12.04]

如何解决我遇到的这个未满足的依赖关系问题?

运行以下 cmd 时:

root@ubuntu1204-cshr3:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
initramfs-tools : Depends: initramfs-tools-bin (< 0.99ubuntu13.1.1~) but 0.99ubuntu13.4 is installed
E: Unmet dependencies. Try using -f.

root@ubuntu1204-cshr3:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
initramfs-tools
The following packages will be upgraded:
initramfs-tools
1 upgraded, 0 newly installed, 0 to remove and 115 not upgraded.
4 not fully installed or removed.
Need to get 0 B/49.2 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of initramfs-tools:
initramfs-tools depends on initramfs-tools-bin (<< 0.99ubuntu13.1.1~); however:
Version of initramfs-tools-bin on system is 0.99ubuntu13.4.
dpkg: error processing initramfs-tools (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of apparmor:
apparmor depends on initramfs-tools; however:
Package initramfs-tools is not configured yet.
dpkg: error processing apparmor (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of udev:No apport report written because MaxReports is reached already

udev depends on initramfs-tools (>= 0.92bubuntu63); however:
Package initramfs-tools is not configured yet.
dpkg: error processing udev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of network-manager:No apport report written because MaxReports is reached already

network-manager depends on udev; however:
Package udev is not configured yet.
dpkg: error processing network-manager (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
initramfs-tools
apparmor
udev
network-manager
E: Sub-process /usr/bin/dpkg returned an error code (1)

其他系统详细信息:

root@ubuntu1204-cshr3:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu1204--cshr3-root 18G 2.7G 14G 16% /
udev 367M 12K 367M 1% /dev
tmpfs 150M 312K 150M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 375M 84K 375M 1% /run/shm
/dev/sda1 228M 70M 146M 33% /boot

root@ubuntu1204-cshr3:~# uname -r
3.2.0-40-generic

root@ubuntu1204-cshr3:~# apt-get update 
[source.list output edited due to <10 reputation]
Hit h-t-t-p //us_archive_ubuntu_com precise Release_gpg
Hit h-t-t-p //us_archive_ubuntu_com precise-updates Release_gpg                   
Hit h-t-t-p //us_archive_ubuntu_com precise-backports Release_gpg                 
Hit h-t-t-p //us_archive_ubuntu_com precise Release                               
Hit h-t-t-p //us_archive_ubuntu_com precise-updates Release                       
Hit h-t-t-p //us_archive_ubuntu_com precise-backports Release                     
Hit h-t-t-p //ppa_launchpad_net precise Release_gpg                               
Hit h-t-t-p //us_archive_ubuntu_com precise/main Sources                          
Hit h-t-t-p //us_archive_ubuntu_com precise/restricted Sources                    
Hit h-t-t-p //us_archive_ubuntu_com precise/universe Sources                      
Hit h-t-t-p //us_archive_ubuntu_com precise/multiverse Sources                    
Hit h-t-t-p //us_archive_ubuntu_com precise/main i386 Packages                    
Hit h-t-t-p //us_archive_ubuntu_com precise/restricted i386 Packages              
Hit h-t-t-p //us_archive_ubuntu_com precise/universe i386 Packages                
Hit h-t-t-p //us_archive_ubuntu_com precise/multiverse i386 Packages              
Hit h-t-t-p //us_archive_ubuntu_com precise/main TranslationIndex                 
Hit h-t-t-p //us_archive_ubuntu_com precise/multiverse TranslationIndex           
Hit h-t-t-p //security_ubuntu_com precise-security Release_gpg                    
Hit h-t-t-p //extras_ubuntu_com precise Release_gpg                               
Hit h-t-t-p //us_archive_ubuntu_com precise/restricted TranslationIndex           
Hit h-t-t-p //us_archive_ubuntu_com precise/universe TranslationIndex
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/main Sources
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/restricted Sources
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/universe Sources              
Hit h-t-t-p //ppa_launchpad_net precise Release                                   
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/multiverse Sources            
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/main i386 Packages            
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/restricted i386 Packages      
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/universe i386 Packages        
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/multiverse i386 Packages      
Hit h-t-t-p //extras_ubuntu_com precise Release                                   
Hit h-t-t-p //security_ubuntu_com precise-security Release              
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/main TranslationIndex
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/multiverse TranslationIndex
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/restricted TranslationIndex
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/universe TranslationIndex
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/main Sources       
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/restricted Sources          
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/universe Sources            
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/multiverse Sources          
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/main i386 Packages          
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/restricted i386 Packages    
Hit h-t-t-p //ppa_launchpad_net precise/main Sources                              
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/universe i386 Packages
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/multiverse i386 Packages
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/main TranslationIndex
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/multiverse TranslationIndex
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/restricted TranslationIndex
Hit h-t-t-p //extras_ubuntu_com precise/main Sources                              
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/universe TranslationIndex   
Hit h-t-t-p //us_archive_ubuntu_com precise/main Translation-en         
Hit h-t-t-p //us_archive_ubuntu_com precise/multiverse Translation-en   
Hit h-t-t-p //us_archive_ubuntu_com precise/restricted Translation-en   
Hit h-t-t-p //us_archive_ubuntu_com precise/universe Translation-en               
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/main Translation-en           
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/multiverse Translation-en     
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/restricted Translation-en     
Hit h-t-t-p //us_archive_ubuntu_com precise-updates/universe Translation-en       
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/main Translation-en         
Hit h-t-t-p //security_ubuntu_com precise-security/main Sources                   
Hit h-t-t-p //ppa_launchpad_net precise/main i386 Packages                        
Ign h-t-t-p //ppa_launchpad_net precise/main TranslationIndex                     
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/multiverse Translation-en   
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/restricted Translation-en
Hit h-t-t-p //us_archive_ubuntu_com precise-backports/universe Translation-en
Hit h-t-t-p //extras_ubuntu_com precise/main i386 Packages              
Ign h-t-t-p //extras_ubuntu_com precise/main TranslationIndex           
Hit h-t-t-p //security_ubuntu_com precise-security/restricted Sources   
Hit h-t-t-p //security_ubuntu_com precise-security/universe Sources
Hit h-t-t-p //security_ubuntu_com precise-security/multiverse Sources
Hit h-t-t-p //security_ubuntu_com precise-security/main i386 Packages
Hit h-t-t-p //security_ubuntu_com precise-security/restricted i386 Packages
Hit h-t-t-p //security_ubuntu_com precise-security/universe i386 Packages
Hit h-t-t-p //security_ubuntu_com precise-security/multiverse i386 Packages
Hit h-t-t-p //security_ubuntu_com precise-security/main TranslationIndex
Hit h-t-t-p //security_ubuntu_com precise-security/multiverse TranslationIndex
Hit h-t-t-p //security_ubuntu_com precise-security/restricted TranslationIndex
Hit h-t-t-p //security_ubuntu_com precise-security/universe TranslationIndex
Hit h-t-t-p //security_ubuntu_com precise-security/main Translation-en
Hit h-t-t-p //security_ubuntu_com precise-security/multiverse Translation-en
Hit h-t-t-p //security_ubuntu_com precise-security/restricted Translation-en
Hit h-t-t-p //security_ubuntu_com precise-security/universe Translation-en
Ign h-t-t-p //extras_ubuntu_com precise/main Translation-en_US          
Ign h-t-t-p //ppa_launchpad_net precise/main Translation-en_US
Ign h-t-t-p //extras_ubuntu_com precise/main Translation-en
Ign h-t-t-p //ppa_launchpad_net precise/main Translation-en
Reading package lists... Done  

root@ubuntu1204-cshr3:~# sudo apt-get remove initramfs-tools-bin && sudo apt-get install initramfs-tools 正在读取软件包列表... 完成 正在构建依赖关系树
正在读取状态信息... 完成 您可能需要运行“apt-get -f install”来更正这些问题: 以下软件包具有未满足的依赖关系:initramfs-tools: 依赖:initramfs-tools-bin(>= 0.99ubuntu13.1)但不会安装 依赖:initramfs-tools-bin(< 0.99ubuntu13.1.1~)但不会安装 E:未满足的依赖关系。尝试不使用任何软件包执行“apt-get -f install”(或指定解决方案)。

答案1

存在几个问题,包括未满足的依赖关系和包配置。

要解决依赖问题,请运行:

sudo apt-get remove initramfs-tools-bin && sudo apt-get install initramfs-tools

要解决 dpkg 错误,请运行:

sudo dpkg --configure -a && sudo apt-get install -f

如果未解决:

sudo dpkg -r udev apparmor initramfs-tools && sudo apt-get clean && sudo apt-get update && sudo apt-get install udev apparmor initramfs-tools

如果仍有问题:

运行 gksudo gedit /var/lib/dpkg/status。在生成的文本文档中,搜索以package : udev、开头的部分package :apparmorpackage :initramfs-tools 然后删除所有部分。

然后运行:

sudo apt-get install udev apparmor initramfs-tools

编辑:

对于您遇到的最新问题:运行:

sudo apt-get clean && sudo rm -r /var/lib/apt/lists && sudo mkdir -p /var/lib/apt/lists/partial && sudo apt-get update

相关内容