更新被阻拦

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
ReverseOnce
帖子: 106
注册时间: 2015-08-29 21:05

更新被阻拦

#1

帖子 ReverseOnce » 2015-09-30 23:02

apt-get禁止更新软件包:

代码: 全选

sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  aptdaemon python-aptdaemon.gtk3widgets python3-aptdaemon.gtk3widgets
  python3-aptdaemon.pkcompat
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

代码: 全选

sudo apt-get -u dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  aptdaemon python-aptdaemon.gtk3widgets python3-aptdaemon.gtk3widgets
  python3-aptdaemon.pkcompat
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

代码: 全选

sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Starting pkgProblemResolver with broken count: 4
Starting 2 pkgProblemResolver with broken count: 4
Investigating (0) python3-aptdaemon.gtk3widgets [ amd64 ] < 1.1.1+bzr982-0ubuntu9 -> 1.1.1+bzr982-0ubuntu10 > ( python )
Broken python3-aptdaemon.gtk3widgets:amd64 Depends on python3-aptdaemon [ amd64 ] < 1.1.1+bzr982-0ubuntu9 -> 1.1.1+bzr982-0ubuntu10 > ( python ) (= 1.1.1+bzr982-0ubuntu10)
  Considering python3-aptdaemon:amd64 8 as a solution to python3-aptdaemon.gtk3widgets:amd64 10
  Holding Back python3-aptdaemon.gtk3widgets:amd64 rather than change python3-aptdaemon:amd64
Investigating (0) aptdaemon [ amd64 ] < 1.1.1+bzr982-0ubuntu9 -> 1.1.1+bzr982-0ubuntu10 > ( admin )
Broken aptdaemon:amd64 Depends on python3-aptdaemon [ amd64 ] < 1.1.1+bzr982-0ubuntu9 -> 1.1.1+bzr982-0ubuntu10 > ( python ) (= 1.1.1+bzr982-0ubuntu10)
  Considering python3-aptdaemon:amd64 8 as a solution to aptdaemon:amd64 2
  Holding Back aptdaemon:amd64 rather than change python3-aptdaemon:amd64
Investigating (0) python3-aptdaemon.pkcompat [ amd64 ] < 1.1.1+bzr982-0ubuntu9 -> 1.1.1+bzr982-0ubuntu10 > ( python )
Broken python3-aptdaemon.pkcompat:amd64 Depends on python3-aptdaemon [ amd64 ] < 1.1.1+bzr982-0ubuntu9 -> 1.1.1+bzr982-0ubuntu10 > ( python ) (= 1.1.1+bzr982-0ubuntu10)
  Considering python3-aptdaemon:amd64 8 as a solution to python3-aptdaemon.pkcompat:amd64 0
  Holding Back python3-aptdaemon.pkcompat:amd64 rather than change python3-aptdaemon:amd64
Investigating (0) python-aptdaemon.gtk3widgets [ amd64 ] < 1.1.1+bzr982-0ubuntu9 -> 1.1.1+bzr982-0ubuntu10 > ( python )
Broken python-aptdaemon.gtk3widgets:amd64 Depends on python-aptdaemon [ amd64 ] < 1.1.1+bzr982-0ubuntu9 -> 1.1.1+bzr982-0ubuntu10 > ( python ) (= 1.1.1+bzr982-0ubuntu10)
  Considering python-aptdaemon:amd64 -1 as a solution to python-aptdaemon.gtk3widgets:amd64 -1
  Holding Back python-aptdaemon.gtk3widgets:amd64 rather than change python-aptdaemon:amd64
 Try to Re-Instate (1) python3-aptdaemon.gtk3widgets:amd64
 Try to Re-Instate (1) aptdaemon:amd64
 Try to Re-Instate (1) python3-aptdaemon.pkcompat:amd64
 Try to Re-Instate (1) python-aptdaemon.gtk3widgets:amd64
Done
Done
The following packages have been kept back:
  aptdaemon python-aptdaemon.gtk3widgets python3-aptdaemon.gtk3widgets
  python3-aptdaemon.pkcompat
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
尝试解决:

代码: 全选

sudo apt-get -u install aptdaemon
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 aptdaemon : Depends: python3-aptdaemon (= 1.1.1+bzr982-0ubuntu10) but 1.1.1+bzr982-0ubuntu9 is to be installed
E: Unable to correct problems, you have held broken packages.

代码: 全选

sudo apt-get -u install python3-aptdaemon
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3-aptdaemon : Depends: gir1.2-packagekitglib-1.0 (< 0.9) but 0.9.5-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
进入循环依赖:

代码: 全选

sudo apt-get -u install gir1.2-packagekitglib-1.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gir1.2-packagekitglib-1.0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 更新被阻拦

#2

帖子 poloshiao » 2015-10-01 5:43

代码: 全选

The following packages have been kept back:
aptdaemon python-aptdaemon.gtk3widgets python3-aptdaemon.gtk3widgets python3-aptdaemon.pkcompat

代码: 全选

