Answers:
要仅自行升级Firefox,请执行以下操作:
sudo apt-get dist-upgrade firefox
要么
sudo apt-get upgrade firefox
从 man apt-get
upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new versions
available are retrieved and upgraded; under no circumstances are
currently installed packages removed, or packages not already
installed retrieved and installed. New versions of currently
installed packages that cannot be upgraded without changing the
install status of another package will be left at their current
version. An update must be performed first so that apt-get knows
that new versions of packages are available.
dist-upgrade
dist-upgrade in addition to performing the function of upgrade, also
intelligently handles changing dependencies with new versions of
packages; apt-get has a "smart" conflict resolution system, and it
will attempt to upgrade the most important packages at the expense of
less important ones if necessary. The dist-upgrade command may
therefore remove some packages. The /etc/apt/sources.list file
contains a list of locations from which to retrieve desired package
files. See also apt_preferences(5) for a mechanism for overriding the
general settings for individual packages.
sudo apt-get dist-upgrade firefox
。它会更新所有程序,因此无法解决问题。sudo apt-get --only-upgrade install firefox
仅更新Firefox应用并解决问题。
要从终端类型仅升级Firefox,请执行以下操作:
sudo apt upgrade firefox
上面的命令不带该--only-upgrade
选项即可工作。如果您的Firefox已经是最新版本,则该命令将不会安装任何新软件包,并且您将收到以下消息:
firefox is already the newest version.
--only-upgrade
参数(仅sudo apt-get install firefox
)也可以使用firefox
。附加参数只会阻止尚未安装Firefox的用户安装Firefox,但您可以在此处省略它。
您可以更新的应用程序通过使用命令行使用以下命令:
$ sudo apt upgrade <app name>
如果没有更新的系统信息库,按照此步骤:
您可以安装Snap软件包管理器来安装新的应用程序版本。
要安装它,请遵循以下命令:
$ sudo apt install snapd
然后,您可以通过以下命令从中安装 应用程序:
$ sudo snap install <app name>
注意:并非所有应用程序都存在于其中。
这些应用程序始终是最新版本
快照 站点位于以下URL中:
并询问有关 捕捉的命令,使用命令:
$ man snap
要升级到软件包的最新版本,请执行以下操作(我已经尝试过):
sudo apt install google-chrome-stable
sudo apt-get upgrade wput
它升级了每个程序,而不仅仅是wput。我看到了您对升级的描述,但了解这似乎不只是升级指定的程序(至少并非在每种情况下都可以升级)可能会有所帮助。