更新时间:2022-12-31 10:44:11浏览次数:475+次
本文介绍如何在Ubuntu 22.04 Linux系统上安装Opera Web浏览器的方法。
在Ubuntu 22.04上安装Opera的详细步骤
步骤1:将Opera APT存储库添加到Ubuntu 22.04
基于Debian的系统提供了一个包含Opera Web浏览器最新版本的APT存储库。在添加存储库之前,让我们导入存储库GPG密钥:
sudo apt update && sudo apt install wget curl
wget -qO- https://deb.opera.com/archive.key | sudo apt-key add -
curl https://deb.opera.com/archive.key | gpg --dearmor > opera.gpg
sudo install -o root -g root -m 644 opera.gpg /etc/apt/trusted.gpg.d/
GPG密钥将添加到/etc/apt/trusted.gpg.d/目录中:
$ ls /etc/apt/trusted.gpg.d/
opera.gpg ubuntu-keyring-2012-cdimage.gpg ubuntu-keyring-2018-archive.gpg
安装software-properties-common包,该包提供add-apt-repository,用于将Opera存储库添加到我们的Ubuntu Linux:
sudo apt install lsb-release ca-certificates apt-transport-https software-properties-common -y
使用add-apt-repository命令添加Opera存储库:
sudo add-apt-repository "deb [arch=i386,amd64] https://deb.opera.com/opera-stable/ stable non-free"
步骤2:在Ubuntu 22.04上安装Opera Web浏览器
添加存储库后,通过从所有配置的源下载包信息来确认它是否正常工作:
$ sudo apt update
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [90.7 kB]
Hit:2 https://deb.opera.com/opera-stable stable InRelease
Hit:3 http://ke.archive.ubuntu.com/ubuntu jammy InRelease
Ign:4 http://repo.vivaldi.com/stable/deb stable InRelease
Hit:5 http://repo.vivaldi.com/stable/deb stable Release
Get:6 http://ke.archive.ubuntu.com/ubuntu jammy-updates InRelease [90.7 kB]
Get:8 http://ke.archive.ubuntu.com/ubuntu jammy-backports InRelease [90.7 kB]
Fetched 272 kB in 2s (147 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
45 packages can be upgraded. Run 'apt list --upgradable' to see them.
现在在Ubuntu 22.04上安装Opera web浏览器:
sudo apt install opera-stable
检查依赖项,然后按键盘上的y或yes继续安装:
The following packages were automatically installed and are no longer required:
libcamel-1.2-62 libdpkg-perl libextutils-pkgconfig-perl libfile-fcntllock-perl libgupnp-1.2-0 pkg-config
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
chromium-codecs-ffmpeg-extra
Recommended packages:
pepperflashplugin-nonfree
The following NEW packages will be installed:
chromium-codecs-ffmpeg-extra opera-stable
0 upgraded, 2 newly installed, 0 to remove and 45 not upgraded.
Need to get 78.8 MB of archives.
After this operation, 239 MB of additional disk space will be used.
Do you want to continue? [Y/n] yes
同意“是否要与系统的其他部分一起更新Opera?(Do you want to update Opera together with the rest of the system)”:
可以使用apt命令检查包括版本号在内的已安装软件包详细信息:
$ apt policy opera-stable
它会返回相关版本的信息。
步骤3:在Ubuntu 22.04上使用Opera Web浏览器
可从终端启动已安装的Opera浏览器:
$ opera
或从桌面环境应用程序搜索:
打开后,即表明我们已经在Ubuntu 22.04桌面系统上完成了Opera Web浏览器的安装:
当然,用户也可以将Opera设置成默认的浏览器,以替代Firefox使用。