为什么我无法再更新 Ubuntu 或登录启动板来报告它?

为什么我无法再更新 Ubuntu 或登录启动板来报告它?

我无法再更新 Ubuntu。我的电脑一直要求我提交 libre-office-common 的错误报告,因为它出于某种原因无法更新到最新版本。软件更新程序告诉我包管理器已损坏,并告诉我禁用第三方存储库并运行[sudo] apt-get install -f,这会返回以下错误,

username@username:~$ sudo apt-get install -f
[sudo] password for username: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libostree-1-1 xdg-desktop-portal xdg-desktop-portal-gtk
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libreoffice-common
Suggested packages:
  libreoffice-style-hicontrast libreoffice-style-oxygen libreoffice-style-sifr
The following packages will be upgraded:
  libreoffice-common
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
20 not fully installed or removed.
Need to get 0 B/20.8 MB of archives.
After this operation, 2,048 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 165858 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a5.4.5-0ubuntu0.17.10.5_all.deb ...
apparmor_parser: Unable to remove "libreoffice-oopslash".  Profile doesn't exist
apparmor_parser: Unable to remove "libreoffice-senddoc".  Profile doesn't exist
apparmor_parser: Unable to remove "libreoffice-soffice".  Profile doesn't exist
apparmor_parser: Unable to remove "libreoffice-xpdfimport".  Profile doesn't exist
Unpacking libreoffice-common (1:5.4.5-0ubuntu0.17.10.5) over (1:5.4.5-0ubuntu0.17.10.4) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a5.4.5-0ubuntu0.17.10.5_all.deb (--unpack):
 unable to open '/usr/lib/libreoffice/share/template/common/internal/html.stw.dpkg-new': Operation not permitted
rmdir: failed to remove '/var/lib/libreoffice/share/prereg/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/share/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/program/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a5.4.5-0ubuntu0.17.10.5_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
username@username:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libreoffice-pdfimport : Depends: libreoffice-common (= 1:5.4.5-0ubuntu0.17.10.5) but 1:5.4.5-0ubuntu0.17.10.4 is installed
 libreoffice-style-breeze : Depends: libreoffice-common (= 1:5.4.5-0ubuntu0.17.10.5) but 1:5.4.5-0ubuntu0.17.10.4 is installed
 libreoffice-style-elementary : Depends: libreoffice-common (= 1:5.4.5-0ubuntu0.17.10.5) but 1:5.4.5-0ubuntu0.17.10.4 is installed
 libreoffice-style-galaxy : Depends: libreoffice-common (= 1:5.4.5-0ubuntu0.17.10.5) but 1:5.4.5-0ubuntu0.17.10.4 is installed
 libreoffice-style-tango : Depends: libreoffice-common (= 1:5.4.5-0ubuntu0.17.10.5) but 1:5.4.5-0ubuntu0.17.10.4 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
username@username:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libostree-1-1 xdg-desktop-portal xdg-desktop-portal-gtk
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libreoffice-common
Suggested packages:
  libreoffice-style-hicontrast libreoffice-style-oxygen libreoffice-style-sifr
The following packages will be upgraded:
  libreoffice-common
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
20 not fully installed or removed.
Need to get 0 B/20.8 MB of archives.
After this operation, 2,048 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 165858 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a5.4.5-0ubuntu0.17.10.5_all.deb ...
apparmor_parser: Unable to remove "libreoffice-oopslash".  Profile doesn't exist
apparmor_parser: Unable to remove "libreoffice-senddoc".  Profile doesn't exist
apparmor_parser: Unable to remove "libreoffice-soffice".  Profile doesn't exist
apparmor_parser: Unable to remove "libreoffice-xpdfimport".  Profile doesn't exist
Unpacking libreoffice-common (1:5.4.5-0ubuntu0.17.10.5) over (1:5.4.5-0ubuntu0.17.10.4) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a5.4.5-0ubuntu0.17.10.5_all.deb (--unpack):
 unable to open '/usr/lib/libreoffice/share/gallery/arrows.str.dpkg-new': Operation not permitted
rmdir: failed to remove '/var/lib/libreoffice/share/prereg/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/share/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/program/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a5.4.5-0ubuntu0.17.10.5_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

几分钟后,错误报告器会自动打开。在我让它为开发人员收集信息后,它打开了一个文本编辑器,里面有以下内容:

