分页: 1 / 1
[求助]build-essential 时出现软件包有未满足的依赖关系
发表于 : 2014-04-23 21:45
由 prajnazc
build-essential 已经是最新的版本了。
您可能需要运行“apt-get -f install”来纠正下列错误:
下列软件包有未满足的依赖关系:
libc6 : 破坏: locales (< 2.18)
libc6:i386 : 推荐: libc6-i686:i386
破坏: locales (< 2.18)
=============================================
我用新立德修复破损的依赖关系时,显示locales未验证,locales会被升级,libc6和libc6:i386会被重新安装,然后就出现“E:Internal Error, No file name for libc6"。
我的系统是ubuntu 12.04 的,64位。
有谁能帮忙指点一下啊,万分感谢!
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
发表于 : 2014-04-23 21:51
由 comp_286
是不是用了第三方源了?我猜你混用了Ubuntu其他版本或者Debian的源。
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
发表于 : 2014-04-23 21:54
由 lainme
试一下
代码: 全选
dpkg -i /var/cache/apt/archives/*.deb
dpkg --configure -a
然后再apt-get -f install
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
发表于 : 2014-04-23 22:15
由 prajnazc
comp_286 写了:是不是用了第三方源了?我猜你混用了Ubuntu其他版本或者Debian的源。
这是我的/etc/apt/sources.list
代码: 全选
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/main/binary-i386/
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release amd64 (20120425)]/ precise main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise universe
deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://cn.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
deb http://security.ubuntu.com/ubuntu lucid-security main
deb http://ftp.cn.debian.org/debian sid main
deb http://ftp.hk.debian.org/debian sid main
deb http://ftp.de.debian.org/debian sid main
deb http://opensource.nchc.org.tw/ubuntu/ feisty main multiverse restricted universe
deb http://opensource.nchc.org.tw/ubuntu/ feisty-backports main multiverse restricted universe
deb http://opensource.nchc.org.tw/ubuntu/ feisty-proposed main multiverse restricted universe
deb http://opensource.nchc.org.tw/ubuntu/ feisty-security main multiverse restricted universe
deb http://opensource.nchc.org.tw/ubuntu/ feisty-updates main multiverse restricted universe
deb-src http://opensource.nchc.org.tw/ubuntu/ feisty main multiverse restricted universe
deb-src http://opensource.nchc.org.tw/ubuntu/ feisty-backports main multiverse restricted universe
deb-src http://opensource.nchc.org.tw/ubuntu/ feisty-proposed main multiverse restricted universe
deb-src http://opensource.nchc.org.tw/ubuntu/ feisty-security main multiverse restricted universe
deb-src http://opensource.nchc.org.tw/ubuntu/ feisty-updates main multiverse restricted universe
#begin sources.list
deb http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
是不是混了?另外,你有没有好的源,我之前装别的库之类的东西时经常出现文件大小不一致的错误。
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
发表于 : 2014-04-23 22:18
由 prajnazc
lainme 写了:试一下
代码: 全选
dpkg -i /var/cache/apt/archives/*.deb
dpkg --configure -a
然后再apt-get -f install
代码: 全选
daniel@daniel-Aspire-4750:~$ sudo dpkg -i /var/cahe/apt/archives/*.deb
dpkg:处理 /var/cahe/apt/archives/*.deb (--install)时出错:
无法访问归档文件: No such file or directory
在处理时有错误发生:
/var/cahe/apt/archives/*.deb
这是什么情况
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
发表于 : 2014-04-24 0:22
由 comp_286
楼主把远古时期的Ubuntu版本的源都刨出来了……
这样搞系统已经跪了。
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
发表于 : 2014-04-24 11:52
由 lainme
晕,你到底怎么做到的……
你先把源清理了,删掉/etc/apt/sources.list.d/下面的所有文件,然后把/etc/apt/sources.list的内容换成只有precise的,
代码: 全选
deb http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
然后删掉 /var/lib/apt/lists 下面的所有东西,再更新和升级系统
代码: 全选
sudo apt-get update
sudo apt-get upgrade
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
发表于 : 2014-04-24 12:43
由 comp_286
lainme 写了:晕,你到底怎么做到的……
你先把源清理了,删掉/etc/apt/sources.list.d/下面的所有文件,然后把/etc/apt/sources.list的内容换成只有precise的,
代码: 全选
deb http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
然后删掉 /var/lib/apt/lists 下面的所有东西,再更新和升级系统
代码: 全选
sudo apt-get update
sudo apt-get upgrade
我估计PO的系统已经搞坏了。
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
发表于 : 2014-04-24 16:47
由 prajnazc
lainme 写了:晕,你到底怎么做到的……
你先把源清理了,删掉/etc/apt/sources.list.d/下面的所有文件,然后把/etc/apt/sources.list的内容换成只有precise的,
代码: 全选
deb http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
然后删掉 /var/lib/apt/lists 下面的所有东西,再更新和升级系统
代码: 全选
sudo apt-get update
sudo apt-get upgrade
做到最后一步
代码: 全选
daniel@daniel-Aspire-4750:/var/lib/apt$ sudo apt-get upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
您也许需要运行“apt-get -f install”来修正上面的错误。
下列软件包有未满足的依赖关系:
libc6 : 破坏: locales (< 2.18) 但是 2.13+git20120306-3 已经安装
libc6:i386 : 推荐: libc6-i686:i386
破坏: locales (< 2.18) 但是 2.13+git20120306-3 已经安装
E: 不能满足依赖关系。不妨试一下 -f 选项。
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
发表于 : 2014-04-24 19:43
由 lainme
好久没用ubuntu也不了解了……试一下先更新locales?或者用aptitude试试
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
发表于 : 2014-04-24 23:19
由 prajnazc
lainme 写了:好久没用ubuntu也不了解了……试一下先更新locales?或者用aptitude试试
系统默认语言突然变成英文了,sudo apt-get upgrade的时候又把language-zh一系列给删了,中文输入没了,language support点开就关了,,,,

Re: [求助]build-essential 时出现软件包有未满足的依赖关系
发表于 : 2014-04-25 13:36
由 comp_286
prajnazc 写了:lainme 写了:好久没用ubuntu也不了解了……试一下先更新locales?或者用aptitude试试
系统默认语言突然变成英文了,sudo apt-get upgrade的时候又把language-zh一系列给删了,中文输入没了,language support点开就关了,,,,

已经乱套了……
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
发表于 : 2014-04-25 13:37
由 lainme
如果其它升级都没问题,再把语言那一系列装回来应该就行了。language support不行的话可以用apt-get装。
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
发表于 : 2014-05-12 13:23
由 prajnazc