1回答

0收藏

Debian提示将盘片插入驱动器media/cdrom再按回车键

Linux Linux 24 人阅读 | 1 人回复 | 2024-03-24

Debian安装软件不成功,提示将盘片插入驱动器"/media/cdrom"再按回车键,到底是什么怎么回事?
"打赏他人,曝光自己,利他利我"
还没有人打赏,支持一下

回答|共 1 个

大神

发表于 2024-3-24 18:22:51 | 显示全部楼层

修改当前镜像源(需要 root 权限)
修改文件 /etc/apt/sources.list

1、用vim编辑器修改
  1. sudo vim /etc/apt/sources.list
复制代码

部分系统不带vim软件,需要安装。
  1. apt-get install vim
复制代码

vim无法安装请用nano编辑器。

2、用nano编辑器修改
  1. nano /etc/apt/sources.list
复制代码

nano是Debian自带的文本编辑器,将带deb cdrom的行加#注释上,并且根据系统插入下面的镜像地址

Debian 10.x (buster)的软件镜像
  1. deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
  2. deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
  3. deb http://mirrors.aliyun.com/debian-security buster/updates main
  4. deb-src http://mirrors.aliyun.com/debian-security buster/updates main
  5. deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
  6. deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
  7. deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
  8. deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
复制代码

Debian 11.x (bullseye)的软件镜像
  1. deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
  2. deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib
  3. deb https://mirrors.aliyun.com/debian-security/ bullseye-security main
  4. deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main
  5. deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
  6. deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib
  7. deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
  8. deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib
复制代码
Debian 12.x (bookworm)的软件镜像
  1. deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
  2. deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
  3. deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
  4. deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
  5. deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
  6. deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
  7. deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
  8. deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
复制代码

最后重启服务器
  1. reboot
复制代码

再执执行
  1. apt-get udpate
  2. apt-get install vim
复制代码




还没有人打赏,支持一下
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则