安装Debian 7后apt-get请求安装媒体


16

我通过Debian映像存档中的第一个ISO将Debian安装到OS X上的VMware Fusion 6上。

现在,当我尝试apt-get在某些条件下(即)运行时apt-get install make,出现以下错误:

Media change: please insert the disc labeled
 'Debian GNU/Linux 7.3.0 _Wheezy_ - Official i386 DVD Binary-1 20131215-03:40'
in the drive '/media/cdrom/' and press enter

我不知道为什么它会提示我任何形式的物理媒体-任何想法?

Answers:


23

易于修复。编辑此文件,sudo nano /etc/apt/sources.list然后注释掉#deb cdrom:

这是我喘不过气来的sources.list

# deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official amd64 CD Binary-1 20130$

# deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official amd64 CD Binary-1 20130$

deb http://ftp.us.debian.org/debian/ wheezy main
deb-src http://ftp.us.debian.org/debian/ wheezy main

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

# wheezy-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ wheezy-updates main
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main

-1

尝试(重新)构建apt CD / DVD软件包索引。

成为根用户,然后在/ media / cdrom上重新挂载iso映像,然后再运行'apt-cdrom add'

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.