
나는 이것에 대해 잠시 동안 붙어있었습니다. 기본적으로 20.04.6을 실행하는 서버가 있고 이를 현재 LTS로 업그레이드하려고 노력해 왔습니다. 유일한 문제는 do-release-upgrade
적절한 소스 목록에서 공식 Ubuntu 소스를 제거한 다음 필수 패키지를 찾을 수 없기 때문에 업그레이드 진행을 거부한다는 것입니다.
/etc/apt/sources.list
내 파일 의 관련 내용은 다음과 같습니다 .
:~# cat /etc/apt/sources.list | grep -v ^$ | grep -v ^#
deb http://ftp.ubuntu.com/ubuntu focal main restricted
deb http://ftp.ubuntu.com/ubuntu focal-updates main restricted
deb http://ftp.ubuntu.com/ubuntu focal universe
deb http://ftp.ubuntu.com/ubuntu focal-updates universe
deb http://ftp.ubuntu.com/ubuntu focal multiverse
deb http://ftp.ubuntu.com/ubuntu focal-updates multiverse
deb http://ftp.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse
그리고 를 실행하면 apt update
다음과 같은 결과가 올바르게 표시됩니다.
:~# apt update
Hit:1 http://ppa.launchpad.net/ondrej/apache2/ubuntu focal InRelease
Hit:2 http://ftp.ubuntu.com/ubuntu focal InRelease
Get:3 http://ftp.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:4 http://ftp.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:6 https://esm.ubuntu.com/apps/ubuntu focal-apps-security InRelease
Hit:7 https://esm.ubuntu.com/apps/ubuntu focal-apps-updates InRelease
Hit:8 https://esm.ubuntu.com/infra/ubuntu focal-infra-security InRelease
Hit:9 https://esm.ubuntu.com/infra/ubuntu focal-infra-updates InRelease
Fetched 336 kB in 3s (104 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
/etc/apt/sources.list.d
폴더에 특히 저장소용으로 몇 가지 추가 파일이 있습니다 esm
.
이제 를 실행하면 do-release-upgrade
다음이 표시됩니다.
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit http://ftp.ubuntu.com/ubuntu focal InRelease
Hit http://ftp.ubuntu.com/ubuntu focal-updates InRelease
Get:1 http://ftp.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Hit http://ppa.launchpad.net/ondrej/apache2/ubuntu focal InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit https://esm.ubuntu.com/apps/ubuntu focal-apps-security InRelease
Hit https://esm.ubuntu.com/apps/ubuntu focal-apps-updates InRelease
Hit https://esm.ubuntu.com/infra/ubuntu focal-infra-security InRelease
Hit https://esm.ubuntu.com/infra/ubuntu focal-infra-updates InRelease
Fetched 222 kB in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Updating repository information
Third party sources disabled
Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the 'software-properties' tool
or your package manager.
To continue please press [ENTER]
그리고 [ENTER]를 누르면:
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:2 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security InRelease [7,553 B]
Get:3 https://esm.ubuntu.com/apps/ubuntu jammy-apps-updates InRelease [7,459 B]
Get:4 https://esm.ubuntu.com/infra/ubuntu jammy-infra-security InRelease [7,453 B]
Get:5 https://esm.ubuntu.com/infra/ubuntu jammy-infra-updates InRelease [7,452 B]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages [277 kB]
Get:7 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [631 kB]
Get:8 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main amd64 Packages [41.5 kB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [148 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [11.0 kB]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/restricted i386 Packages [29.7 kB]
Get:12 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [651 kB]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [104 kB]
Get:14 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [532 B]
Get:15 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [756 kB]
Get:16 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security/main i386 Packages [32.7 kB]
Get:17 http://security.ubuntu.com/ubuntu jammy-security/universe i386 Packages [544 kB]
Get:18 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [136 kB]
Get:19 https://esm.ubuntu.com/apps/ubuntu jammy-apps-updates/main amd64 Packages [479 B]
Get:20 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [15.9 kB]
Get:21 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [36.5 kB]
Get:22 http://security.ubuntu.com/ubuntu jammy-security/multiverse i386 Packages [1,032 B]
Get:23 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [7,060 B]
Get:24 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [260 B]
Get:25 https://esm.ubuntu.com/infra/ubuntu jammy-infra-security/main amd64 Packages [479 B]
Get:26 https://esm.ubuntu.com/infra/ubuntu jammy-infra-updates/main amd64 Packages [479 B]
Fetched 3,567 kB in 0s (0 B/s)
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Invalid package information
After updating your package information, the essential package
'ubuntu-minimal' could not be located. This may be because you have
no official mirrors listed in your software sources, or because of
excessive load on the mirror you are using. See /etc/apt/sources.list
for the current list of configured software sources.
In the case of an overloaded mirror, you may want to try the upgrade
again later.
따라서 우리는 두 번째 단계에서 do-release-upgrade
모든 주요 소스 목록을 핵무기로 삭제하고 동일한 파일의 목록을 유지하기로 결정했음을 분명히 알 수 있습니다. 이는 물론 업그레이드 실패로 이어지지만 제거하는 이유를 이해할 수 없습니다. 그것들을 제거하는 것을 방지하는 방법도 있습니다.ftp.ubuntu.com/ubuntu
security.ubuntu.com
여기서 긴 이야기의 짧은 질문은 제3자 소스를 제거한다고 말하면서 이 경우 주요 초점 저장소가 제3자라고 생각할 수도 있습니다. 그러면 그것이 제3자 소스인지 어떻게 결정합니까? 원인이 무엇인지, 제3자 소스라고 생각하지 않게 하려면 어떻게 해야 합니까?
답변1
그래서 제가 옳았다는 것이 밝혀졌습니다. do-release-upgrade
기본 우분투 저장소가 제3자라고 생각하고 있었습니다. 그러나 왜 그런지 모르겠습니다. 나는 결국 이 도구에 --allow-third-party
타사 저장소를 무시하지 않는 플래그가 있다는 것을 발견했습니다 .
이 플래그를 사용하여 문제 없이 서버를 업그레이드할 수 있었습니다. 그러나 이를 고려한 도구의 원래 문제는 타사 저장소로 남아 있지만 해결 가능합니다.