fsck 后无法启动系统,libgtk 问题

fsck 后无法启动系统,libgtk 问题

我尝试执行chmod并删除我的 Pycharm 日志。但不知何故,我遇到了无法启动系统的情况。

[FAILED]Failed to start Create Volatile Files and Directories
[FAILED]Failed to start Enable support for additional executable binary        formats

[49.493137] acpi_call: Cannot get handle: Error: AE_NOT_FOUND
[45.515265] acpi_call: Cannot get handle: Error: AE_NOT_FOUND

使用CTRL+ ALT+打开 tty1 F1。输入凭证后,我得到:

/usr/lib/ubuntu-release-upgrader/release-upgrade-motd:39
 /usr/lib/ubuntu-release-upgrader/release-upgrade-motd: cannot create /usr/lib/ubuntu-release-    
upgrader/release-upgrade-available Directory nonexistent 
usr/lib/update-notifier/update-motd-fsck-at-reboot: 33: usr/lib/update-notifier/update-motd-fsck-at-reboot: cannot create usr/lib/update-notifier/fsck-at-reboot: Directory nonexistent
cat: /var/lib/update-notifier/fsck-at-reboot No such file or directiory
run-parts: /etc/update-motd.d/98-fsck-at-reboot exited with return code 1

原来的问题仍然没有解决,同样的事情仍然存在,无法启动系统。但现在重启后,没有更多的错误 [FAILED]Failed to start Create Volatile Files and Directories,只有第二个错误。我做了很多事情,但我相信这个答案在第一步中起到了作用https://askubuntu.com/a/748350/741547

我得到之后sudo apt -f install

Additional packages will be installed libgtk-3-bin.
Preparing to unpack .../libgtk-3-bin_3.18.9-1ubuntu3.3_amd64.deb ...
Adding 'diversion of /usr/sbin/update-icon-caches to /usr/sbin/update-icon-caches.gtk2 by libgtk-3-bin'

dpkg-divert: error: rename involvs overwriting 'usr/sbin/update-icon-caches.gtk2 with different file '/usr/sbin/update-icon-caches', not allowed
dpkg: error processing archive /var/cache/apt/archives/libgtk-3-bin_3.18.9-1ubuntu3.3_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 2
Errors wew encountered while processing:
/var/cache/apt/archives/libgtk-3-bin_3.18.9-1ubuntu3.3_amd64.deb
E. Sub-process /usr/bin/dpkg returned an error code (1)

此后,我尝试做的事情:

sudo apt-get install libgtk-3-bin=3.18.6
E: Version '3.18.6-1ubuntu1' for 'libgtk-3-bin' was not found

然后我尝试sudo dpkg -i --force-overwrite var/cache/apt/archives/libgtk-3-bin_3.18.9-1ubuntu3.3_amd64.deb 用同样的错误覆盖:

dpkg: error processing archive /var/cache/apt/archives/libgtk-3-bin_3.18.9-1ubuntu3.3_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 2
Errors wew encountered while processing:
/var/cache/apt/archives/libgtk-3-bin_3.18.9-1ubuntu3.3_amd64.deb

之后在 tty1 中输入systemctl status binfmt-support.service并得到:

Active: failed (Result:exit code)
Process: 1310 ExecStart=/usr/sbin/update-binfmts --enable (code=exited, status=2)
systemd[1]: Failed to start Enable support for additional executable binary formats

编辑2:

现在我在系统中安装了 Ubuntu USB,可以访问所有软件包。我可以用 ubuntu 软件中心来修复软件包吗?

相关内容