首先,很抱歉有这么长的问题。
我尝试了以下一组命令来升级我的16.04到18.04。最终的结果是"Please在升级之前安装所有可用的更新。“
$ sudo apt update
$ sudo apt upgrade
$ sudo apt dist-upgrade
$ sudo apt autoremove
$ sudo apt install update-manager-core
$ sudo do-release-upgrade我正在使用这篇文章作为参考。
目前,我正在使用16.04。通知设置为For长期支持版本.在Software & Update > Update部分
在升级之前,我在获得消息后运行了$ sudo apt list --upgradable -a,为您的发布安装了所有可用的更新。上述命令的输出如下:
ruby/xenial 1:2.3.0+1 all ruby-dev/now 1:1.9.3.5bbox3~trusty1 all
所以,我运行了$ sudo apt-get install ruby2.3 ruby2.3-dev,但是输出显示
这是输出:
ruby2.3 is already the newest version (2.3.8-4bbox1~trusty1).
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:
ruby2.3-dev : Depends: libruby2.3 (= 2.3.1-2~ubuntu16.04.14) but 2.3.8-4bbox1~trusty1 is to be installed
E: Unable to correct problems, you have held broken packages.以下是wo putput:
有趣的是,第一个输出显示已经安装了的version,在第二个输出行中要求<#>same的确切版本!
我甚至尝试了$ sudo apt-get install libruby2.3,得到了这个:
libruby2.3 is already the newest version (2.3.8-4bbox1~trusty1).
libruby2.3 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.解决这个问题的正确方法是什么?根据这篇文章的说法,看起来很多用户都经历过这个特殊的问题。
编辑:
请参阅下面的$ sudo apt policy libruby2.3输出。
libruby2.3:
Installed: 2.3.8-4bbox1~trusty1
Candidate: 2.3.8-4bbox1~trusty1
Version table:
*** 2.3.8-4bbox1~trusty1 100
100 /var/lib/dpkg/status
2.3.1-2~ubuntu16.04.14 500
500 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
2.3.0-5ubuntu1 500
500 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 Packages发布于 2020-09-03 11:46:18
取出包,再试一次。
sudo apt remove --purge ruby2.3 ruby2.3-dev
sudo apt autoremove然后下载这个文件并使用软件安装程序安装它。
那就升级吧。
https://askubuntu.com/questions/1272091
复制相似问题