在将 Ubuntu 版本从 20.04 升级到 22.04 时,我收到以下错误。我尝试创建一个 Ubuntu 信息文件,但它没有帮助我。请帮助解决此问题
File "/tmp/ubuntu-release-upgrader-lw9k2sm2/jammy", line 8, in <module>
sys.exit(main()) File "/tmp/ubuntu-release-upgrader-lw9k2sm2/DistUpgrade/DistUpgradeMain.py", line 241, in main
if app.run(): File "/tmp/ubuntu-release-upgrader-lw9k2sm2/DistUpgrade/DistUpgradeController.py", line 2042, in run
return self.fullUpgrade() File "/tmp/ubuntu-release-upgrader-lw9k2sm2/DistUpgrade/DistUpgradeController.py", line 1873, in fullUpgrade
if not self.doPostInitialUpdate(): File "/tmp/ubuntu-release-upgrader-lw9k2sm2/DistUpgrade/DistUpgradeController.py", line 906, in doPostInitialUpdate
self.quirks.run("PostInitialUpdate") File "/tmp/ubuntu-release-upgrader-lw9k2sm2/DistUpgrade/DistUpgradeQuirks.py", line 99, in run
func() File "/tmp/ubuntu-release-upgrader-lw9k2sm2/DistUpgrade/DistUpgradeQuirks.py", line 122, in jammyPostInitialUpdate
self._test_and_fail_on_pam_tally() File "/tmp/ubuntu-release-upgrader-lw9k2sm2/DistUpgrade/DistUpgradeQuirks.py", line 394, in _test_and_fail_on_pam_tally
with open(os.path.join('/etc/pam.d', f)) as f: FileNotFoundError: [Errno 2] No such file or directory: '/etc/pam.d/xrdp-sesman.dpkg-backup'
=== Command terminated with exit status 1 (Mon Dec 11 14:45:48 2023) ===
答案1
我使用以下命令从服务器中删除了 xrdp 备份文件:rm -Rf /etc/pam.d/xrdp-sesman.dpkg-backup。然后,我再次运行 do-release-upgrade 命令,现在我没有像以前一样收到错误。我希望在升级服务器后,我可以使用以下命令 sudo apt-get install --reinstall xrdp 重新安装 xrdp 包,如果我想