无法安装任何软件包 Ubuntu 23.10

问题描述 投票:0回答:1

突然之间,我无法使用 apt 成功安装任何东西,并出现以下错误:

The following packages will be upgraded:
  linux-headers-6.5.0-10-generic
1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
75 not fully installed or removed.
Need to get 0 B/3,737 kB of archives.
After this operation, 28.8 MB of additional disk space will be used.
(Reading database ... 156176 files and directories currently installed.)
Preparing to unpack .../linux-headers-6.5.0-10-generic_6.5.0-10.10_amd64.deb ...
Unpacking linux-headers-6.5.0-10-generic (6.5.0-10.10) over (6.5.0-10.10) ...
dpkg: error processing archive /var/cache/apt/archives/linux-headers-6.5.0-10-generic_6.5.0-10.10_amd64.deb (--unpack):
 error creating symbolic link './lib/modules/6.5.0-10-generic/build': Read-only file system
dpkg: error while cleaning up:
 unable to remove newly-extracted version of '/lib/modules/6.5.0-10-generic/build': Read-only file system
Errors were encountered while processing:
 /var/cache/apt/archives/linux-headers-6.5.0-10-generic_6.5.0-10.10_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

如果有帮助,可能问题是我在 Ubuntu 23.10 安装中启用了名为 TPM 加密的实验功能。

我已经使用内置的 ubuntu bug 提交软件提交了一个 bug。但我什至无法安装 php 包而不遇到这个错误。

linux ubuntu linux-kernel apt
1个回答
0
投票

运行以下命令

$sudo apt-get clean 然后 $sudo apt-get update && sudo apt-get Upgrade

再次尝试安装,仍然运行失败

$sudo dpkg --configure -a 然后这个 $onesudo apt-get -f install

© www.soinside.com 2019 - 2024. All rights reserved.