我正在尝试进行 Ubuntu 18.04 LTS 的最后更新并且始终显示此窗口。
Ubuntu 永远无法更新操作系统。
我试过:$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
1 not fully installed or removed.
Need to get 64.6 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://security.ubuntu.com/ubuntu bionic-security/main amd64 linux-firmware all 1.173.1 [64.6 MB]
Fetched 64.6 MB in 6s (10.4 MB/s)
我尝试过:$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 https://deb.nodesource.com/node_10.x bionic InRelease
Get:3 https://deb.opera.com/opera-stable stable InRelease [2,591 B]
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit:5 https://dl.yarnpkg.com/debian stable InRelease
Hit:6 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Hit:7 http://ca.archive.ubuntu.com/ubuntu bionic InRelease
Hit:8 http://dl.google.com/linux/chrome/deb stable Release
Get:9 http://ca.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:10 http://ca.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Reading package lists... Done
E: Repository 'https://deb.opera.com/opera-stable stable InRelease' changed its 'Origin' value from 'Opera Software ASA' to 'Opera Software AS'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
和:
$ sudo dpkg --configure -a
$ sudo apt-get clean
$ sudo apt upgrade
Reading package lists... Done
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:
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
和:
$ sudo apt --fix-broken install --> not working.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
1 not fully installed or removed.
Need to get 0 B/64.6 MB of archives.
After this operation, 0 B of additional disk space will be used.
有人知道解决办法吗?
答案1
真正的问题就在这里
E: Repository 'https://deb.opera.com/opera-stable stable InRelease' changed its 'Origin' value from 'Opera Software ASA' to 'Opera Software AS'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
运行sudo apt update
而不是sudo apt-get update
,您将收到提示,选择接受或拒绝从该存储库接收更新。