결과 sudo do-release-upgrade
:
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]
Get:2 Upgrade tool [1.338 kB]
Fetched 1.339 kB in 0s (0 B/s)
authenticate 'groovy.tar.gz' against 'groovy.tar.gz.gpg'
extracting 'groovy.tar.gz'
Reading cache
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit http://dk.archive.ubuntu.com/ubuntu focal InRelease
Hit http://dk.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit http://security.ubuntu.com/ubuntu focal-security InRelease
Hit http://archive.ubuntu.com/ubuntu focal InRelease
Hit http://ppa.launchpad.net/system76/pop/ubuntu focal InRelease
Hit http://dk.archive.ubuntu.com/ubuntu focal-backports InRelease
Fetched 0 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Checking for installed snaps
Calculating snap size requirements
Updating repository information
Traceback (most recent call last): File
"/tmp/ubuntu-release-upgrader-1p89v3_w/groovy", line 8, in <module>
sys.exit(main()) File "/tmp/ubuntu-release-upgrader-1p89v3_w/DistUpgrade/DistUpgradeMain.py",
line 238, in main
app.run(): 파일 "/tmp/ubuntu-release-upgrader-1p89v3_w/DistUpgrade/DistUpgradeController.py", 2089행이 실행 파일 "/tmp/ubuntu-release-upgrader -1p89v3_w에서 self.fullUpgrade()를 반환하는 경우 /DistUpgrade/DistUpgradeController.py", 1932행, fullUpgrade에서 self.updateSourcesList()가 아닌 경우: 파일 "/tmp/ubuntu-release-upgrader-1p89v3_w/DistUpgrade/DistUpgradeController.py", 801행, updateSourcesList self.sources = SourcesList(matcherPath=self.datadir) 파일 "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", 273행, in내부에 self.matcher = SourceEntryMatcher(matcherPath) 파일 "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", 라인 470내부에 dist = DistInfo(base_dir=matcherPath) 파일 "/usr/lib/python3/dist-packages/aptsources/distinfo.py", 184행, in 내부에 dist_file로 open(dist_fname) 사용: FileNotFoundError: [Errno 2] 해당 파일 또는 디렉터리 없음: '/tmp/ubuntu-release-upgrader-1p89v3_w/Pop.info' sys.Exceptionhook의 오류: 추적(마지막 호출): 파일 " /usr/lib/python3/dist-packages/problem_report.py", 477행, add_to_existing self.write(f) 파일 "/usr/lib/python3/dist-packages/problem_report.py", 430행, 430행 쓰기 블록 = f.read(1048576) 파일 "/usr/lib/python3.8/codecs.py", 322행, 디코드(결과, 소비) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' 코덱은 위치 1의 바이트 0x8b를 디코딩할 수 없습니다: 잘못된 시작 바이트
원래 예외는 다음과 같습니다. Traceback(마지막 호출 마지막): File "/tmp/ubuntu-release-upgrader-1p89v3_w/groovy", line 8, in sys.exit(main()) File "/tmp/ubuntu-release -upgrader " -1p89v3_w/DistUpgrade/DistUpgradeMain.py", line 238, in main if app.run(): File "/tmp/ubuntu-release-upgrader-1p89v3_w/DistUpgrade/DistUpgradeController.py", line 2089, 실행 중 self 반환 . fullUpgrade() 파일 "/tmp/ubuntu-release-upgrader-1p89v3_w/DistUpgrade/DistUpgradeController.py", 1932행, self.updateSourcesList()가 아닌 경우 fullUpgrade: 파일 "/tmp /ubuntu-release-upgrader-1p89v3_w/ DistUpgrade /DistUpgradeController.py", 801행, updateSourcesList self.sources = SourcesList(matcherPath=self.datadir) 파일 "/usr/lib/python3/dist-packages/aptsources/sourceslist .py", 273행, 에서내부에 self.matcher = SourceEntryMatcher(matcherPath) 파일 "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", 라인 470내부에 dist = DistInfo(base_dir=matcherPath) 파일 "/usr/lib/python3/dist-packages/aptsources/distinfo.py", 184행, in 내부에
with open(dist_fname) as dist_file: FileNotFoundError: [Errno 2] No such file or directory:
> '/tmp/ubuntu-release-upgrader-1p89v3_w/Pop.info'
편집하다:
sudo apt install ppa-purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
aptitude
The following NEW packages will be installed:
ppa-purge
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 6.312 B of archives.
After this operation, 24,6 kB of additional disk space will be used.
Get:1 http://dk.archive.ubuntu.com/ubuntu focal/universe amd64 ppa-purge all 0.2.8+bzr63 [6.312 B]
Fetched 6.312 B in 0s (14,3 kB/s)
Selecting previously unselected package ppa-purge.
(Reading database ... 327513 files and directories currently installed.)
Preparing to unpack .../ppa-purge_0.2.8+bzr63_all.deb ...
Unpacking ppa-purge (0.2.8+bzr63) ...
Setting up ppa-purge (0.2.8+bzr63) ...
Processing triggers for man-db (2.9.1-1) ...
x@x:~$ sudo ppa-purge ppa:system76/pop
Updating packages lists
PPA to be removed: system76 pop
Warning: Could not find package list for PPA: system76 pop
답변1
Pop으로 업그레이드하려고 할 때 동일한 "Pop.info 누락" 오류가 발생했습니다! 운영체제 20.10. 다음 프로세스를 통해 이 문제를 해결할 수 있었습니다.
# Begin upgrade
sudo do-release-upgrade
# Pause the process with Ctrl-Z
^Z
# Create an empty Pop.info file in the newest /tmp/ubuntu-release-upgrader-* directory
sudo touch /tmp/ubuntu-release-upgrade-*/Pop.info
# Resume the upgrade process
fg
답변2
@cwc의 답변 외에도
# Begin upgrade
sudo do-release-upgrade
# Pause the process with Ctrl-Z
^Z
# Find the tmp folder that newly created. And store LAST_CREATED_FOLDER variable.
LAST_CREATED_FOLDER=$(sudo ls -t /tmp/ | grep ubuntu-release-upgrader | head -1)
# Create an empty Pop.info file in the newest /tmp/ubuntu-release-upgrader-* directory
sudo touch /tmp/$LAST_CREATED_FOLDER/Pop.info
# Resume the upgrade process
fg