
當嘗試使用終端升級時,我的升級停止了。這是終端機中顯示的行:
The required dependency 'apt(>=1.0.10.2 ubuntu2)' is not installed.
我的問題是我不知道安裝此依賴項的命令。使用其他命令,它說 apt 是最新的。解決方案?
答案1
遇到了同樣的問題,按照安德魯的建議,強制更新 apt 並清理當前安裝來解決:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install # (not "install -f"!)
sudo apt-get -y install apt
sudo do-release-upgrade
答案2
我遇到了這個錯誤,對我來說,我缺少 /etc/apt/sources.list 中的 wily-updates 行:
deb http://archive.ubuntu.com/ubuntu/ wily-updates main restricted universe multiverse
答案3
我也遇到了這個問題,這將更新您的所有好東西以及從 15 升級到 16。
前往Software and Updates
>Updates
勾選以下內容
- 狡猾的安全
- 狡猾的更新
- 狡猾的提議
更新和升級目前系統
sudo apt-get update && sudo apt-get upgrade
取得升級
sudo apt-get dist-upgrade
在 CLI 中升級
sudo do-release-upgrade
答案4
以前發布的解決方案對我來說不起作用。
正如評論中所發現的那樣,有效的是發射台:
wget http://launchpadlibrarian.net/254524267/apt_1.0.10.2ubuntu2_amd64.deb
wget http://launchpadlibrarian.net/254524264/apt-transport-https_1.0.10.2ubuntu2_amd64.deb
wget http://launchpadlibrarian.net/254524266/apt-utils_1.0.10.2ubuntu2_amd64.deb
wget http://launchpadlibrarian.net/254524269/libapt-inst1.7_1.0.10.2ubuntu2_amd64.deb
wget http://launchpadlibrarian.net/254524270/libapt-pkg4.16_1.0.10.2ubuntu2_amd64.deb
sudo dpkg --install apt_1.0.10.2ubuntu2_amd64.deb apt-transport-https_1.0.10.2ubuntu2_amd64.deb apt-utils_1.0.10.2ubuntu2_amd64.deb libapt-inst1.7_1.0.10.2ubuntu2_amd64.deb libapt-pkg4.16_1.0.10.2ubuntu2_amd64.deb
sudo do-release-upgrade