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

相关推荐
苹果醋331 分钟前
Java8->Java19的初步探索
java·运维·spring boot·mysql·nginx
二十雨辰1 小时前
[linux]docker基础
linux·运维·docker
Jason-河山1 小时前
【自动化更新,让商品信息跳舞】——利用API返回值的幽默编程之旅
运维·自动化
饮浊酒1 小时前
Linux操作系统 ------(3.文本编译器Vim)
linux·vim
lihuhelihu2 小时前
第3章 CentOS系统管理
linux·运维·服务器·计算机网络·ubuntu·centos·云计算
哲讯智能科技2 小时前
SAP Business One市场价格解析
运维·sap·erp
矛取矛求2 小时前
Linux系统性能调优技巧
linux
山东布谷科技官方2 小时前
布谷直播源码部署服务器关于数据库配置的详细说明
运维·服务器·数据库·直播系统源码·直播源码·直播系统搭建·直播软件开发
One_Blanks2 小时前
渗透测试-Linux基础(1)
linux·运维·安全
Perishell2 小时前
无人机避障——大疆与Airsim中的角速度信息订阅获取
linux·动态规划·无人机