Ubuntu 12.04.2 LTS 用apt-get安装软件总是会出错?
发表于 : 2013-06-20 15:12
大家好,我是Ubuntu新手,初来乍到,遇到一些问题,还请大家指点一下,谢谢!
最近在VMware上安装了Ubuntu 12.04.2 LTS,刚开始使用的时候一切都很正常,但是,最近,不知道怎么回事,一安装软件就会出错,我上google查了相关的出错信息,也按照上面的步骤去做了一遍,都无济于事,所以,在此向各位达人寻求帮助,请各位达人帮忙分析一下原因及如何解决?
问题描述如下:比如,我想安装dnsutils:
yaob@yaob-virtual-machine:~$ sudo apt-get install dnsutils
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:
dnsutils : Depends: libbind9-80 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is to be installed
Depends: libdns81 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is to be installed
Depends: libisc83 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is to be installed
Depends: libisccfg82 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is to be installed
Depends: liblwres80 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is to be installed
libc6 : Recommends: libc6-i686
Breaks: locales (< 2.17) but 2.13+git20120306-3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
yaob@yaob-virtual-machine:~$
此外,我试过google到的sudo apt-get clean; sudo apt-get update;方法
刚开始还很顺利,但到后面就出错了,这是出错信息。
Hit http://archive.ubuntu.com precise-security/restricted Translation-en
Hit http://archive.ubuntu.com precise-security/universe Translation-en
Fetched 6,791 kB in 5min 37s (20.1 kB/s)
W: There is no public key available for the following key IDs:
8B48AD6246925553
W: GPG error: http://archive.ubuntu.com precise-backports Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
W: Size of file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise-backports_main_source_Sources is not what the server reported 0 121605
W: Failed to fetch cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release i386 (20130214)/dists/precise/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release i386 (20130214)/dists/precise/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch http://http.us.debian.org/debian/dists/ ... kagesIndex MD5Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_source_Sources Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
yaob@yaob-virtual-machine:~$
最近在VMware上安装了Ubuntu 12.04.2 LTS,刚开始使用的时候一切都很正常,但是,最近,不知道怎么回事,一安装软件就会出错,我上google查了相关的出错信息,也按照上面的步骤去做了一遍,都无济于事,所以,在此向各位达人寻求帮助,请各位达人帮忙分析一下原因及如何解决?
问题描述如下:比如,我想安装dnsutils:
yaob@yaob-virtual-machine:~$ sudo apt-get install dnsutils
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:
dnsutils : Depends: libbind9-80 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is to be installed
Depends: libdns81 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is to be installed
Depends: libisc83 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is to be installed
Depends: libisccfg82 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is to be installed
Depends: liblwres80 (= 1:9.8.1.dfsg.P1-4ubuntu0.6) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is to be installed
libc6 : Recommends: libc6-i686
Breaks: locales (< 2.17) but 2.13+git20120306-3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
yaob@yaob-virtual-machine:~$
此外,我试过google到的sudo apt-get clean; sudo apt-get update;方法
刚开始还很顺利,但到后面就出错了,这是出错信息。
Hit http://archive.ubuntu.com precise-security/restricted Translation-en
Hit http://archive.ubuntu.com precise-security/universe Translation-en
Fetched 6,791 kB in 5min 37s (20.1 kB/s)
W: There is no public key available for the following key IDs:
8B48AD6246925553
W: GPG error: http://archive.ubuntu.com precise-backports Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>
W: Size of file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise-backports_main_source_Sources is not what the server reported 0 121605
W: Failed to fetch cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release i386 (20130214)/dists/precise/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release i386 (20130214)/dists/precise/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
W: Failed to fetch http://http.us.debian.org/debian/dists/ ... kagesIndex MD5Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_source_Sources Hash Sum mismatch
W: Failed to fetch bzip2:/var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
yaob@yaob-virtual-machine:~$