debian linux E: 无法定位软件包

原因是国内镜像站全寄了,你设国内源没用!,换成官方的然后懂?

复制代码
sudo vim /etc/apt/sources.list

添加debian官方源

复制代码
deb https://deb.debian.org/debian/ bullseye main contrib non-free
deb-src https://deb.debian.org/debian/ bullseye main contrib non-free

deb https://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb-src https://deb.debian.org/debian/ bullseye-updates main contrib non-free

deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free
deb-src https://deb.debian.org/debian/ bullseye-backports main contrib non-free

deb https://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src https://deb.debian.org/debian-security/ bullseye-security main contrib non-free

美国源

复制代码
deb http://ftp.us.debian.org/debian/ bullseye main contrib non-free
deb-src http://ftp.us.debian.org/debian/ bullseye main contrib non-free

deb http://ftp.us.debian.org/debian/ bullseye-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ bullseye-updates main contrib non-free

deb http://ftp.us.debian.org/debian/ bullseye-backports main contrib non-free
deb-src http://ftp.us.debian.org/debian/ bullseye-backports main contrib non-free

deb http://ftp.us.debian.org/debian/ bullseye-security main contrib non-free
deb-src http://ftp.us.debian.org/debian/ bullseye-security main contrib non-free

俄罗斯源

复制代码
deb http://ftp.ru.debian.org/debian/ bullseye main contrib non-free
deb-src http://ftp.ru.debian.org/debian/ bullseye main contrib non-free

deb http://ftp.ru.debian.org/debian/ bullseye-updates main contrib non-free
deb-src http://ftp.ru.debian.org/debian/ bullseye-updates main contrib non-free

deb http://ftp.ru.debian.org/debian/ bullseye-backports main contrib non-free
deb-src http://ftp.ru.debian.org/debian/ bullseye-backports main contrib non-free

deb http://ftp.ru.debian.org/debian/ bullseye-security main contrib non-free
deb-src http://ftp.ru.debian.org/debian/ bullseye-security main contrib non-free

小日本的源(install 成功的那一刻不小!)

复制代码
deb https://ftp.jp.debian.org/debian/ bullseye main contrib non-free
deb-src https://ftp.jp.debian.org/debian/ bullseye main contrib non-free

deb https://ftp.jp.debian.org/debian/ bullseye-updates main contrib non-free
deb-src https://ftp.jp.debian.org/debian/ bullseye-updates main contrib non-free

deb https://ftp.jp.debian.org/debian/ bullseye-backports main contrib non-free
deb-src https://ftp.jp.debian.org/debian/ bullseye-backports main contrib non-free

deb https://ftp.jp.debian.org/debian/ bullseye-security main contrib non-free
deb-src https://ftp.jp.debian.org/debian/ bullseye-security main contrib non-free

法国源

复制代码
deb http://ftp.fr.debian.org/debian/ bullseye main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ bullseye main contrib non-free

deb http://ftp.fr.debian.org/debian/ bullseye-updates main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ bullseye-updates main contrib non-free

deb http://ftp.fr.debian.org/debian/ bullseye-backports main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ bullseye-backports main contrib non-free

deb http://ftp.fr.debian.org/debian/ bullseye-security main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ bullseye-security main contrib non-free

德国源

复制代码
deb http://ftp2.de.debian.org/debian/ bullseye main contrib non-free
deb-src http://ftp2.de.debian.org/debian/ bullseye main contrib non-free

deb http://ftp2.de.debian.org/debian/ bullseye-updates main contrib non-free
deb-src http://ftp2.de.debian.org/debian/ bullseye-updates main contrib non-free

deb http://ftp2.de.debian.org/debian/ bullseye-backports main contrib non-free
deb-src http://ftp2.de.debian.org/debian/ bullseye-backports main contrib non-free

deb http://ftp2.de.debian.org/debian/ bullseye-security main contrib non-free
deb-src http://ftp2.de.debian.org/debian/ bullseye-security main contrib non-free

更新

复制代码
sudo apt update && sudo apt upgrade

只需要把网址替换一下就可以了
debian其他国家镜像站

相关推荐
雾岛心情4 分钟前
【黑客与安全】Linux的常用命令之系统架构信息获取系列命令
linux·运维·服务器
杯莫停丶15 分钟前
Linux基础指令大全
linux·运维·chrome
Gold Steps.1 小时前
JumpServer:解锁运维安全的数字 “钥匙”
运维·安全·jumpserver
卫生纸不够用1 小时前
(三)Linux性能优化-CPU-CPU 使用率
linux·运维·服务器
Clownseven3 小时前
Ubuntu 24.04 LTS 长期支持版发布:对服务器用户意味着什么?新特性、升级建议与性能影响初探
linux·服务器·ubuntu
wanhengidc3 小时前
高防服务器中高防和硬防之间的区别
运维·服务器·网络
Xam_d_LM3 小时前
【Linux】服务器反向代理自动续签免费 Let‘s Encrypt 证书报错解决方法
linux·运维·服务器·反向代理·lets encrypt·http-01·证书续签
wanhengidc3 小时前
服务器硬防的应用场景都有哪些?
运维·服务器·网络
Smile_Gently3 小时前
基于服务器使用 apt 安装、配置 Nginx
nginx·ubuntu·debian
复园电子3 小时前
USB扩展器与USB服务器的2个主要区别
运维·服务器