<html> <head> <title>OpenID transaction in progress</title> </head> <body onload="document.forms[0].submit();"> <form action="https://login.launchpad.net/+openid" method="post" accept-charset="UTF-8" enctype="application/x-www-form-urlencoded"><input name="openid.return_to" type="hidden" value="https://launchpad.net/+openid-callback?starting_url=https%3A%2F%2Fbugs.launchpad.net%2Fubuntu%2F%2Bsource%2Flibreoffice%2F%2Bfilebug%2F2d3dd6aa-2b68-11e8-a586-0025b3df357a%3Ffield.title%3Dpackage%2Blibreoffice-common%2B1%253A5.4.5-0ubuntu0.17.10.4%2Bfailed%2Bto%2Binstall%252Fupgrade%253A%2Bunable%2Bto%2Bopen%2B%2527%252Fusr%252Flib%252Flibreoffice%252Fshare%252Fgallery%252Fdiagrams%252FComponent-Gear04-DarkRed.svg.dpkg-new%2527%253A%2BOperation%2Bnot%2Bpermitted&amp;janrain_nonce=2018-03-19T11%3A25%3A12ZmLdZIz"/><input name="openid.realm" type="hidden" value="https://launchpad.net/"/><input name="openid.sreg.required" type="hidden" value="email,fullname"/><input name="openid.ns" type="hidden" value="http://specs.openid.net/auth/2.0"/><input name="openid.claimed_id" type="hidden" value="http://specs.openid.net/auth/2.0/identifier_select"/><input name="openid.ns.sreg" type="hidden" value="http://openid.net/extensions/sreg/1.1"/><input name="openid.assoc_handle" type="hidden" value="{HMAC-SHA1}{5aa9113c}{dExviA==}"/><input name="openid.mode" type="hidden" value="checkid_setup"/><input name="openid.identity" type="hidden" value="http://specs.openid.net/auth/2.0/identifier_select"/><input type="submit" value="Continue"/></form> <script> var elements = document.forms[0].elements; for (var i = 0; i < elements.length; i++) { elements[i].style.display = "none"; } </script> </body> </html>

以前,它会打开一个网页,供 launchpad 提交错误。现在,它只会打开带有 html 代码的文本编辑器(这样做,但它有问题,因为它不再像应该的那样在浏览器中打开 launchpad?)。以前,当 html 代码没有问题时,错误报告者会在我的 Web 浏览器中打开 launchpad 网站以登录并报告错误。但 launchpad 说了以下内容,

哎呀!抱歉,Launchpad 出了点问题。

我们已经记录了发生的情况,并将尽快修复。给您带来的不便,敬请谅解。

(错误 ID:OOPS-d18dd272fae4356c8f1ce1415bd51368)

当我尝试使用 Web 浏览器自行登录 Launchpad 时,系统提示我已经登录,并要求我确认是否要与网站共享我的姓名和电子邮件地址(顺便说一句,共享信息的复选框无法选中,因此我必须共享信息)。当我确认后,系统会显示此错误消息,

哎呀!抱歉,Launchpad 出了点问题。

我们已经记录了发生的情况,并将尽快修复。给您带来的不便,敬请谅解。

(错误 ID:OOPS-5bd3804edb80ca8b5c44fc826c9ace63)

我知道我应该在 Launchpad 上报告一些问题,但我无法这样做,因为这是一个错误,它阻止我登录 Launchpad 进行报告。所以我在这里报告。

此外,每次我重新启动时,我都会在 gnome 关闭后(但计算机关闭前)发现读数上有红色和黄色错误。它告诉我运行命令以了解详细信息,输出如下,systemctl status [email protected]

[电子邮件保护]- cryptswap1 的加密设置已加载:已加载(/etc/crypttab;已生成;供应商预设:已启用)活动:失败(结果:退出代码)自 2018-03-19 星期一 07:01:12 PDT;32 秒前文档:man:crypttab(5) man:systemd-cryptsetup-generator(8) man:[电子邮件保护](8)进程:2073 ExecStart=/lib/systemd/systemd-cryptsetup attachment cryptswap1 /target/swapfile /dev/urandom swap,offset=1024,cipher=aes-xts-plain64(代码=exited,状态=1/FAILURE)主 PID:2073(代码=exited,状态=1/FAILURE)

3 月 19 日 07:01:12 用户名 systemd[1]: 正在启动 cryptswap1 的加密设置... 3 月 19 日 07:01:12 用户名 systemd-cryptsetup[2073]: crypt_init() 失败: 需要块设备 3 月 19 日 07:01:12 用户名 systemd[1]:[电子邮件保护]:主进程已退出,代码=已退出,状态=1/失败 3 月 19 日 07:01:12 用户名 systemd[1]:无法启动 cryptswap1 的加密设置。3 月 19 日 07:01:12 用户名 systemd[1]:[电子邮件保护]:设备进入故障状态。3 月 19 日 07:01:12 用户名 systemd[1]: [电子邮件保护]:失败,结果为“退出代码”。

重启后这些问题仍然存在。

答案1

听起来你的账户有点问题。你能不能获取一个新的 OOPS ID(这些信息在我们的系统中一周后就会过期),然后通过电子邮件将其和情况摘要发送给[电子邮件保护]?我们会从那里处理。

相关内容