无法获取我的内核源代码

无法获取我的内核源代码

我正在尝试获取内核源代码 这是 source.list 文件

deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe  
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe   
deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe   
deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe   
deb-src http://archive.ubuntu.com/ubuntu trusty main restricted    
deb-src http:/archive.ubuntu.com/ubuntu/ trusty restricted main universe  
deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates restricted main universe    
deb-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe   
deb-src http://security.ubuntu.com/ubuntu trusty-security restricted main universe  
deb-src http://archive.ubuntu.com/ubuntu/ trusty-proposed restricted main universe

uname -r
3.19.0-25-generic

我收到此错误信息

apt-get source linux-image-$(uname -r)   
Reading package lists... Done  
Building dependency tree 
Reading state information... Done 
E:You must put some 'source' URIs in your sources.list

我错过了什么?

答案1

我漏掉了 apt-get 更新!我手动添加了 deb-src 行,但没有意识到我需要更新软件包列表

相关内容