우분투 17.04를 설치했는데 18.04로 업그레이드하고 싶습니다. 내가 이것을 하려고 할 때:
sudo do-release-upgrade
이라는 메시지를 받았습니다 An upgrade from 'zesty' to 'bionic' is not supported with this tool
. 이 작업을 계속하려면 입력이 필요합니다.
sudo do-release-upgrade
Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http://www.ubuntu.com/releaseendoflife
Get:1 Upgrade tool signature [819 B]
Get:2 Upgrade tool [1,257 kB]
Fetched 1,258 kB in 0s (0 B/s)
authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg'
extracting 'bionic.tar.gz'
Reading cache
Checking package manager
Can not upgrade
An upgrade from 'zesty' to 'bionic' is not supported with this tool.
답변1
이것은 어디에도 정확하게 설명되어 있지 않습니다. 수행해야 할 작업(또는 제가 수행한 방법)은 다음과 같습니다.
17.04에서 17.10으로 업그레이드: 우분투 17.04에서 17.10으로 업그레이드할 수 없습니다
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #to be safe
sudo sed -i -re 's/old-releases.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list
sudo sed -i -re 's/zesty/artful/g' /etc/apt/sources.list
sudo apt update
sudo apt dist-upgrade
sudo apt autoremove
(링크에는 apt-get 대신 aptitude를 사용하라고 나와 있습니다.)
17.10에서 18.04로 업그레이드:생산 중단 및 업그레이드
/etc/apt/sources.list의 모든 내용을 다음으로 바꾸십시오.
## EOL upgrade sources.list
# Required
deb http://old-releases.ubuntu.com/ubuntu/ artful main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ artful-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ artful-security main restricted universe multiverse
# Optional
#deb http://old-releases.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse
그런 다음 업그레이드를 실행합니다.
apt-get update
apt-get dist-upgrade
do-release-upgrade
요청에 따라 지시된 대로 수행한 다음 완료될 때까지 기다리면 완료됩니다.
편집하다
~에 따르면비만디스, sudo sed -i -re 's/old-releases.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list
더 이상 필요 없어요. 비만디스관련 포스팅을 올렸습니다. 관련 부품:
# Upgrade from 17.04 to 17.10
# backup current sources file (just in case)
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
# change version codename from 'zesty' to 'artful'
sudo sed -i -re 's/zesty/artful/g' /etc/apt/sources.list
# 17.10 has reached it's end of life
# so we fetch from 'old-releases.ubuntu.com'
sudo sed -i -re 's/archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
sudo apt update
sudo apt dist-upgrade
sudo apt autoremove
# Upgrade from 17.10 to 18.04 LTS
# change version codename from 'artful' to 'bionic'
sudo sed -i -re 's/artful/bionic/g' /etc/apt/sources.list
# 18.04 has NOT reached it's end of life yet (due in 2028)
# so we fetch from 'archive.ubuntu.com'
sudo sed -i -re 's/old-releases.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list
sudo apt update
sudo apt dist-upgrade
sudo apt autoremove