sudo apt-get install aptdaemon python-aptdaemon.gtk3widgets python3-aptdaemon.gtk3widgets python3-aptdaemon.pkcompat

sudo apt-get dist-upgrade

進一步參閱
http://askubuntu.com/questions/601/the- ... i-solve-it
ReverseOnce
帖子: 106
注册时间: 2015-08-29 21:05

Re: 更新被阻拦

#3

帖子 ReverseOnce » 2015-10-02 10:05

poloshiao 写了:

代码: 全选

The following packages have been kept back:
aptdaemon python-aptdaemon.gtk3widgets python3-aptdaemon.gtk3widgets python3-aptdaemon.pkcompat

代码: 全选

sudo apt-get install aptdaemon python-aptdaemon.gtk3widgets python3-aptdaemon.gtk3widgets python3-aptdaemon.pkcompat

sudo apt-get dist-upgrade

進一步參閱
http://askubuntu.com/questions/601/the- ... i-solve-it
看主帖apt-get的debug输出,已安装的软件包旧版本是1.1.1+bzr982-0ubuntu9,依赖的软件包新版本为1.1.1+bzr982-0ubuntu10。这是前天晚上的事情了,昨天依赖的软件包新版本到了1.1.1+bzr982-0ubuntu11,今天到了1.1.1+bzr982-0ubuntu12。估计这几个新版本的软件包尚未编译好,所以旧版本无法升级到新版本,要等新版本软件放到源里才行。

代码: 全选

sudo apt-get install aptdaemon python-aptdaemon.gtk3widgets python3-aptdaemon.gtk3widgets python3-aptdaemon.pkcompat
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 aptdaemon : Depends: python3-aptdaemon (= 1.1.1+bzr982-0ubuntu12) but 1.1.1+bzr982-0ubuntu9 is to be installed
 python-aptdaemon.gtk3widgets : Depends: python-aptdaemon (= 1.1.1+bzr982-0ubuntu12) but 1.1.1+bzr982-0ubuntu9 is to be installed
 python3-aptdaemon.gtk3widgets : Depends: python3-aptdaemon (= 1.1.1+bzr982-0ubuntu12) but 1.1.1+bzr982-0ubuntu9 is to be installed
 python3-aptdaemon.pkcompat : Depends: python3-aptdaemon (= 1.1.1+bzr982-0ubuntu12) but 1.1.1+bzr982-0ubuntu9 is to be installed
E: Unable to correct problems, you have held broken packages.
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 更新被阻拦

#4

帖子 poloshiao » 2015-10-02 10:15

看主帖apt-get的debug输出,已安装的软件包旧版本是1.1.1+bzr982-0ubuntu9,依赖的软件包新版本为1.1.1+bzr982-0ubuntu10。这是前天晚上的事情了,昨天依赖的软件包新版本到了1.1.1+bzr982-0ubuntu11,今天到了1.1.1+bzr982-0ubuntu12。估计这几个新版本的软件包尚未编译好,所以旧版本无法升级到新版本,要等新版本软件放到源里才行。
要更新/安裝 套件以前 先執行
sudo apt-get update
sudo apt-get upgrade
再進行 更新/安裝 套件
永遠是好習慣
可以避免許多相依套件不滿足而出現錯誤訊息的情況
ReverseOnce
帖子: 106
注册时间: 2015-08-29 21:05

Re: 更新被阻拦

#5

帖子 ReverseOnce » 2015-10-08 9:27

进不了桌面,grub正常,plymouth正常,fsck顺利通过,内核更新至4.2.0.15,在更新和启动的过程中没报任何错误,却被冻结在gdm和gnome-shell的交接处。

代码: 全选

started gnome display manager.... and deal with any system changes.signatures....ut down.. 

代码: 全选

sudo service gdm stop
sudo service gdm start

代码: 全选

sudo apt-get remove xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
reboot

代码: 全选

sudo apt-get remove xorg
sudo apt-get install xorg
sudo dpkg-reconfigure xserver-xorg
reboot
换桌面管理器也不行:

代码: 全选

sudo apt-get install ubuntu-desktop
zhcon开不了,w3m乱码,无招,从lightdm切换回gdm:

代码: 全选

sudo /etc/init.d/gdm reload
看起来要重装了。
上次由 ReverseOnce 在 2015-10-08 18:34,总共编辑 1 次。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 更新被阻拦

#6

帖子 poloshiao » 2015-10-08 11:48

Ubuntu 最近變裝很快
請一定要提供你的 Ubuntu 版本 與 登入桌面
你許多指令 混用在一起了
也不知 該如何給你可行的建議
ReverseOnce
帖子: 106
注册时间: 2015-08-29 21:05

Re: 更新被阻拦

#7

帖子 ReverseOnce » 2015-10-08 19:03

