Debian的更新和升级要求我插入CD

Debian的更新和升级要求我插入CD

Debian的更新和升级要求我插入CD。

这是我的 /etc/apt/source.list 的内容

#------------------------------------------------------------------------------#
#                   OFFICIAL DEBIAN REPOS                    
#------------------------------------------------------------------------------#

###### Debian Main Repos 
deb http://ftp.de.debian.org/debian/ stable main contrib non-free
deb http://ftp.de.debian.org/debian/ stable-updates main contrib non-free
deb http://security.debian.org/ stable/updates main
deb http://ftp.debian.org/debian stretch-backports main

这是执行的输出apt-get update && apt-get upgrade

Ign:1 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch InRelease
Ign:2 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch InRelease
Ign:3 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch InRelease
Ign:4 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch Release 
Ign:5 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch Release
Ign:6 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch Release
Hit:7 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/contrib amd64 Packages
Ign:8 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/contrib all Packages
Hit:9 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/contrib Translation-en
Ign:10 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/contrib Translation-en_GB
Hit:11 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/main amd64 Packages
Ign:12 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/main all Packages
Ign:7 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/contrib amd64 Packages
Ign:13 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/main Translation-en_GB
Hit:14 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/main Translation-en
Ign:15 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/contrib all Packages
Hit:16 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/contrib amd64 Packages
Hit:17 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/contrib Translation-en
Ign:18 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/contrib Translation-en_GB
Hit:19 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/main amd64 Packages
Ign:20 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/main all Packages
Hit:21 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/main Translation-en
Ign:22 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/main Translation-en_GB
Ign:23 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/contrib all Packages
Hit:24 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/contrib amd64 Packages
Ign:25 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/contrib Translation-en_GB
Hit:26 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/contrib Translation-en
Ign:27 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/main all Packages
Hit:28 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/main amd64 Packages
Ign:29 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/main Translation-en_GB
Hit:30 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/main Translation-en
Ign:8 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/contrib all Packages
Ign:10 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/contrib Translation-en_GB
Ign:12 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/main all Packages
Hit:7 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/contrib amd64 Packages
Ign:13 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/main Translation-en_GB
Ign:9 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/contrib Translation-en
Ign:15 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/contrib all Packages
Ign:18 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/contrib Translation-en_GB
Ign:11 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/main amd64 Packages
Ign:20 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/main all Packages
Ign:14 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/main Translation-en
Ign:22 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/main Translation-en_GB
Ign:16 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/contrib amd64 Packages
Ign:23 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/contrib all Packages
Ign:17 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/contrib Translation-en
Ign:25 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/contrib Translation-en_GB
Ign:19 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/main amd64 Packages
Ign:27 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/main all Packages
Ign:21 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-2 20171013-13:09] stretch/main Translation-en
Ign:29 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/main Translation-en_GB
Ign:24 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/contrib amd64 Packages
Ign:8 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/contrib all Packages
Ign:26 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/contrib Translation-en
Ign:10 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/contrib Translation-en_GB
Ign:28 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/main amd64 Packages
Ign:12 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/main all Packages
Ign:30 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-3 20171013-13:09] stretch/main Translation-en
Ign:13 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/main Translation-en_GB
Ign:7 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/contrib amd64 Packages
Hit:9 cdrom://[Debian GNU/Linux 9.2.1 _Stretch_ - Official amd64 DVD Binary-1 20171013-13:09] stretch/contrib Translation-en

如果我正在获取德语存储库,为什么要求插入 CDROM?

如果我尝试安装 .deb 文件,我会收到以下输出:

介质更改:请插入标有“Debian GNU/Linux 9.2.1”的光盘 拉紧- 官方 amd64 DVD Binary-1 20171013-13:09'

答案1

仔细检查/etc/apt/sources.list所有文件中/etc/apt/sources.list.d包含cdrom:.确保它们都被注释掉。然后跑apt update

相关内容