다음 명령은 Ubuntu 15.10에서 제대로 작동했습니다.
sudo apt-get build-dep emacs24
그러나 Ubuntu 16.04에서 실행할 때 다음 오류가 발생합니다.
Reading package lists... Done
E: You must put some 'source' URIs in your sources.list
15.10 에서는 주석 처리되지 않은 위치 deb-src에 /etc/apt/sources.list있는 모든 행 (약 10 개)이 있는 반면 16.04에서는 주석 처리 된 해당 행이 있습니다. 예를 들어 다음은 현재의 4 줄입니다 sources.list.
## Major bug fix updates produced after the final release of the
## distribution.
deb http://no.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://no.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
이 변경의 이유는 무엇입니까?
다음으로 /etc/apt/sources.listUbuntu를 다시 설치할 때마다 수동으로 편집하지 않도록하고 싶습니다 . 이 방법 ( deb-src줄 주석 해제 )을 자동으로 수행 하려면 어떻게 해야합니까?
python3-software-properties패키지는 파이썬 스크립트를 작성하는 데 유용 할 수 있습니다.
sed주위 스크립트.