无法在 Ubuntu 17.04 上安装 Opera 浏览器

无法在 Ubuntu 17.04 上安装 Opera 浏览器

我尝试通过.deb从 Opera 网站下载文件来安装 Opera。运行后sudo dpkg -i opera-stable_44.0.2510.1218_amd64得到以下结果:

[sudo] password for user1: 
(Reading database ... 187300 files and directories currently installed.)
Preparing to unpack opera-stable_44.0.2510.1218_amd64.deb ...
Unpacking opera-stable (44.0.2510.1218) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive opera-stable_44.0.2510.1218_amd64.deb (--install):
 cannot copy extracted data for './usr/lib/x86_64-linux-gnu/opera/opera' to '/usr/lib/x86_64-linux-gnu/opera/opera.dpkg-new': unexpected end of file or stream
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Processing triggers for shared-mime-info (1.8-1) ...
Processing triggers for menu (2.1.47ubuntu1) ...
Errors were encountered while processing:
 opera-stable_44.0.2510.1218_amd64.deb"

Opera 目前在 Ubuntu 软件商店或软件精品店中不可用。我也尝试了旧版本opera-stable_44.0.2510.857_amd64.deb,得到了类似的结果。我下载了两次软件包,以为可能是下载错误,但结果是一样的。

答案1

尝试这个:

打开终端,

Ctrl++AltT

运行:

exec sudo -i
nano /etc/apt/sources.list.d/opera-stable.list

在打开的文件中粘贴以下文本:

# This file makes sure that Opera Browser is kept up-to-date
# as part of regular system upgrades

deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)

Ctrl+O

保存存档。

Ctrl+X

关闭纳米。

继续在终端运行:

wget -O - http://deb.opera.com/archive.key | apt-key add -
apt-get update
apt-get install opera-stable

相关内容