在Linux Mint的安装集结出发(Installing build-dep on linux m

2019-10-20 04:49发布

我试图在Linux Mint的15安装建立DEP,但我得到一个错误。 我检查了我的源列表,看起来很好。 我还更新了系统(apt-get的更新)

这是命令

apt-get build-dep --no-install-recommends linux-image-$(uname -r) 

这就是错误:

Picking 'linux' as source package instead of 'linux-image-3.8.0-19-generic'
E: Unable to find a source package for linux

这是我的source.list:

deb http://archive.getdeb.net/ubuntu raring-getdeb apps games
deb-src http://cran.ms.unimelb.edu.au/bin/linux/ubuntu raring/
deb http://packages.linuxmint.com/ nadia main upstream import
deb http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ quantal partner
deb http://packages.medibuntu.org/ quantal free non-free

# deb http://archive.getdeb.net/ubuntu quantal-getdeb apps
# deb http://archive.getdeb.net/ubuntu quantal-getdeb 

Answer 1:

这是因为丢失的源URI安装集结出发。 做:

sudo bash -c 'echo "deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse" >> /etc/apt/sources.list'
sudo apt-get update
sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r) # or any other package


Answer 2:

内核是特殊的。 安装linux-source ; apt-get会默认为当前版本。



文章来源: Installing build-dep on linux mint