
저는 데스크탑에 Ubuntu 20.10 groovy를 사용하고 있습니다. 불행하게도 수명이 다 되었습니다.
에 따르면EOL업그레이드 가이드source.list는 다음과 같습니다.
deb http://old-releases.ubuntu.com/ubuntu/ groovy main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ groovy-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ groovy-security main restricted universe multiverse
다음을 실행한 후 이 로그를 받았습니다 apt update
.
~ sudo apt-get update
[sudo] password for farhad:
Hit:1 http://ppa.launchpad.net/atareao/atareao/ubuntu groovy InRelease
Hit:2 ***
Ign:3 http://old-releases.ubuntu.com/ubuntu groovy InRelease
Hit:4 ***
Ign:5 http://old-releases.ubuntu.com/ubuntu groovy-updates InRelease
Hit:6 http://ppa.launchpad.net/atareao/atareao/ubuntu focal InRelease
Ign:7 http://old-releases.ubuntu.com/ubuntu groovy-security InRelease
Hit:8 ***
Err:9 http://old-releases.ubuntu.com/ubuntu groovy Release
404 Not Found [IP: 91.189.91.124 80]
Hit:10 http://ppa.launchpad.net/audio-recorder/ppa/ubuntu groovy InRelease
Err:11 http://old-releases.ubuntu.com/ubuntu groovy-updates Release
404 Not Found [IP: 91.189.91.124 80]
Err:12 http://old-releases.ubuntu.com/ubuntu groovy-security Release
404 Not Found [IP: 91.189.91.124 80]
Hit:13 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu groovy InRelease
Hit:14 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu focal InRelease
Hit:15 http://ppa.launchpad.net/kubuntu-ppa/beta/ubuntu groovy InRelease
Hit:16 http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu groovy InRelease
Hit:17 http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu focal InRelease
Reading package lists... Done '
E: The repository 'http://old-releases.ubuntu.com/ubuntu groovy 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://old-releases.ubuntu.com/ubuntu groovy-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://old-releases.ubuntu.com/ubuntu groovy-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.
에 뭔가 문제가 있는 것 같습니다 http://old-releases.ubuntu.com
.
지금 Ubuntu 20.10을 업그레이드하려면 어떻게 해야 합니까?
추신: ***
저장소는 타사이므로 여기서는 잘렸습니다.
답변1
이는 source.list를 다시 설치하거나 수정하지 않고도 수행할 수 있습니다. 20.10 -> 21.04 -> 21.10으로 업그레이드가 가능해졌습니다.
sudo do-release-upgrade
이렇게 실행이 실패하면
업그레이드하기 전에 해당 릴리스에 사용 가능한 모든 업데이트를 설치하십시오.
sudo apt upgrade
그러면 성공하기 전에 apt의 캐시(깨진 링크)를 제거해야 합니다 .
sudo rm -rf /var/lib/apt/lists/*
sudo apt update
sudo apt upgrade
그럼에도 불구하고 sudo do-release-upgrade
더 이상 21.10에 대한 직접 경로가 없기 때문에 명령은 여전히 실패합니다.
이 도구에서는 'groovy'에서 'impish'로의 업그레이드가 지원되지 않습니다.
그래서 당신은 사용할 수 있습니다이 해결 방법먼저 21.04로 업그레이드하세요.
wget http://archive.ubuntu.com/ubuntu/dists/hirsute-updates/main/dist-upgrader-all/current/hirsute.tar.gz
mkdir upgrader
tar -xaf hirsute.tar.gz -C upgrader
cd upgrader
sudo ./hirsute
21.04로 재부팅하면 apt update
정상적으로 작동하지만 이 문제에 앞서기 위해 21.10으로 업그레이드하는 것이 좋습니다.
sudo apt update && sudo apt upgrade
sudo do-release-upgrade
이는 4월에 22.04가 출시되면 LTS를 고수해야 하는 좋은 이유입니다.
답변2
어떤 이유로http://old-releases.ubuntu.com/ubuntu/dists/나열하지 않습니다그루비(20.10), 실제로는 EOL이지만2021년 7월 22일부터.
old-releases
그래서 다시 로 archive
변경 해야합니다.소스.목록:
sudo sed -i "s/old-releases/archive/g" /etc/apt/sources.list /etc/apt/sources.list.d/*.list
sudo apt-get update
sudo apt-get dist-upgrade
EOL 버전을 실행하는 것은 위험하고 비생산적이므로 20.10(EOL)을 21.04(실제,털이 많은) 머신을 재부팅하고 다음과 같은 표준 절차를 실행하여
sudo do-release-upgrade
또는
update-manager -c
답변3
2023년 업데이트: 이제 20.10이 EOL이므로 sources.list
. 다행히도 이것은아주 쉽게.
이 3줄을 추가하세요/etc/apt/sources.list
선호하는 터미널 편집기(예 sudo nano
: ) 를 사용하여 다음을 수행합니다 .
deb http://old-releases.ubuntu.com/ubuntu/ groovy main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ groovy-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ groovy-security main restricted universe multiverse
지금,다음 명령을 실행하세요업데이트 프로세스를 계속할 수 있습니다. 참고 - 같은 페이지에 있는 hackengineer의 게시물에서 이 단계를 복사하는 중입니다. 그 방법이 제게는 효과적이었기 때문입니다.
sudo rm -rf /var/lib/apt/lists/*
sudo apt update
sudo apt upgrade
wget http://old-releases.ubuntu.com/ubuntu/dists/hirsute-updates/main/dist-upgrader-all/current/hirsute.tar.gz
mkdir upgrader
tar -xaf hirsute.tar.gz -C upgrader
cd upgrader
sudo ./hirsute
재부팅
sudo do-release-upgrade
답변4
소스만 추가해주세요https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/(또는 이와 유사한 것)을 /etc/apt/sources.list의 모든 카테고리에 포함하고 원본도 그대로 두었습니다. 전체 업데이트 및 업그레이드를 수행합니다. 다음 단계에서는 일반적인 업그레이드 절차를 사용합니다.
오늘 RPI로 해봤는데 모든 것이 완벽하게 작동합니다.