daiwenbin81 发表于 2026-1-28 16:52:37

22.04源设定成24.04更新之后报错!!!!!!

(为了高效,请按如下格式提问)

硬件主板型号:
固件名称/系统版本:
自编的或固件下载地址:
Log日志: (可以导出,用TXT附件上传)

问题描述及复现步骤:
22.04源设定成24.04更新之后报错!!!!!!

报错如下,请大神解决

何浩钧 发表于 2026-1-28 17:17:59

用的什么源说明一下,发帖补充一下背景信息,谢谢

daiwenbin81 发表于 2026-1-28 17:21:25

何浩钧 发表于 2026-1-28 17:17
用的什么源说明一下,发帖补充一下背景信息,谢谢

用的这个24.04的清华源,然后sudo apt install libopecv-dev,后就崩了:


# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ noble main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ noble main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ noble-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ noble-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ noble-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ noble-backports main restricted universe multiverse

# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
deb http://ports.ubuntu.com/ubuntu-ports/ noble-security main restricted universe multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ noble-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ noble-proposed main restricted universe multiverse
# # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ noble-proposed main restricted universe multiverse

daiwenbin81 发表于 2026-1-28 17:26:20

何浩钧 发表于 2026-1-28 17:17
用的什么源说明一下,发帖补充一下背景信息,谢谢

安装libopencv-dev,报了下问题,后续就崩了:


Installing new version of config file /etc/systemd/journald.conf ...
Installing new version of config file /etc/systemd/logind.conf ...
Installing new version of config file /etc/systemd/networkd.conf ...
Installing new version of config file /etc/systemd/pstore.conf ...
Installing new version of config file /etc/systemd/sleep.conf ...

Configuration file '/etc/systemd/system.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
   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.
*** system.conf (Y/I/N/O/D/Z) ? y
Installing new version of config file /etc/systemd/system.conf ...
Installing new version of config file /etc/systemd/user.conf ...
systemd-machine-id-setup: /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.39' not found (         required by /usr/lib/aarch64-linux-gnu/systemd/libsystemd-shared-255.so)
systemd-machine-id-setup: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (         required by /usr/lib/aarch64-linux-gnu/systemd/libsystemd-shared-255.so)
systemd-machine-id-setup: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (         required by /usr/lib/aarch64-linux-gnu/systemd/libsystemd-shared-255.so)
systemd-machine-id-setup: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (         required by /lib/aarch64-linux-gnu/libgcrypt.so.20)
systemd-machine-id-setup: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (         required by /lib/aarch64-linux-gnu/libcrypto.so.3)

何浩钧 发表于 2026-1-28 17:43:54

daiwenbin81 发表于 2026-1-28 17:26
安装libopencv-dev,报了下问题,后续就崩了:




更新这个24.04的源目的是?

daiwenbin81 发表于 2026-1-28 17:45:47

何浩钧 发表于 2026-1-28 17:43
更新这个24.04的源目的是?

本来想弄22.04的,看错了弄成24.04了。弄清华源是想后续apt安装快一点。

何浩钧 发表于 2026-1-28 18:04:34

daiwenbin81 发表于 2026-1-28 17:45
本来想弄22.04的,看错了弄成24.04了。弄清华源是想后续apt安装快一点。

重新用回22.04也不行吗

何浩钧 发表于 2026-1-28 18:12:10

何浩钧 发表于 2026-1-28 18:04
重新用回22.04也不行吗

我们的系统是22.04,不可以用24.04的源,弄回来吧,很多依赖都匹配不上的

daiwenbin81 发表于 2026-1-28 18:12:12

何浩钧 发表于 2026-1-28 18:04
重新用回22.04也不行吗

不行,源改回22.04的源,执行sudo apt update 还有其他有关apt都报错了,就是第一个图的错

何浩钧 发表于 2026-1-28 18:13:09

本帖最后由 何浩钧 于 2026-1-28 18:15 编辑

daiwenbin81 发表于 2026-1-28 18:12
不行,源改回22.04的源,执行sudo apt update 还有其他有关apt都报错了,就是第一个图的错 ...
那就clean一下,按照报错提示,把依赖关系修复一下

daiwenbin81 发表于 2026-1-28 18:22:19

何浩钧 发表于 2026-1-28 18:13
那就clean一下,按照报错提示,把依赖关系修复一下

具体怎么操作
页: [1]
查看完整版本: 22.04源设定成24.04更新之后报错!!!!!!