Google 크롬 저장소(Debian Stable)

Google 크롬 저장소(Debian Stable)

Debian stable에 google-chrome을 설치해야 합니다. Google 저장소를 추가하고 항상 최신 버전의 Chrome을 설치하는 방법이 있나요?

답변1

구글에서Linux 저장소 페이지:

Google 키를 추가하세요.

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

그런 다음 다음에서 패키지를 설치하십시오.크롬 웹사이트, "/etc/apt/sources.list.d/google-chrome.list" 파일에 다음 내용을 추가해야 합니다.

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/chrome/deb/ stable main

예를 들어 Google에서 패키지를 설치합니다.~해야 한다source.list를 자동으로 구성하면 됩니다.

답변2

방금 새로운 오류가 나타났습니다. etc/apt/sources.list.d/google-chrome.list 파일이 자동으로 생성되어 "[arch=amd64]"를 지우기 위해 이전 버전을 중단하므로 apt-get에서 오류가 발생합니다. 바라보다 https://www.reddit.com/r/chrome/comments/48oje6/linux_how_to_fix_failed_to_fetch/ 따라서 원래 질문에 대한 대답은 현재 완전히 효과적인 방법은 없지만 Google이 버그를 수정하기를 바랍니다.

답변3

@tux-drummer, 답변하는 데 시간이 너무 오래 걸려서 죄송합니다. 더 자세한 팁을 확인해보세요:

$ sudo echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> \
/etc/apt/sources.list.d/google.list

$ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub >> google.pub
$ sudo apt-key add google.pub
OK
$ sudo apt-get update
...
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 http://dl.google.com/linux/chrome/deb stable Release [943 B]
...
$ apt-cache search google-chrome
google-chrome-beta - The web browser from Google
google-chrome-stable - The web browser from Google
google-chrome-unstable - The web browser from Google

$ sudo apt-get install --no-install-recommends google-chrome-stable
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  google-chrome-stable
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 59.4 MB of archives.
Unpacking google-chrome-stable (76.0.3809.87-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for menu (2.1.47+b1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up google-chrome-stable (76.0.3809.87-1) ...
...

@Inline, 다음 코드를 사용해 보세요:

$ curl -I https://dl.google.com/linux/chrome/deb/dists/stable/Release \
2>/dev/null | grep -Ee "(^content-length|^HTTP)"

HTTP/2 200
content-length: 943

답변4

또한 수정사항이 사라지는 문제도 있습니다 [arch=amd64]. 파일 주석에는 "자동 구성"이라고 되어 있지만 자동 구성이 무엇인지 모르겠습니다. 그래서 나는 chattr +i그것을 입었다 google-chrome.list.

관련 정보