首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Debian 9上安装最新的firefox版本?

如何在Debian 9上安装最新的firefox版本?
EN

Unix & Linux用户
提问于 2018-06-02 23:52:01
回答 1查看 5.7K关注 0票数 2

我正在运行Debian 9,而不是这个发行版附带的严重过时的Firefox ESR版本,我希望始终使用最新的Firefox版本。

因此,我将我的/etc/apt/sources.list文件更改为:

代码语言:javascript
复制
deb http://ftp.de.debian.org/debian/ stretch main
deb-src http://ftp.de.debian.org/debian/ stretch main

deb http://security.debian.org/ stretch/updates main contrib
deb-src http://security.debian.org/ stretch/updates main contrib

# jessie-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ stretch-updates main contrib
deb-src http://ftp.de.debian.org/debian/ stretch-updates main contrib

deb http://ftp.us.debian.org/debian/ sid main
deb-src http://ftp.us.debian.org/debian/ sid main

这件事有一段时间没问题。然而,我现在得到了这个信息

代码语言:javascript
复制
The following packages have been kept back: firefox

每次我运行“智能升级firefox”。

运行“智能域升级”命令将获得以下结果:

代码语言:javascript
复制
The following packages will be DOWNGRADED:
libc-bin libc-dev-bin libc-l10n libc6 libc6-dev locales 
The following packages will be upgraded:
firefox{b} 
1 packages upgraded, 0 newly installed, 6 downgraded, 0 to remove and 0 not upgraded.

Need to get 51.2 MB of archives. After unpacking 12.0 MB will be freed.
The following packages have unmet dependencies:
firefox : Depends: libc6 (>= 2.27) but 2.24-11+deb9u3 is to be installed
       Depends: zlib1g (>= 1:1.2.11.dfsg) but 1:1.2.8.dfsg-5 is installed
The following actions will resolve these dependencies:

 Keep the following packages at their current version:
 1)     firefox [59.0.2-1 (now)]                           
 2)     libc-bin [2.27-3 (now, unstable)]                  
 3)     libc-dev-bin [2.27-3 (now, unstable)]              
 4)     libc-l10n [2.27-3 (now, unstable)]                 
 5)     libc6 [2.27-3 (now, unstable)]                     
 6)     libc6-dev [2.27-3 (now, unstable)]                 
 7)     locales [2.27-3 (now, unstable)]                   
Accept this solution? [Y/n/q/?]

非常感谢你提出的任何有助于解决这个问题的建议。

//编辑:"apt政策“的输出是:

代码语言:javascript
复制
 100 /var/lib/dpkg/status
 release a=now
 500 https://riot.im/packages/debian stretch/main amd64 Packages
 release o=riot.im,a=testing,n=stretch,c=main,b=amd64
 origin riot.im
 2 http://ftp.us.debian.org/debian sid/main amd64 Packages
 release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=amd64
 origin ftp.us.debian.org
 500 http://ftp.de.debian.org/debian stretch-updates/main amd64 Packages
 release o=Debian,a=stable-updates,n=stretch updates,l=Debian,c=main,b=amd64
 origin ftp.de.debian.org
 1000 http://security.debian.org stretch/updates/contrib amd64 Packages
 release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=contrib,b=amd64
 origin security.debian.org
 1000 http://security.debian.org stretch/updates/main amd64 Packages
 release v=9,o=Debian,a=stable,n=stretch,l=Debian-Security,c=main,b=amd64
 origin security.debian.org
 1000 http://ftp.de.debian.org/debian stretch/main amd64 Packages
 release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
 origin ftp.de.debian.org
 Pinned packages:
 fontconfig-config -> 2.13.0-5 with priority 1001
 libfontconfig1 -> 2.13.0-5 with priority 1001
 libnss3 -> 2:3.37.1-1 with priority 1001
 firefox -> 60.0.1-5 with priority 1001
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2018-06-03 09:40:21

( 1)修正“下列包裹已被保留.”错误。

编辑您的sources.list如下:

代码语言:javascript
复制
deb http://ftp.de.debian.org/debian/ stretch main
deb-src http://ftp.de.debian.org/debian/ stretch main

deb http://security.debian.org/ stretch/updates main 
deb-src http://security.debian.org/ stretch/updates main 


deb http://ftp.de.debian.org/debian/ stretch-updates main 
deb-src http://ftp.de.debian.org/debian/ stretch-updates main 

删除破坏apt.的Sid url

创建(编辑现有文件的内容)具有以下内容的/etc/apt/preferences文件:

代码语言:javascript
复制
Pin: release a=stable
Pin-Priority: 1001

Package: *
Pin: release a=stable-updates
Pin-Priority: 1001

Package: *
Pin: release a=proposed-updates
Pin-Priority: 1001

Package: *
Pin: release o=Debian
Pin-Priority: -10

然后运行remove并从稳定中重新安装它的依赖项:

代码语言:javascript
复制
apt update
apt purge --autoremove firefox
apt dist-upgrade

有些软件包(可能)需要通过以下方式手动重新安装:

代码语言:javascript
复制
apt --reinstall install package

请不要使用apt removeapt purge删除它们。

2)在debian上安装最新的火狐:从apt,火狐包是一个更新的软件包,但版本是58.x (它不是一个过时的软件包)

如果您需要安装最新版本,您可以使用snap,这是一种安全的方式来安装最新的火狐软件包。

代码语言:javascript
复制
apt install snapd

检查可用的版本:

代码语言:javascript
复制
snap find firefox:

样本输出:

代码语言:javascript
复制
firefox  60.0-2   mozilla    -      Mozilla Firefox web browser

安装firefox 60.0-2

代码语言:javascript
复制
snap install firefox
票数 5
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/447551

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档