HyH*_*ena 5 upgrade updates update-manager
在整个过程中,互联网连接工作正常。
每次我打开计算机时,都会弹出一条错误消息,提示“检测到系统程序问题”。我确信是关于这个问题的。另请注意:操作系统是 Ubuntu 18.04。
首先,使用点击方法(通过 GUI)时它没有更新任何内容。软件更新程序出现,显示更新,然后我单击“立即安装”,但开始该过程,当到达第一个步骤时,它消失了。
对于这个问题我尝试使用终端(sudo apt-get update && sudo apt-get upgrade
)手动更新和升级。这解决了部分问题,因为大多数软件包都需要更新。
尽管如此,问题仍然存在,因为 Ubuntu 基础(安全更新)和待删除的未使用的内核更新不断出现,并在点击“立即安装”按钮后发生相同的问题。我再次尝试使用终端,问题仍然存在,并显示“检测到系统程序问题”消息。
失败的解决方案:
a) 我认为互联网连接是问题的根源,但我卸载了 Wicd 并重新安装了它。b)我尝试过:sudo rm -rvf /var/lib/apt/lists/*
然后,正如另一篇文章sudo apt-get update
的答案所说。
我能做些什么?谢谢。
sudo apt-get update 的输出:
Hit:1 http://es.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://archive.canonical.com bionic InRelease
Get:3 http://es.archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]
Get:5 http://es.archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
Fetched 247 kB in 1s (337 kB/s)
Reading package lists... Done
Run Code Online (Sandbox Code Playgroud)
sudo apt-get update 的输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
gir1.2-javascriptcoregtk-4.0 gir1.2-webkit2-4.0 libjavascriptcoregtk-4.0-18 libwebkit2gtk-4.0-37 linux-generic linux-headers-generic
linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Run Code Online (Sandbox Code Playgroud)
首先,更新以下内容:
sudo apt autoremove && sudo apt autoclean -y
Run Code Online (Sandbox Code Playgroud)
然后打开 nano 并sudo nano /etc/apt/sources.list
检查默认 ubuntu 更新存储库是否有任何不匹配的情况:
笔记-
16.04 - 赛尼尔
18.04 - 仿生
deb http://in.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://in.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
Run Code Online (Sandbox Code Playgroud)
如果更容易的话,请在 nano 中按“CTRL + K”删除这些行。并将它们与上面提供给您的内容复制粘贴。
按“CTRL + X”退出。提示保存 - 按“Y”保存。
键入cat /etc/apt/sources.list
以仔细检查它们是否正确。
然后做一个sudo apt update && sudo apt upgrade -y
希望应该可以解决您的问题。
归档时间: |
|
查看次数: |
51473 次 |
最近记录: |