首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法更新到20.10

无法更新到20.10
EN

Unix & Linux用户
提问于 2020-11-26 22:52:31
回答 1查看 494关注 0票数 0

sudo do-release-upgrade的结果:

代码语言:javascript
复制
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

如果"/tmp/ubuntu-release-upgrader-1p89v3_w/DistUpgrade/DistUpgradeController.py",():app.run第2089行,在运行返回self.fullUpgrade()文件"/tmp/ubuntu-release-upgrader-1p89v3_w/DistUpgrade/DistUpgradeController.py",第1932行,在fullUpgrade如果不是self.updateSourcesList():文件"/tmp/ubuntu-release-upgrader-1p89v3_w/DistUpgrade/DistUpgradeController.py",第801行,在init "/usr/lib/python3/dist-packages/aptsources/sourceslist.py",= SourcesList(matcherPath=self.datadir)文件"/usr/lib/python3/dist-packages/aptsources/distinfo.py",第273行中,在init self.matcher = SourceEntryMatcher(matcherPath)文件"/usr/lib/python3/dist-packages/aptsources/sourceslist.py",第470行中,在init dist = DistInfo(base_dir=matcherPath)“/usr/lib/python3/dist-packages/aptsources/distinfo.py”,第184行中,在init with "/usr/lib/python3/dist-packages/problem_report.py",(Dist_fname) as dist_file: FileNotFoundError:Errno 2 No这类文件或目录中: sys.excepthook: Traceback (最近一次调用)中的文件错误:文件dist_fname第477行,add_to_existing self.write(f)文件"/usr/lib/python3/dist-packages/problem_report.py",第430行,在写块= f.read(1048576) File "/usr/lib/python3.8/codecs.py“中,第322行,在解码(结果,消费)=self._buffer_decode(数据,self.errors,最终) UnicodeDecodeError:'utf- 8‘编解码器不能解码位置1的字节0x8b :无效的起始字节原始异常是:回溯(最近一次调用):文件第8行,在"/tmp/ubuntu-release-upgrader-1p89v3_w/DistUpgrade/DistUpgradeMain.py",( main ())sys.exit第238行中,在main if app.run():File app.run第2089行中,在run #en2# self.fullUpgrade() File "/tmp/ubuntu-release-upgrader-1p89v3_w/DistUpgrade/DistUpgradeController.py",第1932行中,在“如果不是"/tmp/ubuntu-release-upgrader-1p89v3_w/DistUpgrade/DistUpgradeController.py",():File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py",801”中,在updateSourcesList self.sources = SourcesList(matcherPath=self.datadir) File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py",第273行中,在init self.matcher = SourceEntryMatcher(matcherPath)文件“/usr/lib/python3/dist-packages/aptsources/sourceslist.py”,第470行中,在init = DistInfo(base_dir=matcherPath)文件第184行中,在init

代码语言:javascript
复制
    with open(dist_fname) as dist_file: FileNotFoundError: [Errno 2] No such file or directory:
> '/tmp/ubuntu-release-upgrader-1p89v3_w/Pop.info'

编辑:

代码语言:javascript
复制
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
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2021-03-03 21:06:02

在试图升级到Pop时,我遇到了同样的“丢失Pop.info”错误!OS 20.10。我能够通过以下程序来解决这个问题:

代码语言:javascript
复制
# 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
票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/621718

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档