更新 Hirsute Hippo 时出错

更新 Hirsute Hippo 时出错

我想将我的系统从 Focal Fossa ( LTS ) 更新为 Hirsute Hippo ( Normal ),但我发现一些错误:

root@localhost:~# do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]
Get:2 Upgrade tool [1268 kB]
Fetched 1269 kB in 0s (0 B/s)
authenticate 'hirsute.tar.gz' against 'hirsute.tar.gz.gpg'
extracting 'hirsute.tar.gz'

Reading cache
lspci: /sys/bus/pci/devices: No such file or directory

Checking package manager


A fatal error occurred

Please report this as a bug and include the files
/var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in
your report. The upgrade has aborted.
Your original sources.list was saved in
/etc/apt/sources.list.distUpgrade.

Traceback (most recent call last):

File "/tmp/ubuntu-release-upgrader-z3e__fxr/hirsute", line 8, in
<module>
sys.exit(main())

File
"/tmp/ubuntu-release-upgrader-z3e__fxr/DistUpgrade/DistUpgradeMain.py",
line 236, in main
if app.run():

File
"/tmp/ubuntu-release-upgrader-z3e__fxr/DistUpgrade/DistUpgradeController.py",
line 2024, in run
return self.fullUpgrade()

File
"/tmp/ubuntu-release-upgrader-z3e__fxr/DistUpgrade/DistUpgradeController.py",
line 1794, in fullUpgrade
if not self.prepare():

File
"/tmp/ubuntu-release-upgrader-z3e__fxr/DistUpgrade/DistUpgradeController.py",
line 415, in prepare
self._sshMagic()

File
"/tmp/ubuntu-release-upgrader-z3e__fxr/DistUpgrade/DistUpgradeController.py",
line 274, in _sshMagic
is_child_of_process_name("sshd")):

File "/tmp/ubuntu-release-upgrader-z3e__fxr/DistUpgrade/utils.py",
line 108, in is_child_of_process_name
with open(stat_file) as stat_f:

FileNotFoundError: [Errno 2] No such file or directory:
'/proc/16380/stat'


root@localhost:~#

我如何从 Focal Fossa 更新到 Hirsute Hippo?(我获得指南来自https://www.linuxbabe.com/ubuntu/upgrade-ubuntu-20-04-20-10-to-21-04/amp

答案1

do-release-upgrade 需要“lspci”命令。该命令可以在“pciutils”apt 包中找到

尝试安装该包:

root@localhost:~# apt install pciutils

然后再次运行 do-release-upgrade 命令(它对我有用)

root@localhost:~# do-release-upgrade

相关内容