Skip to content

Instantly share code, notes, and snippets.

@spchamp
Created April 29, 2016 22:58
Show Gist options
  • Save spchamp/507ad17f3ce264b2f8378eebe7b8510f to your computer and use it in GitHub Desktop.
Save spchamp/507ad17f3ce264b2f8378eebe7b8510f to your computer and use it in GitHub Desktop.
Apt sources.list for Ubuntu deb-src repositories
## via https://repogen.simplylinux.ch/generate.php
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### Ubuntu Main Repos
deb-src http://01.archive.ubuntu.com/ubuntu/ wily main restricted universe multiverse
###### Ubuntu Update Repos
deb-src http://01.archive.ubuntu.com/ubuntu/ wily-security main restricted universe multiverse
deb-src http://01.archive.ubuntu.com/ubuntu/ wily-updates main restricted universe multiverse
deb-src http://01.archive.ubuntu.com/ubuntu/ wily-proposed main restricted universe multiverse
deb-src http://01.archive.ubuntu.com/ubuntu/ wily-backports main restricted universe multiverse
###### Ubuntu Partner Repo
deb-src http://archive.canonical.com/ubuntu wily partner
@spchamp
Copy link
Author

spchamp commented Apr 30, 2016

This sources.list addition can be installed under /etc/apt/sources.list.d/ for accessing the Ubuntu upstream src packages in Debian package format -- e.g. via apt-get src. Note however that this may cause some overlap with existing deb-src repositories in a host's sources.list configuration

The sources.list as provided is configured for using US mirrors. For generating a similar sources.list with other mirrors selected, see also: Ubuntu Sources List Generator

For facilitating a manner of trusted source package access onto the upstream Ubuntu source package repositories, one may add any appropriate public key files to the local apt-key configuration, e.g:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 40976EAF437D05B5 3B4FE6ACC0B21F32

On event of error during key import, see also: How to fix the Ubuntu GPG Error BADSIG (Cached)

If http_proxy is set in the environment of the running process, gpg will use the value of http_proxy when retrieving the corresponding public key data.

This gist is also available via the URL http://j.mp/gist-ubuntu-src

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment