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

相关推荐
天朝八阿哥3 分钟前
关于xfce4-pulseaudio-plugin中文翻译的bug
linux·debian
西贝爱学习7 分钟前
【软件】nginx-1.28.0安装包(Windows版)
运维·nginx
z2023050817 分钟前
linux之 remoteproc 内核实现源码分析
linux·运维·服务器
阿方索29 分钟前
shell脚本
linux·运维
嗨丶王哪跑40 分钟前
网络安全审计技术原理与应用
运维·网络·安全·web安全
斯普信专业组41 分钟前
Skywalking从部署集成到动态调优(上)
运维·skywalking·动态调优
斯普信专业组42 分钟前
Skywalking从部署集成到动态调优(下)
运维·skywalking·动态调优
努力努力再努力wz1 小时前
【C++进阶系列】:万字详解智能指针(附模拟实现的源码)
java·linux·c语言·开发语言·数据结构·c++·python
QMCY_jason1 小时前
ubuntu 24.04 FFmpeg编译 带Nvidia 加速记录
linux·ubuntu·ffmpeg
matlab的学徒1 小时前
Kubernetes(K8S)全面解析:核心概念、架构与实践指南
linux·容器·架构·kubernetes