cly*_*cly 5 do-release-upgrade
当我的键盘出现问题时,我只是在查看我和维护者版本更改的配置差异,因为发生了以下错误:
Configuration file '/etc/bind/named.conf.options'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** named.conf.options (Y/I/N/O/D/Z) [default=N] ? -- 0:bionic -- time-stamp -- Jan/09/20 11:52:04 --
-- 0:bionic -- time-stamp -- Jan/09/20 11:56:29 --
D
-
(END)
=== Command terminated with signal 2 (Thu Jan 9 11:57:04 2020) ===
q
Reading cache
q
q^C
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apt/cache.py", line 285, in __getitem__
return self._weakref[key]
File "/usr/lib/python3.6/weakref.py", line 137, in __getitem__
o = self.data[key]()
KeyError: 'libcamitk-dev'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-k1z7kgfn/bionic", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-k1z7kgfn/DistUpgrade/DistUpgradeMain.py", line 235, in main
save_system_state(logdir)
File "/tmp/ubuntu-release-upgrader-k1z7kgfn/DistUpgrade/DistUpgradeMain.py", line 128, in save_system_state
scrub_sources=True)
File "/tmp/ubuntu-release-upgrader-k1z7kgfn/DistUpgrade/apt_clone.py", line 149, in save_state
self._write_state_installed_pkgs(sourcedir, tar)
File "/tmp/ubuntu-release-upgrader-k1z7kgfn/DistUpgrade/apt_clone.py", line 190, in _write_state_installed_pkgs
for pkg in cache:
File "/usr/lib/python3/dist-packages/apt/cache.py", line 333, in __iter__
yield self[pkgname]
File "/usr/lib/python3/dist-packages/apt/cache.py", line 288, in __getitem__
rawpkg = self._cache[key]
KeyboardInterrupt
*** Send problem report to the developers?
After the problem report has been sent, please fill out the form in the
automatically opened web browser.
What would you like to do? Your options are:
S: Send report (98.9 KB)
V: View report
K: Keep report file for sending later or copying to somewhere else
I: Cancel and ignore future crashes of this program version
C: Cancel
Please choose (S/V/K/I/C): C
=== Command detached from window (Thu Jan 9 11:57:35 2020) ===
Run Code Online (Sandbox Code Playgroud)
我试图重新连接到屏幕,但sudo screen -r说There is no screen to be resumed.,并sudo screen -ls说No Sockets found in /run/screen/S-root.。
我正在寻找并找到有关恢复升级的答案,但它们要么适用于仅屏幕分离的情况,要么适用于 dpkg 退出的情况。但我看到 dpkg 仍在进程列表中运行,因此以某种方式继续可能是更明智的做法。有任何想法吗?
cly*_*cly 11
我在这里发现了同样的情况: https: //bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1343737,同时试图找到解决方案以某种方式窃取正在运行的 dpkg\'s pty。
\n我能够dpkg通过继续该过程reptyer!
我reptyer手动下载了 deb 文件。它可以在这里找到https://ubuntu.pkgs.org/18.04/ubuntu-universe-amd64/reptyr_0.6.2-1.2_amd64.deb.html并用于wget http://archive.ubuntu.com/ubuntu/pool/universe/r/reptyr/reptyr_0.6.2-1.2_amd64.deb下载 deb 文件。
我从中提取了二进制文件,因为 dpkg 文件仍然通过运行dpkg. 这是使用完成的ar x reptyr_0.6.2-1.2_amd64.deb
在里面,data.tar.gz 被提取,然后在新usr/bin文件夹中有一个名为 的文件reptyer。
更改权限以允许执行该文件,sudo chmod +x reptyer
最后使用命令附加到设置reptyer -T <pid of dpkg>,可以使用 找到 pid htop,并搜索 dpkg 进程。瞧\xc3\xa1!:) 我再次进入升级会话并能够继续!
| 归档时间: |
|
| 查看次数: |
2907 次 |
| 最近记录: |