You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community

How to Add a Repository to an Ubuntu Instance

edited Nov 9, 2022 9:04AM in Linux

To add a repository to a linux cloud instance running Ubuntu, add the details for the repository you wish to add to /etc/apt/sources.list or to the /etc/apt/sources.list.d directory. See this example from /etc/apt/sources.list:

deb http://ch.archive.ubuntu.com/ubuntu/ saucy main restricted

To update the local package index so it includes the new repository, run the following command:

(ubuntu) $ sudo apt update

You can now run apt commands to install or update packages from the repository.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!