安装更新选项

安装更新选项

我使用的是 Ubuntu 16.04,当我进入设置中的“详细信息/概述”页面时,我在右下角看到一个按钮,上面写着:“安装更新”。按下它会弹出一个小的进度窗口,但实际上并没有安装任何新东西。我怎样才能将按钮更改为显示系统已更新,而不是执行这种伪更新操作?

答案1

主要问题是 GUI 不显示来自终端的错误消息,在我的情况下是:“以下软件包已被保留:”然后按照以下答案这里应该努力去修复它。

答案2

只需使用以下任一方法安装更新即可。

方法 1(GUI):

搜索 '软件更新程序在 Unity 搜索栏中选择“现在安装' 一旦其查询全部更新。

方法 2(命令行):

$ sudo apt-get update
$ sudo apt-get upgrade -y
$ sudo apt-get install -f -y

注意:确保您拥有不间断的互联网连接。

答案3

安装更新选项

当您选择“系统设置”、“详细信息”时,您的屏幕如下所示:

设置详细信息安装

右下角的选项“安装更新”可以最好地描述为:

  • 检查是否存在更新,然后给我安装它们的选项

终端当量

为了模仿终端中的步骤,第一步是更新类似于以下内容的存储库信息sudo apt update

$ sudo apt update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:2 http://archive.canonical.com/ubuntu trusty InRelease                               
Ign:3 http://dl.google.com/linux/earth/deb stable InRelease                              
Hit:4 http://dl.google.com/linux/chrome/deb stable Release                               
Hit:5 http://archive.canonical.com/ubuntu trusty Release                                 
Hit:6 http://dl.google.com/linux/earth/deb stable Release                                
Hit:9 http://security.ubuntu.com/ubuntu xenial-security InRelease                        
Ign:11 http://ppa.launchpad.net/daniel.pavel/solaar/ubuntu xenial InRelease              
Hit:12 http://ca.archive.ubuntu.com/ubuntu xenial InRelease             
Hit:13 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease                      
Hit:14 http://ppa.launchpad.net/fossfreedom/indicator-sysmonitor/ubuntu xenial InRelease
Hit:15 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease                    
Hit:16 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease             
Hit:17 http://ppa.launchpad.net/mkusb/ppa/ubuntu xenial InRelease              
Hit:18 http://ppa.launchpad.net/peek-developers/stable/ubuntu xenial InRelease 
Hit:19 https://download.01.org/gfx/ubuntu/16.04/main xenial InRelease          
Hit:20 http://ppa.launchpad.net/peterlevi/ppa/ubuntu xenial InRelease          
Hit:21 http://ppa.launchpad.net/sethj/silentcast/ubuntu xenial InRelease       
Err:22 http://ppa.launchpad.net/daniel.pavel/solaar/ubuntu xenial Release      
  404  Not Found
Reading package lists... Done
W: https://download.01.org/gfx/ubuntu/16.04/main/dists/xenial/InRelease: Signature by key 09D6EF97BFB38E916EF060E756A3DEF863961D39 uses weak digest algorithm (SHA1)
E: The repository 'http://ppa.launchpad.net/daniel.pavel/solaar/ubuntu xenial Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

接下来查看需要更新哪些包:

$ sudo apt list --upgradeable
Listing... Done
conky-std/xenial 1.10.1-3 amd64 [upgradable from: 1.9.0-4]
libpoppler-glib8/xenial-updates,xenial-security 0.41.0-0ubuntu1.6 amd64 [upgradable from: 0.41.0-0ubuntu1.5]
libpoppler58/xenial-updates,xenial-security 0.41.0-0ubuntu1.6 amd64 [upgradable from: 0.41.0-0ubuntu1.5]
poppler-utils/xenial-updates,xenial-security 0.41.0-0ubuntu1.6 amd64 [upgradable from: 0.41.0-0ubuntu1.5]

在这种情况下,人们期待已久的崩溃安全漏洞补丁可能可供安装,可通过 完成sudo apt upgrade。但我打算等到其他人安装并测试完毕后再安装。

概括

上的选项细节屏幕旨在检查您单击按钮时是否存在更新。要让其检查更新安装屏幕并将按钮更改为“系统最新”或“安装更新”,将导致延迟数秒到数分钟。还必须创建第三个按钮标签“互联网不可用”。

我认为您所寻求的更改不可能在系统详细信息屏幕上实现。


更新 - 包中的错误

OP 发帖说有些包裹被扣留了。这种情况经常发生,原因如下:

  • 依赖项:包依赖于另一个正在更新但无法更新的包。
  • 已固定:某个软件包(例如上面的 Conky 1.9)已被用户固定到特定版本,并且无法通过 Ubuntu 升级。

当您从终端使用时,您可以看到这些消息sudo apt upgrade,但 OP 没有通过 GUI 看到这些消息。

相关内容