poloshiao 写了:Ubuntu 最近變裝很快
請一定要提供你的 Ubuntu 版本 與 登入桌面
你許多指令 混用在一起了
也不知 該如何給你可行的建議
谢谢回复。在这个版块发帖,无疑是15.10。几十个软件包一起升级,不太记得具体更新了哪一些软件包,排查困难。有显卡驱动位列其中的依稀印象,所以主要从显卡驱动着手。最先是加nomodeset,无用,层层加码,最后欲更换桌面而不能,可以下与显卡驱动无关的结论了。普利茅斯没出一点异常,真心不敢相信装扮得这么妩媚的gnome就此不起。
plymouth-orb.png
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 更新被阻拦

#8

帖子 vickycq » 2015-10-08 20:22

ReverseOnce 写了:几十个软件包一起升级,不太记得具体更新了哪一些软件包,排查困难。
查看 /var/log/apt/history.log
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
头像
fudaming
帖子: 37
注册时间: 2005-09-09 20:42
系统: ubuntu18.04 &manjaro

Re: 更新被阻拦

#9

帖子 fudaming » 2015-10-08 21:39

ReverseOnce 写了:进不了桌面,grub正常,plymouth正常,fsck顺利通过,内核更新至4.2.0.15,在更新和启动的过程中没报任何错误,却被冻结在gdm和gnome-shell的交接处。

代码: 全选

started gnome display manager.... and deal with any system changes.signatures....ut down.. 

代码: 全选

sudo service gdm stop
sudo service gdm start

代码: 全选

sudo apt-get remove xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
reboot

代码: 全选

sudo apt-get remove xorg
sudo apt-get install xorg
sudo dpkg-reconfigure xserver-xorg
reboot
换桌面管理器也不行:

代码: 全选

sudo apt-get install ubuntu-desktop
zhcon开不了,w3m乱码,无招,从lightdm切换回gdm:

代码: 全选

sudo /etc/init.d/gdm reload
看起来要重装了。
4.2.0-15 的内核是有点问题,不过不用重装,如果有保留的4.2.0-13的内核,应该能重新进入。一般讲apt-get dist-upgrade不会删掉之前的内核的。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 更新被阻拦

#10

帖子 poloshiao » 2015-10-08 22:34

内核更新至4.2.0.15
viewtopic.php?p=3144945#p3144945
ReverseOnce
帖子: 106
注册时间: 2015-08-29 21:05

Re: 更新被阻拦

#11

帖子 ReverseOnce » 2015-10-10 19:33

vickycq 写了:
ReverseOnce 写了:几十个软件包一起升级,不太记得具体更新了哪一些软件包,排查困难。
查看 /var/log/apt/history.log
谢谢帮助。升级的包有八九十个之多,逐一指定版本实在是太麻烦,费时费力,下载了beta2,默认的内核是4.2.0-11,更新到4.2.0-16,home目录有单独的分区,进桌面后沿袭原来的配置,目前一切还算稳定。
ReverseOnce
帖子: 106
注册时间: 2015-08-29 21:05

Re: 更新被阻拦

#12

帖子 ReverseOnce » 2015-10-10 19:42

poloshiao 写了:
内核更新至4.2.0.15
viewtopic.php?p=3144945#p3144945
谢谢回复。有三个内核的,除了4.2.0-15,还有其它两个,回退以后,轮流启动过,都进不了gnome-shell。
ReverseOnce
帖子: 106
注册时间: 2015-08-29 21:05

Re: 更新被阻拦

#13

帖子 ReverseOnce » 2015-10-10 19:53

fudaming 写了:
ReverseOnce 写了:进不了桌面,grub正常,plymouth正常,fsck顺利通过,内核更新至4.2.0.15,在更新和启动的过程中没报任何错误,却被冻结在gdm和gnome-shell的交接处。

代码: 全选

started gnome display manager.... and deal with any system changes.signatures....ut down.. 

代码: 全选

sudo service gdm stop
sudo service gdm start

代码: 全选

sudo apt-get remove xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
reboot

代码: 全选

sudo apt-get remove xorg
sudo apt-get install xorg
sudo dpkg-reconfigure xserver-xorg
reboot
换桌面管理器也不行:

代码: 全选

sudo apt-get install ubuntu-desktop
zhcon开不了,w3m乱码,无招,从lightdm切换回gdm:

代码: 全选

sudo /etc/init.d/gdm reload
看起来要重装了。
4.2.0-15 的内核是有点问题,不过不用重装,如果有保留的4.2.0-13的内核,应该能重新进入。一般讲apt-get dist-upgrade不会删掉之前的内核的。
谢谢热心。试过4.2.0-13了,进不了桌面,还试过其它几个版本的内核,也进不了桌面,应该是其它软件包兼容不足引发的负面反应。
头像
cnkilior
论坛版主
帖子: 4984
注册时间: 2007-08-05 17:40

Re: 更新被阻拦

#14

帖子 cnkilior » 2015-10-12 20:07

应该是用了混合源。。不要勉强用命令行。。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 更新被阻拦

#15

帖子 poloshiao » 2015-10-12 20:51

谢谢回复。在这个版块发帖,无疑是15.10。
把下面指令 複製 貼進終端機 執行
1. sudo cat /etc/apt/sources.list
2. sudo ls -al /etc/apt/sources.list.d
把結果直接 選取/複製 貼上來
回复