Ubuntu 20.04에 R 4.X를 설치할 수 없습니다.

Ubuntu 20.04에 R 4.X를 설치할 수 없습니다.

Ubuntu 20.04(16.04에서 새로 업데이트됨)에서 R을 업데이트하려고 합니다.

그래서 다음과 같이 이전 버전의 R을 삭제합니다.

sudo apt-get purge r-base* r-recommended r-cran-*    
sudo apt autoremove

그런 다음 좋은 저장소를 추가하여 /etc/apt/sources.list를 업데이트합니다.

deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/

그리고 올바른 키는 다음과 같습니다.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

하지만 source.list를 업데이트하는 동안 오류가 발생합니다.

sudo apt-get update
Ign :10 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ InRelease
Err :11 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ Release
  Could not wait for server fd - select (11: Ressource temporairement non disponible) [IP : xxx.xxx.xxx.xxx xxxx]
Lecture des listes de paquets... Fait
W: Le fichier configuré « partener/source/Sources » ne sera pas pris en compte car le dépôt « http://archive.canonical.com/ubuntu focal InRelease » ne dispose pas de la source « partener » (erreur de saisie dans sources.list ?)
E: Le dépôt https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ Release n'a pas de fichier Release.

직장에서 나는 대리인 뒤에 있습니다. 따라서 프록시 매개변수는 시스템 매개변수의 네트워크 매개변수뿐만 아니라 apt에도 지정됩니다. (/etc/apt/apt.conf.d/의 80proxy 파일)

이 구성을 사용하면 R 3.6에만 액세스할 수 있습니다.

apt-cache policy r-base r-base-core r-base-dev r-recommended
r-base:
  Installé : (aucun)
  Candidat : 3.6.3-2
 Table de version :
     3.6.3-2 500
        500 http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://fr.archive.ubuntu.com/ubuntu focal/universe i386 Packages
r-base-core:
  Installé : (aucun)
  Candidat : 3.6.3-2
 Table de version :
     3.6.3-2 500
        500 http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
r-base-dev:
  Installé : (aucun)
  Candidat : 3.6.3-2
 Table de version :
     3.6.3-2 500
        500 http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://fr.archive.ubuntu.com/ubuntu focal/universe i386 Packages
r-recommended:
  Installé : (aucun)
  Candidat : 3.6.3-2
 Table de version :
     3.6.3-2 500
        500 http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://fr.archive.ubuntu.com/ubuntu focal/universe i386 Packages

Ubuntu 20.04도 업데이트되고 동일한 source.list가 포함된 노트북이 있는데 홈 네트워크에서 오류가 발생하지 않습니다.

오류가 프록시 매개변수로 인해 발생한 것으로 의심되지만 확실하지 않습니다. R의 마지막 버전을 성공적으로 구성하고 설치하는 데 도움을 주실 수 있나요?

도와 주셔서 정말로 고맙습니다.

내 소스 목록:

 more /etc/apt/sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ focal main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://fr.archive.ubuntu.com/ubuntu/ focal universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ focal universe
deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://fr.archive.ubuntu.com/ubuntu/ focal multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ focal multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://fr.archive.ubuntu.com/ubuntu/ focal-backports main restricted univers
e multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-backports main restricted uni
verse multiverse

deb http://security.ubuntu.com/ubuntu focal-security main restricted
deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse
deb-src http://security.ubuntu.com/ubuntu focal-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner

## The Comprehensive R Archive Network

deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/
# deb-src https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/

답변1

IT 서비스에 문의한 후 프록시 매개변수에 대한 다른 주소를 테스트해 달라고 요청했지만 새로운 오류가 발생했습니다.

sudo apt-get update
Ign :1 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ InRelease
Atteint :2 http://fr.archive.ubuntu.com/ubuntu focal InRelease                                                                            
Atteint :3 http://fr.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                                   
Err :4 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ Release                                                                                
  Could not handshake: An unexpected TLS packet was received. [IP : 10.3.0.11 3128]
Atteint :5 http://fr.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                                 
Atteint :6 http://repository.spotify.com stable InRelease                                                                                 
Atteint :7 http://ppa.launchpad.net/c2d4u.team/c2d4u4.0+/ubuntu focal InRelease                         
Réception de :8 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Lecture des listes de paquets... Fait
E: Le dépôt https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ Release n'a pas de fichier Release.
N: Les mises à jour depuis un tel dépôt ne peuvent s'effectuer de manière sécurisée, et sont donc désactivées par défaut.
N: Voir les pages de manuel d'apt-secure(8) pour la création des dépôts et les détails de configuration d'un utilisateur.

이 새로운 오류로 인해 이전 게시물을 찾았습니다.

적절한 업데이트: 핸드셰이크할 수 없습니다. 예상치 못한 TLS 패킷이 수신되었습니다.

그래서 https_proxy 주소에서 "s"를 삭제하려고 합니다.... 작동합니다!!!

또한 apt-get update 명령에서 고려되는 유일한 프록시 매개변수는 /etc/apt/apt.conf 파일에 있습니다.

more apt.conf
Acquire::http::proxy "http://myaddress.XXX.fr:myport/";
Acquire::https::proxy "http://myaddress.XXX.fr:myport/";
Acquire::ftp::proxy "ftp://myaddress.XXX.fr:myport/";

이 솔루션은 초기 프록시 매개변수에서도 작동합니다.

관련 정보