AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-652636

Bettina's questions

Martin Hope
Bettina
Asked: 2025-01-02 20:56:20 +0800 CST

每当我尝试运行例如 apt-get auotremove 时都会出现 tex-common 错误——Ubuntu 20.04 LTS

  • 5

很长一段时间以来,每当我尝试通过运行命令释放磁盘空间时,tex-common 都会出现错误sudo apt-get autoremove。错误如下:

dpkg: error processing package tex-common (--configure):
 installed tex-common package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 tex-common

我尝试了sudo dpkg -C和sudo dpkg --configure tex-common以及sudo apt-get install --reinstall tex-common类似的输出。我还尝试重新配置区域设置(如本文《无法在 Ubuntu 20.04.2 LTS 上配置 tex-common》中所建议的),但这并不能解决问题。此外,我收到以下警告:

perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = "en_US.UTF-8",
    LC_TIME = "de_AT.UTF-8",
    LC_MONETARY = "de_AT.UTF-8",
    LC_ADDRESS = "de_AT.UTF-8",
    LC_TELEPHONE = "de_AT.UTF-8",
    LC_NAME = "de_AT.UTF-8",
    LC_MEASUREMENT = "de_AT.UTF-8",
    LC_IDENTIFICATION = "de_AT.UTF-8",
    LC_NUMERIC = "de_AT.UTF-8",
    LC_PAPER = "de_AT.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

我猜我遇到的错误与 texlive 安装有关。我目前使用位于 /usr/local/texlive 的 texlive 2023。但是,tex-common 位于 /usr/share/tex-common。我大约 1.5 年前升级到 texlive 2023,一开始一切都运行顺利(就我记得)。

我不知道如何解决这个问题,也不想让事情变得更糟(可能比我已经做的更糟)。因此,我恳请社区提供帮助。如果需要额外的输出或信息,请告诉我。

20.04
  • 1 个回答
  • 27 Views
Martin Hope
Bettina
Asked: 2021-07-10 14:26:20 +0800 CST

如何修复中断的 ubuntu 升级(从 18.04 到 20.04)?

  • 2

我试图将我的系统从 ubuntu 18.04 升级到 20.04(在 HP Zbook 15u 上运行),但升级被中断了。现在我无法正确启动 Ubuntu。你知道如何修复损坏的安装吗?

以下是更多详细信息:

  1. 我使用软件更新程序从 18.04 升级到 20.04 LTS。在“安装升级”阶段,系统关闭(首先屏幕冻结,然后变黑。CRTL + ALT + F1没有做任何事情,所以我唯一的选择是重新启动系统)。
  2. 我尝试以恢复模式启动(Grub 显示了三个不同的内核:
  • Ubuntu, with Linux 5.4.0-77-generic
  • Ubuntu, with Linux 4.15.0-147-generic
  • Ubuntu, with Linux 4.15.0-135-generic

会发生以下情况:

  • 使用 5.4.0 我得到内核恐慌
  • 使用两个 4.15.0 版本我都可以进入安全模式
  1. 在安全模式下(使用两个 4.15.0 内核)
  • 我跑了dpkg,但是出错了
  • 像apt-get update --fix-missing提示我手动运行 dpkg 这样的命令,所以我做了:
  1. 我掉头root跑了dpkg —configure -a(正如其他各种帖子中所建议的那样)。但是,这并不能解决任何问题,我得到以下输出
Failed to create symlink to vmlinuz-4.15.0-147-generic: Operation not permitted at /usr/bin/linux-update-symlinks line 64.
dpkg: error processing package linux-image-5.4.0-77-generic (--configure): installed linux-image-5.4.0-77-gneneric package post-installation script subprocess return error code exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic: however: package linux-mage-5.4.0-77-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure): dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic: linux-generic depends on linux-image-generic (= 5.4.0.77.80); however: package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (--configure): dependency problems - leaving unconfigured
Setting up liux-firmware (1.187.15)...
ln: failed to create hard link '/boot/initrd.img-4.15.0-147-generic.dpkg-bak' => '/boot/initrd.mg-4.15.0-147-generic': Operation not permitted
update-initramfs: Generating /boot/initrd.img-4.15.0-147-generic
Error 24: write error: cannot write compressed block
E: mkinitramfs failure cpio 141 lz4 -9 -1 24
update-initramfs: failed for /boot/initrd.img-4.150-147-generic with 1.
dpkg: error processing package linux-firmware (--configure):
installed linux-firmware package post-installation script subprocess returned error exit status 1
Setting up friendly-recovery (0.2.41ubuntu0-
.20.04.1) ...
Sourcing file `/etc/default/grub`
Sourcing file `/etc/default/grub.d/40_oem-add-missing-default.cfg``
Sourcing file `/etc/default/grub.d/50_oem-kernel-cmdline.cfg`
Sourcing file `/etc/default/grub.d/51_oem-grub-recovery-title.cfg`
Sourcing file `/etc/default/grub.d/init-select.cfg`
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-yero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-5.4.0-77-generic
Found linux image: /boot/vmlinuz-4.15.0-147-generic
Found initrd image: /boot/initrd.img-4.15.0-147-generic
Found linux image: /boot/vmlinuz-4.15.0-135-generic
Found initrd image: /boot/initrd.img-4.15.0-135-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done

如果我需要提供更多信息,请告诉我!

18.04
  • 1 个回答
  • 899 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve