运行以下命令来安装 opera:
设置密钥:
wget -O - http://deb.opera.com/archive.key | sudo apt-key add -
设置存储库:
sudo sh -c 'echo "deb http://deb.opera.com/opera-stable/ stable non-free" >> /etc/apt/sources.list.d/opera.list'
sudo apt-get update
sudo apt-get install opera
但最后我在命令终端上收到此消息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
opera : Depends: libgstreamer-plugins-base0.10-0 (>= 0.10.16) but it is not installable
Depends: libgstreamer0.10-0 (>= 0.10.15) but it is not installable
Depends: gstreamer0.10-plugins-good but it is not installable
Recommends: flashplugin-nonfree
E: Unable to correct problems, you have held broken packages.
在命令行输入 lsb_release -a 显示我的 ubuntu 版本是 Ubuntu 17.10,但我使用的是 lubuntu。
答案1
在您的终端上,运行以下命令:
wget https://download3.operacdn.com/pub/opera/desktop/50.0.2762.45/linux/opera-stable_50.0.2762.45_amd64.deb
sudo dpkg -i opera-stable_50.0.2762.45_amd64.deb
wget:下载opera-stable_50.0.2762.45_amd64.deb
dpkg:使用 deb 文件安装 opera-stable。
答案2
您可以安装 snap 版本,Opera 网站建议下载 snap。在终端中,执行以下操作:
sudo snap install opera
在使用上述命令之前,您可能需要先安装 snap,为此请使用以下命令:
sudo apt install snapd