警告:root:文件‘precise.tar.gz.gpg’缺失

警告:root:文件‘precise.tar.gz.gpg’缺失

首先,在没有更多更新需要安装并且重新启动后,我尝试通过更新管理器 GUI 从 11.10 安装 12.04 升级,但所发生的只是说正在下载发布升级工具,然后就没有别的了。

所以我尝试从终端\命令行运行它

brown@brown-Ubuntu:~$ update-manager -d
brown@brown-Ubuntu:~$ do-release-upgrade
Checking for a new ubuntu release
Err Upgrade tool signature                                                     
  Connection failed                                                            
Get:1 Upgrade tool [5612 kB]                                                   
Fetched 5612 kB in 0s (0 B/s)                                                  
WARNING:root:file 'precise.tar.gz.gpg' missing
Failed to fetch
Fetching the upgrade failed. There may be a network problem. 

有人可以帮帮我吗?

答案1

所以我找到了一种解决方法:

  • 打开 /var/lib/update-manager/meta-release,找到字符串:
Dist: precise
Name: Precise Pangolin
Version: 12.04 LTS
Date: Thu, 26 Apr 2012 12:04:00 UTC
Supported: 1
Description: This is the 12.04 LTS release
Release-File: http://archive.ubuntu.com/ubuntu/dists/precise/Release
ReleaseNotes: http://archive.ubuntu.com/ubuntu/dists/precise/main/dist-upgrader-all/current/ReleaseAnnouncement
ReleaseNotesHtml: http://archive.ubuntu.com/ubuntu/dists/precise/main/dist-upgrader-all/current/ReleaseAnnouncement.html
UpgradeTool: http://archive.ubuntu.com/ubuntu/dists/precise/main/dist-upgrader-all/current/precise.tar.gz
UpgradeToolSignature: http://archive.ubuntu.com/ubuntu/dists/precise/main/dist-upgrader-all/current/precise.tar.gz.gpg
  • 下载 UpgradeTool 和 UpgradeToolSignature 文件
  • 将它们上传到任何其他网络服务器并修改相应的字符串(我猜即使 file:/// 也可以)
  • sudo do-release-升级

对我有用,希望对你也有帮助。祝你好运!

答案2

  1. 修改文件“/var/lib/update-manager/meta-release”,将“archive.ubuntu.com”替换为“old-releases.ubuntu.com”

  2. 运行“do-release-upgrade”

  3. 当它暂停在“第三方源已禁用”时,打开另一个 ssh 会话来修改“/etc/apt/sources.list”,并将“archive.ubuntu.com”替换为“old-releases.ubuntu.com”

  4. 继续升级

相关内容