我正在运行sudo update-manager -d
并启动升级过程。我选择升级选项,然后当管理员进入时,Setting new software channels
它抛出一个错误。
无法计算升舱 计算升级时出现无法解决的问题。 这可能是由以下原因造成的: * 升级到 Ubuntu 的预发布版本 * 运行当前预发布版本的 Ubuntu * Ubuntu 未提供的非官方软件包 如果这些都不适用,那么请在终端中使用命令“ubuntu-bug ubuntu-release-upgrader-core”报告此错误。
我已禁用所有非官方和第三方软件包,由于我使用的是 13.04,因此我没有运行预发布版本,并且我正尝试更新到非预发布的 beta 2。在我填写错误报告之前,由于我的两个系统都遇到了这个问题,我想弄清楚是否有其他人遇到过同样的问题。
编辑:添加了评论的输出。
$ sudo dpkg -l | grep -w "rc"`
rc google-chrome-beta 31.0.1650.16-1 amd64 The web browser from Google
ii sysv-rc 2.88dsf-13.10ubuntu15 all System-V-like runlevel change mechanism
$ cat /etc/apt/sources.list
deb http://dk.archive.ubuntu.com/ubuntu/ raring main restricted
deb-src http://dk.archive.ubuntu.com/ubuntu/ raring main restricted
deb http://dk.archive.ubuntu.com/ubuntu/ raring-updates main restricted
deb-src http://dk.archive.ubuntu.com/ubuntu/ raring-updates main restricted
deb http://dk.archive.ubuntu.com/ubuntu/ raring universe
deb-src http://dk.archive.ubuntu.com/ubuntu/ raring universe
deb http://dk.archive.ubuntu.com/ubuntu/ raring-updates universe
deb-src http://dk.archive.ubuntu.com/ubuntu/ raring-updates universe
deb http://dk.archive.ubuntu.com/ubuntu/ raring multiverse
deb-src http://dk.archive.ubuntu.com/ubuntu/ raring multiverse
deb http://dk.archive.ubuntu.com/ubuntu/ raring-updates multiverse
deb-src http://dk.archive.ubuntu.com/ubuntu/ raring-updates multiverse
deb http://security.ubuntu.com/ubuntu raring-security main restricted
deb-src http://security.ubuntu.com/ubuntu raring-security main restricted
deb http://security.ubuntu.com/ubuntu raring-security universe
deb-src http://security.ubuntu.com/ubuntu raring-security universe
deb http://security.ubuntu.com/ubuntu raring-security multiverse
deb-src http://security.ubuntu.com/ubuntu raring-security multiverse
deb http://extras.ubuntu.com/ubuntu raring main
deb-src http://extras.ubuntu.com/ubuntu raring main
deb http://dk.archive.ubuntu.com/ubuntu/ raring-proposed multiverse universe restricted main
$ lsb_release -c
Codename: raring
$ sudo apt-get -y install aptitude && \
sudo rename 's/\.list$/.list.disable/' /etc/apt/sources.list.d/*.list && \
sudo aptitude update && \
aptitude search '?narrow(?installed, !?archive(raring))'`
i dropbox - cloud synchronization engine - CLI and Nautilus extension
i google-chrome-stable - The web browser from Google
i google-talkplugin - Google Talk Plugin
i libdrm-intel1 - Userspace interface to intel-specific kernel DRM services -- runtime
i libdrm-nouveau2 - Userspace interface to nouveau-specific kernel DRM services -- runtime
i libdrm-radeon1 - Userspace interface to radeon-specific kernel DRM services -- runtime
i libdrm2 - Userspace interface to kernel DRM services -- runtime
i libegl1-mesa - free implementation of the EGL API -- runtime
i libegl1-mesa-drivers - free implementation of the EGL API -- hardware drivers
i libgbm1 - generic buffer management API -- runtime
i libgl1-mesa-dri - free implementation of the OpenGL API -- DRI modules
i libgl1-mesa-glx - free implementation of the OpenGL API -- GLX runtime
i libglapi-mesa - free implementation of the GL API -- shared library
i A libgles2-mesa - free implementation of the OpenGL|ES 2.x API -- runtime
i libllvm3.3 - Low-Level Virtual Machine (LLVM), runtime library
i libopenvg1-mesa - free implementation of the OpenVG API -- runtime
i libxatracker1 - X acceleration library -- runtime
i nodejs - Node.js event-based server-side javascript engine
id nvidia-persistenced - Load the NVIDIA kernel driver and create device files
id nvidia-settings-331 - Tool for configuring the NVIDIA graphics driver
i simplescreenrecorder - A feature-rich screen recorder that supports X11 and OpenGL.
i A simplescreenrecorder-lib - A feature-rich screen recorder that supports X11 and OpenGL.
i sublime-text - Sublime Text is a sophisticated text editor for code, markup and prose
i vokoscreen - easy to use screencast creator
i xserver-common - common files used by various X servers
i xserver-xorg-core - Xorg X server - core server
i xserver-xorg-input-synaptics - Synaptics TouchPad driver for X.Org server
i xserver-xorg-video-ati - X.Org X server -- AMD/ATI display driver wrapper
i xserver-xorg-video-cirrus - X.Org X server -- Cirrus display driver
i xserver-xorg-video-intel - X.Org X server -- Intel i8xx, i9xx display driver
i xserver-xorg-video-mach64 - X.Org X server -- ATI Mach64 display driver
i xserver-xorg-video-nouveau - X.Org X server -- Nouveau display driver
i xserver-xorg-video-r128 - X.Org X server -- ATI r128 display driver
i xserver-xorg-video-radeon - X.Org X server -- AMD/ATI Radeon display driver
i xserver-xorg-video-vmware - X.Org X server -- VMware display driver
答案1
对我有用的是删除所有损坏的包裹,因为它们阻碍了升级。
首先找出哪些包裹已损坏:
grep Broken /var/log/dist-upgrade/apt.log
然后删除它们:
sudo apt-get remove <packages to remove>
有些可能会在升级期间重新安装,其他的您可能需要自行重新安装。
答案2
系统升级失败后,请检查文件/var/log/dist-upgrade/main.log
我找到了这一行:
2013-10-17 15:00:30,543 ERROR Dist-upgrade failed: 'The package 'xubuntu-desktop' is marked for removal but it is in the removal blacklist.'
我手动删除了 xubuntu-desktop。然后升级继续进行,没有任何问题。
答案3
这里也有类似的问题。上一篇文章中指出的“main.log”文件中的最后几行是:
2013-10-17 23:44:38,233 DEBUG blacklist expr 'unity$' matches 'unity'
2013-10-17 23:44:38,233 DEBUG The package 'unity' is marked for removal but it's in the removal blacklist
2013-10-17 23:44:43,585 ERROR Dist-upgrade failed: 'The package 'unity' is marked for removal but it is in the removal blacklist.'
2013-10-17 23:44:43,586 DEBUG abort called
2013-10-17 23:44:43,592 DEBUG openCache()
2013-10-17 23:44:43,592 DEBUG failed to SystemUnLock() (E:Not locked)
2013-10-17 23:44:46,786 DEBUG /openCache(), new cache size 41453
2013-10-17 23:44:46,786 DEBUG enabling apt cron job
手动卸载 Unity 并继续升级。不太清楚是什么导致了这个问题,也不太清楚这是否真的是一个好的“解决方案”,但我想我会在更新完成后找到答案?!?
答案4
就我的情况而言,问题是由抓住状态。放回安装国家解决了这个问题。
放入或移除包的可能方法抓住state 正在使用dpkg
。首先,获取所有包的当前状态,并将其放入文件中:
dpkg --get-selections > myselection
然后,编辑文件并替换install
为hold
,反之亦然。最后,设置新的选择:
sudo dpkg --set-selections < myselection
sudo apt-get update
sudo apt-get upgrade
其他方法描述于如何阻止软件包升级?