Installing build-dep on linux mint

耗尽温柔 提交于 2019-12-11 08:29:31

问题


I'm trying to install build-dep on Linux mint 15, but I'm getting an error. I've checked my source list and looks fine. I've also updated the system (apt-get update)

This is the command

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

And this is the error:

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

And this is my 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 

回答1:


You are missing the source uri to install the build-dep. Do:

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



回答2:


The kernel is special. Install linux-source; apt-get will default to your current version.



来源:https://stackoverflow.com/questions/23874821/installing-build-dep-on-linux-mint

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!