我正在更新运行Debian 10的Raspberry Pi。具体来说,我需要从2.9.4(非常旧的!)更新软件包 libxml2
为2.9.14,以保护自己免受 cve-2022-23308 。为此,我不得不将Debian 10(Buster)更新为Debian 11(Bullseye),这使我能够更新许多包装。但是,我只是最新版本的一方面,但是APT使我无法进一步更新?
要尽可能更新,我按以下顺序进行以下操作,遵循这些指令:
- 更新
/etc/apt/sources.list
以及 /etc/Apt/Sources.list.d
中的所有文件以替换所有实例带有“稳定”
-
sudo apt Update
-
sudo apt apt升级
-
sudo apt apo apt apt full-upgrade
-
sudo apto auto autoremove
-
sudo apt clean
-
sudo apt dist -upgrade
(现在没有更新)
,当我运行 lsb_release -a
时,我得到:
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
所以我知道我知道我知道我有最新版本。当我运行 apt列表-All -versions libxml2
时,我得到:
Listing... Done
libxml2/stable,now 2.9.10+dfsg-6.7+deb11u2 armhf [installed]
这都是上下文 - 这是怪异的部分。 sudo apt Update
说所有软件包都是最新的 - 但是我知道这是错误的,因为您可以在Debian的网站上看到更新版本在这里,他们已经出门了一段时间,至少一年了。
实际问题:为什么 apt
假装它具有最新版本,而显然没有?随着Debian更新到最新版本,我应该能够获得其他所有内容的最新版本,对吗?我想念其他作品吗?如何更新此点以获取Libxml2 2.9.14?如果我需要切换到其他发行版或其他重大更改,我会的,但这并不理想:/
非常感谢您的时间和帮助!
I am updating a Raspberry Pi running Debian 10. Specifically, I need to update the package libxml2
from version 2.9.4 (very old!) to 2.9.14, in order to protect myself against CVE-2022-23308. To do this, I had to update Debian 10 (buster) to Debian 11 (bullseye), which allowed me to update a lot of packages several versions ahead. However, I am only partway to the newest version, but apt prevents me from updating further?
To update as far as I have now, I did the following in this order, following these instructions:
- Updated
/etc/apt/sources.list
and all files in /etc/apt/sources.list.d
to replace all instances of "buster" with "stable"
sudo apt update
sudo apt upgrade
sudo apt full-upgrade
sudo apt autoremove
sudo apt clean
sudo apt dist-upgrade
(nothing was updated)
Now, when I run lsb_release -a
, I get:
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
so I know I have the latest version. And when I run apt list --all-versions libxml2
, I get:
Listing... Done
libxml2/stable,now 2.9.10+dfsg-6.7+deb11u2 armhf [installed]
That was all context - here's the weird part. sudo apt update
says that all packages are up to date - however I know that's false, because you can see newer versions on Debian's website right here, and they've been out for a while, at least a year.
The Actual Question: Why does apt
pretend it has the latest version, when it clearly doesn't? With Debian updated to the latest version, I should be able to get the latest version of everything else, right? Am I missing some other piece? How can I update past this point to get libxml2 2.9.14? If I need to switch to a different distro or some other major change, I will, but that's not ideal :/
Thank you so much for your time and help!
发布评论
评论(1)
我已经尝试了以下操作,它没有帮助解决错误,但我想它确实更新了整个列表:
如果仍然存在问题,请尝试使用“ DNF Update -Nobest”命令。希望这会有所帮助
I have tried the following, it didn't help with the error but I guess it did update the whole list:
If there is still a problem then try with "dnf update --nobest" command. Hope this helps