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其他国家镜像站

相关推荐
JAVA拾贝1 分钟前
Prometheus+Grafana运维监控并实现钉钉告警
运维·钉钉·grafana·prometheus·运维监控
数通Dinner16 分钟前
异步Websocket构建聊天室
运维·网络·websocket·网络协议·信息与通信
云动雨颤1 小时前
Python 自动化办公神器|一键转换所有文档为 PDF
运维·python
Fanmeang1 小时前
OSPF高级特性之FRR
运维·网络·华为·ip·ospf·spf·frr
小张不嚣张꒰ঌ(˚ᆺ˚)໒꒱1 小时前
Centos7在yum当中遇到Could not resolve host: mirrorlist.centos.org解决方案
linux·运维·服务器·centos
Sally璐璐1 小时前
CentOS企业级文件服务器终极部署指南
linux·服务器·centos
岁月玲珑1 小时前
【如何判断Linux系统是Ubuntu还是CentOS】
linux·ubuntu·centos
梅孔立1 小时前
yum update 报错 Cannot find a valid baseurl for repo: centos-sclo-rh/x86_64 等解决办法
linux·python·centos
ldj20201 小时前
Centos 安装Jenkins
java·linux
Sca_杰1 小时前
centos指令
linux·运维·centos