며칠 전에 PC에 Ubuntu를 설치했는데 모든 것이 잘 작동합니다.
다른 나라로 여행을 갔는데 아직 거기에 있습니다. 따라서 업데이트를 실행하거나 Ubuntu Software에서 무엇이든 설치하려고 할 때마다 인터넷이 잘 작동하고 PC를 사용하여 인터넷에 액세스 할 수 있지만 아무 것도 작동하지 않습니다 (지금이 줄을 작성하는 데 사용하고 있습니다).
현재 내가있는 국가의 서버 중 하나로 서버를 변경하려고했지만 작동하지 않았습니다. 그래서 우분투 메인 서버로 변경했지만 작동하지 않았습니다.
내 PC, 실행을 다시 시작 sudo apt autoclean
하고 sudo apt clean
, 아무것도 변경되지 않습니다.
업데이트 프로세스를 실행할 때마다 여전히 이러한 오류가 발생합니다.
sudo apt update
Ign:1 http://archive.canonical.com/ubuntu bionic InRelease
Err:2 http://archive.canonical.com/ubuntu bionic Release
404 Not Found [IP: 91.189.92.191 80]
Ign:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Ign:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Ign:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Ign:6 http://archive.ubuntu.com/ubuntu bionic-security InRelease
Err:7 http://archive.ubuntu.com/ubuntu bionic Release
404 Not Found [IP: 91.189.88.174 80]
Err:8 http://archive.ubuntu.com/ubuntu bionic-updates Release
404 Not Found [IP: 91.189.88.174 80]
Err:9 http://archive.ubuntu.com/ubuntu bionic-backports Release
404 Not Found [IP: 91.189.88.174 80]
Err:10 http://archive.ubuntu.com/ubuntu bionic-security Release
404 Not Found [IP: 91.189.88.174 80]
Reading package lists... Done
E: The repository 'http://archive.canonical.com/ubuntu bionic Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-backports Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
누구든지 이것을 고치는 방법을 알고 있습니까?
편집 :
문제는 .NET 에 올바른 링크 가 없다는 것이 아닙니다/etc/apt/sources.list
. 내 문제는 내가 업데이트를 실행하면 터미널에 표시되는 링크가 나는에있는 것과 유사하지 않은 것입니다 /etc/apt/sources.list
내가 업데이트 또한시 /etc/apt/sources.list
로 Raffa가 말했다, 나는 아직도 유사한 오류를 얻을.
sudo apt update
Ign:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Ign:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Ign:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Err:4 http://security.ubuntu.com/ubuntu bionic-security Release
404 Not Found [IP: 91.189.91.14 80]
Err:5 http://archive.ubuntu.com/ubuntu bionic Release
404 Not Found [IP: 91.189.88.31 80]
Err:6 http://archive.ubuntu.com/ubuntu bionic-updates Release
404 Not Found [IP: 91.189.88.31 80]
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu bionic-security Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Raffa가/etc/apt/sources.list
언급 한 링크가 포함되어 있지만
cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu bionic main universe multiverse restricted
deb http://security.ubuntu.com/ubuntu/ bionic-security main multiverse universe restricted
deb http://archive.ubuntu.com/ubuntu bionic-updates main multiverse universe restricted
어떤 이유로 APT는 Release
지정된 저장소 목록에서 파일을 찾을 수 없습니다 .
이 문제를 해결하려면 다음을 제안합니다.
인터넷 연결이 방화벽 뒤에 있는지, 어떤 식 으로든 제한되거나 프록시 뒤에 있는지 확인하고 그에 따라 시스템과 연결을 구성하거나 가능한 경우 다른 연결로 변경하십시오.
다음 명령을 실행하여 APT 프록시 구성 파일이 있는지 확인하십시오.
ls /etc/apt/apt.conf.d/*proxy*
명령이 결과를 반환하면 이러한 파일을 /etc/apt/apt.conf.d/
디렉터리 밖으로 이동 하거나 삭제합니다.
sudo nano /etc/apt/sources.list
파일 편집기가 열립니다. 그 안에있는 모든 줄을 삭제하고 파일 편집기에서 다음을 복사하여 붙여 넣습니다.
deb http://archive.ubuntu.com/ubuntu bionic main universe multiverse restricted
deb http://security.ubuntu.com/ubuntu/ bionic-security main multiverse universe restricted
deb http://archive.ubuntu.com/ubuntu bionic-updates main multiverse universe restricted
그런 다음 Ctrl+ X를 눌러 파일을 저장하고 닫은 Y다음Enter
파일을 올바르게 저장했는지 확인하려면 터미널에서 다음 명령을 실행하십시오.
cat /etc/apt/sources.list
출력은 정확히 다음과 같아야합니다.
deb http://archive.ubuntu.com/ubuntu bionic main universe multiverse restricted
deb http://security.ubuntu.com/ubuntu/ bionic-security main multiverse universe restricted
deb http://archive.ubuntu.com/ubuntu bionic-updates main multiverse universe restricted
Ubuntu 리포지토리에는 정의 된 형식이 있습니다. 예를 들어
deb http://archive.ubuntu.com/ubuntu bionic main
.설명:
deb
: 이러한 저장소에는 바이너리 또는 사전 컴파일 된 패키지가 포함되어 있습니다. 이러한 저장소는 대부분의 사용자에게 필요합니다.
http://archive.ubuntu.com/ubuntu
: URI (Uniform Resource Identifier),이 경우 인터넷상의 위치.
bionic
: Ubuntu 설치의 릴리스 이름입니다.
main
&restricted
... etc : 섹션 이름 또는 구성 요소입니다. 공백으로 구분 된 여러 섹션 이름이있을 수 있습니다.
그 후 터미널에서 다음 명령을 실행하여 저장소 목록을 업데이트하십시오.
sudo apt update
이제 패키지를 설치하고 시스템을 다시 업데이트 할 수 있습니다.
주의:
여전히 오류가 발생하면 먼저 /etc/apt/sources.list.d/
터미널에서 다음 명령을 실행하여 홈 디렉토리에 백업 하십시오.
mkdir ~/old_sources_list_d && sudo cp -r /etc/apt/sources.list.d/* ~/old_sources_list_d/
그 후 /etc/apt/sources.list.d/
터미널에서 다음 명령을 실행하여 기존의 모든 PPA 및 저장소 목록을 지우십시오 .
sudo rm /etc/apt/sources.list.d/*
그런 다음 터미널에서 다음 명령을 다시 실행하여 저장소 목록을 업데이트하십시오.
sudo apt update
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다