[求助]build-essential 时出现软件包有未满足的依赖关系
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
- prajnazc
- 帖子: 27
- 注册时间: 2013-11-19 0:04
- 系统: ubuntu
[求助]build-essential 时出现软件包有未满足的依赖关系
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位。
有谁能帮忙指点一下啊,万分感谢!
您可能需要运行“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位。
有谁能帮忙指点一下啊,万分感谢!
- comp_286
- 帖子: 178
- 注册时间: 2006-03-12 14:17
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
是不是用了第三方源了?我猜你混用了Ubuntu其他版本或者Debian的源。
- lainme
- 论坛版主
- 帖子: 7805
- 注册时间: 2008-09-13 19:17
- 系统: Arch Linux (x86_64)
- 联系:
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
试一下
然后再apt-get -f install
代码: 全选
dpkg -i /var/cache/apt/archives/*.deb
dpkg --configure -a
- prajnazc
- 帖子: 27
- 注册时间: 2013-11-19 0:04
- 系统: ubuntu
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
这是我的/etc/apt/sources.listcomp_286 写了:是不是用了第三方源了?我猜你混用了Ubuntu其他版本或者Debian的源。
代码: 全选
# 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
- prajnazc
- 帖子: 27
- 注册时间: 2013-11-19 0:04
- 系统: ubuntu
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
lainme 写了:试一下
然后再apt-get -f install代码: 全选
dpkg -i /var/cache/apt/archives/*.deb dpkg --configure -a
代码: 全选
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
- comp_286
- 帖子: 178
- 注册时间: 2006-03-12 14:17
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
楼主把远古时期的Ubuntu版本的源都刨出来了……
这样搞系统已经跪了。
这样搞系统已经跪了。
- lainme
- 论坛版主
- 帖子: 7805
- 注册时间: 2008-09-13 19:17
- 系统: Arch Linux (x86_64)
- 联系:
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
晕,你到底怎么做到的……
你先把源清理了,删掉/etc/apt/sources.list.d/下面的所有文件,然后把/etc/apt/sources.list的内容换成只有precise的,
然后删掉 /var/lib/apt/lists 下面的所有东西,再更新和升级系统
你先把源清理了,删掉/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
代码: 全选
sudo apt-get update
sudo apt-get upgrade
- comp_286
- 帖子: 178
- 注册时间: 2006-03-12 14:17
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
我估计PO的系统已经搞坏了。lainme 写了:晕,你到底怎么做到的……
你先把源清理了,删掉/etc/apt/sources.list.d/下面的所有文件,然后把/etc/apt/sources.list的内容换成只有precise的,
然后删掉 /var/lib/apt/lists 下面的所有东西,再更新和升级系统代码: 全选
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
代码: 全选
sudo apt-get update sudo apt-get upgrade
- prajnazc
- 帖子: 27
- 注册时间: 2013-11-19 0:04
- 系统: ubuntu
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
做到最后一步lainme 写了:晕,你到底怎么做到的……
你先把源清理了,删掉/etc/apt/sources.list.d/下面的所有文件,然后把/etc/apt/sources.list的内容换成只有precise的,
然后删掉 /var/lib/apt/lists 下面的所有东西,再更新和升级系统代码: 全选
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
代码: 全选
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 选项。
- lainme
- 论坛版主
- 帖子: 7805
- 注册时间: 2008-09-13 19:17
- 系统: Arch Linux (x86_64)
- 联系:
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
好久没用ubuntu也不了解了……试一下先更新locales?或者用aptitude试试
- prajnazc
- 帖子: 27
- 注册时间: 2013-11-19 0:04
- 系统: ubuntu
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
系统默认语言突然变成英文了,sudo apt-get upgrade的时候又把language-zh一系列给删了,中文输入没了,language support点开就关了,,,,lainme 写了:好久没用ubuntu也不了解了……试一下先更新locales?或者用aptitude试试

- comp_286
- 帖子: 178
- 注册时间: 2006-03-12 14:17
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
已经乱套了……prajnazc 写了:系统默认语言突然变成英文了,sudo apt-get upgrade的时候又把language-zh一系列给删了,中文输入没了,language support点开就关了,,,,lainme 写了:好久没用ubuntu也不了解了……试一下先更新locales?或者用aptitude试试
- lainme
- 论坛版主
- 帖子: 7805
- 注册时间: 2008-09-13 19:17
- 系统: Arch Linux (x86_64)
- 联系:
Re: [求助]build-essential 时出现软件包有未满足的依赖关系
如果其它升级都没问题,再把语言那一系列装回来应该就行了。language support不行的话可以用apt-get装。
- prajnazc
- 帖子: 27
- 注册时间: 2013-11-19 0:04
- 系统: ubuntu