我无法从 Ubuntu 16.04.5 LTS 升级到 18.04.1 LTS,因为一个软件包尚未升级 ( libbluray-bdj )。当我尝试升级它时,它无法升级,因为它依赖于一个不可升级的包(libasm-java),因为它没有安装候选。当我尝试删除libbluray-bdj时,它告诉我它将删除我不想做的ubuntu-mate-desktop 。
我之所以通过终端执行升级,是因为我之前通过软件更新程序进行了部分升级(在遇到这些问题之前),并且我不想让我的系统在 16.04.5 和 18.04.1 之间处于部分升级状态。
我只想升级到 18.04.1。谢谢!
以下是我使用的命令及其输出:
lsb_release -a
Run Code Online (Sandbox Code Playgroud)
没有可用的 LSB 模块。
发行商 ID:Ubuntu
描述:Ubuntu 16.04.5 LTS
版本:16.04
代号:xenial
sudo apt update && sudo apt upgrade
Run Code Online (Sandbox Code Playgroud)
1个包可以升级。运行“apt list --upgradable”来查看它。
apt list --upgradable -a
Run Code Online (Sandbox Code Playgroud)
libbluray-bdj/xenial,xenial 1:1.0.2-3~xenial all [可升级自:1:0.9.2-2]
N:有 1 个附加版本。请使用“-a”开关查看
sudo apt-get dist-upgrade
Run Code Online (Sandbox Code Playgroud)
0 已升级,0 已新安装,0 已删除,0 未升级。
sudo apt-get upgrade -y
Run Code Online (Sandbox Code Playgroud)
以下软件包已被保留:
libbluray-bdj
0 个已升级,0 个新安装,0 个要删除,1 个未升级。
sudo do-release-upgrade
Run Code Online (Sandbox Code Playgroud)
请在升级之前安装适用于您的版本的所有可用更新。
sudo …
Run Code Online (Sandbox Code Playgroud) 我有一个 /boot full 问题,但现在 /boot 中有很多空间。但现在我不能做apt-get autoremove
或apt-get -f install
或其他任何事情。头文件似乎不在 /boot 中,并且一直在升级,而 Linux 映像则没有。我接下来应该尝试什么?
我也尝试过apt-get dist-upgrade
,由于相同的依赖性问题,这也失败了。
ls /var/cache/apt/archives
和/var/cache/apt/archives/partial
这里 的输出。
root@ethan:/boot# apt-get clean
root@ethan:/boot# apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
root@ethan:/boot# apt-get install linux-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-generic : Depends: …
Run Code Online (Sandbox Code Playgroud) 在 Ubuntu 14.04 上
$ dpkg --get-selections | grep ^aspell
$ apt-cache depends aspell
aspell
Depends: libaspell15
Depends: libc6
Depends: libncursesw5
Depends: libstdc++6
Depends: libtinfo5
Depends: dictionaries-common
Suggests: aspell-doc
Suggests: spellutils
|Recommends: aspell-en
|Recommends: <aspell-dictionary>
aspell-ca
aspell-am
aspell-ar
aspell-ar-large
aspell-bg
aspell-br
aspell-cs
aspell-cy
aspell-de
aspell-de-alt
aspell-el
aspell-en
aspell-eo
aspell-eo-cx7
aspell-es
aspell-et
aspell-eu-es
aspell-fa
aspell-fo
aspell-fr
aspell-ga
aspell-gl-minimos
aspell-he
aspell-hr
aspell-hsb
aspell-hu
aspell-hy
aspell-id
aspell-is
aspell-it
aspell-kk
aspell-ku
aspell-lt
aspell-lv
aspell-nl
aspell-pl
aspell-pt-br
aspell-pt-pt
aspell-ro
aspell-ru
aspell-sk
aspell-sl
aspell-sv
aspell-tl
aspell-uk …
Run Code Online (Sandbox Code Playgroud) 我运行命令来安装关于 ruby 的所有内容:sudo apt-get install ruby-*
。但它显示了未满足的依赖项/损坏的包。
现在告诉我如何安装所有满足依赖项(满足)的包。
我制作了一个 bash 脚本如下:
#!/bin/bash
echo "this is stand-in for 'sudo apt autoremove --purge'"
echo "Uninstalling ..."
apt autoremove --purge
echo "enjoy your free memory..."
Run Code Online (Sandbox Code Playgroud)
但是在变成可执行文件chmod
并运行它之后sudo ./script <package_name>
,输出是这样的:-
this is stand-in for 'sudo apt autoremove-purge'
Uninstalling ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
enjoy your free memory...
Run Code Online (Sandbox Code Playgroud)
但是如果我使用通常的命令运行相同的代码:-
sudo apt autoremove --purge <package_name>
,那么它的工作原理如下:-
Building dependency tree
Reading state information... …
Run Code Online (Sandbox Code Playgroud) 我在升级 Ubuntu 软件包时遇到错误,它建议运行apt --fix-broken install
,但这样做并没有成功。我进行了搜索,发现的唯一答案是删除我不愿意做的软件包,因为我可能会把它搞砸。
我python3.10
几个月前安装了,我的项目依赖它。
sudo apt-get upgrade
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libpython3.10 : Depends: libpython3.10-stdlib (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is installed
libpython3.10-dev : Depends: libpython3.10-stdlib (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is installed
python3.10 : Depends: libpython3.10-stdlib (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is installed
python3.10-minimal : Depends: libpython3.10-minimal (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is installed
E: Unmet dependencies. …
Run Code Online (Sandbox Code Playgroud) 这个问题不是骗人的。我在这里收到了我想要的答案:https : //unix.stackexchange.com/a/411530/3285
以前,当我只是尝试更新时会收到此错误。我相信这个问题与VLC PPA有关,它在 Ubuntu 上一直是彻头彻尾的垃圾。rm
为了清除*vlc*
包,我实际上必须删除受包控制的文件。现在,我删除了那个文件,我可以相对轻松地删除 vlc 包。我想这会让我回到开始,我可以再次尝试安装,但是当我这样做时,我收到了这个错误,
sudo apt-get install vlc
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 …
Run Code Online (Sandbox Code Playgroud) dependencies ×7
apt ×6
bash ×1
boot ×1
command-line ×1
dpkg ×1
ppa ×1
ruby ×1
upgrade ×1
vlc ×1