Answers:
您可以将DVD复制到ISO,然后将其作为文件系统永久安装在机器上(并通过修改指向它/etc/apt/sources.list
)。但是,假设计算机已建立Internet连接,则可以切换到使用在线存储库。
详细信息在这里。
但这是一个例子
编辑/etc/apt/sources.list并用其替换内容(这适用于Wheezy或Debian 7,对于早期或更高版本,请检查上面的链接),
deb http://http.debian.net/debian wheezy main contrib non-free
deb-src http://http.debian.net/debian wheezy main contrib non-free
deb http://http.debian.net/debian wheezy-updates main contrib non-free
deb-src http://http.debian.net/debian wheezy-updates main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
然后运行apt-get update
以刷新软件包详细信息。
请注意这里。
如果您正在处理其中设置错误的问题/etc/apt/sources.list
,例如需要使用磁盘,那么从头开始重写文件可能是个好主意。
为此,我仅使用https://debgen.simplylinux.ch/生成文件。
最初,我只是尝试sources.list
按照建议从中删除引用,但是随后在尝试更新软件包时遇到了其他错误,例如
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution...`
要么
git : Depends: liberror-perl but it is not installable
这些对我来说是因为我的版本sources.list
没有指向我需要的软件包源,但是重新生成sources.list
解决了这个问题。