sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/
deepnorth@ubuntu:~$ sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/
[sudo] password for deepnorth:
--2019-09-20 18:02:43-- http://www.linuxidc.com/files/repo/google-chrome.list
Resolving www.linuxidc.com (www.linuxidc.com)... 1.31.128.249
Connecting to www.linuxidc.com (www.linuxidc.com)|1.31.128.249|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.linuxidc.com/files/repo/google-chrome.list [following]
--2019-09-20 18:02:58-- https://www.linuxidc.com/files/repo/google-chrome.list
Connecting to www.linuxidc.com (www.linuxidc.com)|1.31.128.249|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 131 [application/octet-stream]
Saving to: ‘/etc/apt/sources.list.d/google-chrome.list.1’
google-chrome.list.1 100%[==========================================================================>] 131 --.-KB/s in 0s
2019-09-20 18:02:58 (32.1 MB/s) - ‘/etc/apt/sources.list.d/google-chrome.list.1’ saved [131/131]
deepnorth@ubuntu:~$
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
deepnorth@ubuntu:~$ wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
OK
deepnorth@ubuntu:~$
用于对当前系统的可用更新列表进行更新,随时获得最新的软件版本信息。
deepnorth@ubuntu:~$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://repo.mysql.com/apt/ubuntu xenial InRelease
Get:3 http://dl.google.com/linux/chrome/deb stable Release [943 B]
Get:4 http://dl.google.com/linux/chrome/deb stable Release.gpg [819 B]
Hit:5 http://cn.archive.ubuntu.com/ubuntu xenial InRelease
Hit:6 https://download.docker.com/linux/ubuntu xenial InRelease
Get:7 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,104 B]
Get:8 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:9 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Hit:10 http://linux.teamviewer.com/deb stable InRelease
Hit:11 http://linux.teamviewer.com/deb preview InRelease
Get:12 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:13 http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu xenial InRelease
Ign:14 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial InRelease
Hit:15 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Ign:16 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial Release
Ign:17 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main amd64 Packages
Ign:18 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main i386 Packages
Ign:19 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main all Packages
Ign:20 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main Translation-en_US
Ign:21 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main amd64 Packages
Ign:18 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main i386 Packages
Ign:19 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main all Packages
Ign:20 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main Translation-en_US
Ign:21 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main amd64 Packages
Ign:18 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main i386 Packages
Ign:19 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main all Packages
Ign:20 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main Translation-en_US
Ign:21 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main amd64 Packages
Ign:18 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main i386 Packages
Ign:19 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main all Packages
Ign:20 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main Translation-en_US
Ign:21 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main Translation-en
Ign:17 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main amd64 Packages
Ign:18 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main i386 Packages
Ign:19 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main all Packages
Ign:20 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main Translation-en_US
Ign:21 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main Translation-en
Err:17 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main amd64 Packages
404 Not Found
Ign:18 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main i386 Packages
Ign:19 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main all Packages
Ign:20 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main Translation-en_US
Ign:21 http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial/main Translation-en
Fetched 328 kB in 37s (8,777 B/s)
Reading package lists... Done
N: Ignoring file 'google-chrome.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
W: The repository 'http://ppa.launchpad.net/n-muench/vlc/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/n-muench/vlc/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
deepnorth@ubuntu:~$
执行对谷歌 Chrome 浏览器 (稳定版) 的安装。
deepnorth@ubuntu:~$ sudo apt-get install google-chrome-stable
Reading package lists... Done
Building dependency tree
Reading state information... Done
Recommended packages:
libu2f-udev
The following packages will be upgraded:
google-chrome-stable
1 upgraded, 0 newly installed, 0 to remove and 358 not upgraded.
Need to get 61.1 MB of archives.
After this operation, 13.0 MB of additional disk space will be used.
Get:1 http://dl.google.com/linux/chrome/deb stable/main amd64 google-chrome-stable amd64 77.0.3865.90-1 [61.1 MB]
Fetched 61.1 MB in 11s (5,332 kB/s)
N: Ignoring file 'google-chrome.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
(Reading database ... 187998 files and directories currently installed.)
Preparing to unpack .../google-chrome-stable_77.0.3865.90-1_amd64.deb ...
Unpacking google-chrome-stable (77.0.3865.90-1) over (74.0.3729.108-1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up google-chrome-stable (77.0.3865.90-1) ...
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/x-www-browser (x-www-browser) in auto mode
update-alternatives: using /usr/bin/google-chrome-stable to provide /usr/bin/gnome-www-browser (gnome-www-browser) in auto mode
N: Ignoring file 'google-chrome.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
deepnorth@ubuntu:~$
启动谷歌 Chrome 浏览器,在屏幕左侧的 Launcher 上,锁定到启动器。
deepnorth@ubuntu:~$ /usr/bin/google-chrome-stable
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[4435:4435:0920/182019.455567:ERROR:viz_main_impl.cc(167)] Exiting GPU process due to errors during initialization
[4401:4401:0920/182720.581384:ERROR:gcm_channel_status_request.cc(145)] GCM channel request failed.
deepnorth@ubuntu:~$