Trusty 到 Xenial 的更新已通过软件更新程序正式提供。更新所有软件包后,通过软件更新程序升级可获得:
Fetching the upgrade failed. There may be a network problem.
执行后sudo do-release-upgrade
可得到:
Checking for a new Ubuntu release
Err Upgrade tool signature
403 Sorry, not allowed to fetch that type of file: xenial.tar.gz.gpg
Err Upgrade tool
403 Sorry, not allowed to fetch that type of file: xenial.tar.gz
Fetched 0 B in 0s (0 B/s)
WARNING:root:file 'xenial.tar.gz.gpg' missing
Failed to fetch
Fetching the upgrade failed. There may be a network problem.
答案1
尝试禁用apt-cacher服务并注释您可能已配置的任何内容/etc/apt/apt.conf.d/90-apt-proxy.conf
,然后再次运行 do-release-upgrade(ofc,首先更新并再次升级)。
答案2
具体来说,如果不使用,您可能需要/remove/apt-cacher。
$ dpkg --list | grep apt-cacher
$ sudo apt-get remove apt-cacher
然后再次执行 do-release-upgrade。