Debian10无法apt安装软件的原因和解决策略

Debian10安装软件时报错:

    root@localhost:~# apt-get update
    Get:1 http://ftp.debian.org/debian buster InRelease [122 kB]
    Get:2 http://security.debian.org buster/updates InRelease [65.4 kB]
    Get:3 http://ftp.debian.org/debian buster-updates InRelease [51.9 kB]
    Reading package lists... Done
    E: Repository 'http://security.debian.org buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
    N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
    N: Repository 'http://ftp.debian.org/debian buster InRelease' changed its 'Version' value from '10.7' to '10.11'
    E: Repository 'http://ftp.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
    N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
    E: Repository 'http://ftp.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
    N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

那么我们输入:

apt-get --allow-releaseinfo-change update
apt-get dist-upgrade

这两条命令都是在Debian系统中使用的包管理器 APT 的命令。其中:

apt-get –allow-releaseinfo-change update:这条命令的作用是更新软件源信息,获取最新的软件包列表。其中的 “–allow-releaseinfo-change” 参数是允许在更新软件源信息时更改发行版信息,这通常用于解决软件包依赖关系的问题。

apt-get dist-upgrade:这条命令的作用是升级系统中所有已安装的软件包,包括那些因为依赖关系而不能自动升级的软件包。与 apt-get upgrade 命令不同,dist-upgrade 命令会自动处理依赖关系,确保所有软件包都能升级到最新版本。

原创文章,作者:陌涛,如若转载,请注明出处:https://imotao.com/8923.html

(2)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
陌涛陌涛
上一篇 2025年6月29日 下午8:20
下一篇 2025年7月20日 下午6:08

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

docker镜像已更新为 https://0-docker.nat.tf/