我正在尝试在 Debian 8 上安装 lmms 进行一些音频制作。过程如下:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install lmms
“E:无法找到包 lmms”
这是遵循以下说明:https://lmms.io/download/#linux
/etc/apt/sources.list
:
# deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150909-00:22]/ jessie contrib main non-free
deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150909-00:22]/ jessie contrib main non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
/etc/apt/sources.list.d/winehq.list
:
deb https://dl.winehq.org/wine-builds/debian/jessie main
答案1
由于某种原因,您的 Debian 安装缺少软件包源。/etc/apt/sources.list
仅列出安装 CD 和安全更新,但不列出主要在线存储库。添加主在线存储库:编辑/etc/apt/sources.list
(以 root 身份,例如使用sudoedit
)并添加行
deb http://ftp.debian.org/debian jessie main non-free contrib
deb-src http://ftp.debian.org/debian jessie main non-free contrib
deb http://ftp.debian.org/debian jessie-updates main contrib non-free
deb-src http://ftp.debian.org/debian jessie-updates main contrib non-free
您可能想替换ftp.debian.org
为镜子离你更近。仅当多个源具有完全相同的版本时,顺序才重要(首先 APT 确定要安装哪个版本,然后它使用第一个列出的具有该版本的源)。
完成后,运行sudo apt-get update
并安装所需的软件包。
答案2
您仅从 3 个存储库获取软件包,但它们似乎都不包含该lmms
软件包。尝试将此节添加到/etc/apt/sources.list
文件中,然后重新运行apt-get update
并apt-get install lmms
:
deb http://httpredir.debian.org/debian jessie main contrib non-free
deb-src http://httpredir.debian.org/debian jessie main contrib non-free
答案3
root@debian30:/# vi /etc/apt/sources.list
评论 cd-rom 行:
# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official i386 NETINST 20180310-11:55]/ stretch main
# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official i386 NETINST 20180310-11:55]/ stretch main