Unable to correct problems, you have held broken packages in Ubuntu 12.04

276 views
Skip to first unread message

laputa Han

unread,
Sep 2, 2012, 9:44:05 PM9/2/12
to sh...@googlegroups.com
Ubuntu用得不多, 最近碰到一个问题求教大家解决方法。

起因是我想把WM换成 awesome, 需要用gnome-tweak-tool 禁掉nautilus 的桌面效果,
昨天晚上在家里的 Ubuntu 12.04 装了没有问题, 今天在公司机器上的Ubuntu 12.04 
装 gnome-tweak-tool 发现下面的问题:

$ sudo apt-get install gnome-tweak-tool
The following packages have unmet dependencies:
 gnome-tweak-tool : Depends: gnome-shell (>= 3.3.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$ sudo apt-get install gnome-shell
The following packages have unmet dependencies:
 gnome-shell : Depends: gnome-icon-theme-full but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$ sudo apt-get install gnome-icon-theme-full
The following packages have unmet dependencies:
 gnome-icon-theme-full : Depends: gnome-icon-theme (= 3.4.0-0ubuntu1) but 3.4.0-0ubuntu1.1 is to be installed
E: Unable to correct problems, you have held broken packages.

试过的方案:

1. $ apt-get clean
    $ apt-get update & apt-get upgrade

2. $ dpkg --configure -a

3. synaptic -> fix broken package

请问有人碰到这种情况吗? apt 用得太少了,不懂原因是啥,求解。 

谢谢!

SuperCat

unread,
Sep 2, 2012, 10:27:26 PM9/2/12
to sh...@googlegroups.com
GNOME3已经不用nautilus显示桌面了。
估计乃所用的源有缺包,用163或者官方源更新看看

2012/9/3 laputa Han <justl...@gmail.com>

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
 
 

Chaos Eternal

unread,
Sep 2, 2012, 10:48:40 PM9/2/12
to sh...@googlegroups.com
显然是 gnome-icon-theme-full的deoendance有问题。
报bug吧。

按说它应该dep >= 3.4.0-0ubuntu1,但是却 Dep = 3.4.0-0ubuntu1
然后某个人把 3.4.0-0ubuntu1 升级成了 3.4.0-0ubuntu1.1
所以dependance 就broken了。

Lemon Li

unread,
Sep 3, 2012, 12:50:36 AM9/3/12
to sh...@googlegroups.com
禁用掉 nautilus 的桌面背景不需要这么麻烦了。。直接用 dconf-tools 就搞定了

参考这里:
http://askubuntu.com/questions/87829/how-to-set-nautilus-to-no-desktop-via-gconf


pylemon


2012/9/3 Chaos Eternal <chaose...@shlug.org>:

laputa Han

unread,
Sep 3, 2012, 2:53:01 AM9/3/12
to sh...@googlegroups.com
我的源一直没动过,一下是 /etc/apt/sources.list:

laputa Han

unread,
Sep 3, 2012, 2:53:53 AM9/3/12
to sh...@googlegroups.com
但是我在家里的Ubuntu 12.04 上装就没碰到这个问题,难道真是源的问题?

SuperCat

unread,
Sep 3, 2012, 2:58:19 AM9/3/12
to sh...@googlegroups.com
cn.archive.ubuntu.com貌似指向sohu的源,乃自己换成163的看看

2012/9/3 laputa Han <justl...@gmail.com>

laputa Han

unread,
Sep 3, 2012, 3:05:48 AM9/3/12
to sh...@googlegroups.com
刚用 dconf-tools 试了下,依旧不行, awesome 桌面第一个workspace全屏就是ubuntu的桌面,
awesome 的top bar menu 显示不出来, 我用的awesome 配置:


在rc.lua 里加了两行:

exec("gnome-keyring-daemon --daemonize --login")
exec("gnome-session --session=ubuntu")

laputa Han

unread,
Sep 3, 2012, 3:06:07 AM9/3/12
to sh...@googlegroups.com
Ok, 我试试,谢谢!

laputa Han

unread,
Sep 3, 2012, 4:09:09 AM9/3/12
to sh...@googlegroups.com
换成163的源了, 之后更新了很多包, 证实确实是源的问题。 现在 gnome-tweak-tool 可以正常
安装了, 但我用 Ubuntu-tweak 禁掉了 show desktop icon, 目前awesome 没有问题。 看来不用
装 gnome-tweak-tool :)

谢谢!

On Mon, Sep 3, 2012 at 10:27 AM, SuperCat <superca...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages