我试图在Linux模型15上安装build-dep,但我收到了错误。我查看了我的源列表并且看起来很好。我还更新了系统(apt-get update)
这是命令
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
答案 0 :(得分:2)
您缺少安装build-dep的源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
答案 1 :(得分:0)
内核很特别。安装linux-source
; apt-get将默认为您当前的版本。