Tôi đang cố gắng nâng cấp máy chủ Ubuntu từ 16.04 lên 18.04 bằng cách sử dụng do-release-upgradenhưng nó bị lỗi ngay từ đầu:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-074vyz42/bionic", line 8, in
<module>
sys.exit(main())
File
"/tmp/ubuntu-release-upgrader-074vyz42/DistUpgrade/DistUpgradeMain.py",
line 238, in main
if app.run():
File
"/tmp/ubuntu-release-upgrader-074vyz42/DistUpgrade/DistUpgradeController.py",
line 2053, in run
return self.fullUpgrade()
File
"/tmp/ubuntu-release-upgrader-074vyz42/DistUpgrade/DistUpgradeController.py",
line 1936, in fullUpgrade
if not self.cache.anyVersionDownloadable(self.cache[pkg]):
File "/usr/lib/python3/dist-packages/apt/cache.py", line 233, in
__getitem__
raise KeyError('The cache has no package named %r' % key)
KeyError: "The cache has no package named 'ubuntu-minimal'"
Có vẻ như lỗi này, nhưng báo cáo lỗi là từ một vài tháng trước và không có bất kỳ sự chú ý nào. https://bugs.launchpad.net/ubfox/+source/ubfox-release-upgrader/+orms/1795207
Ubuntu tối thiểu không phải là không kết tinh cũng không có sẵn:
root@tooticky:~# apt install ubuntu-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ubuntu-minimal