Hot answers tagged

182

Your sources.list really has duplicate entries. First Let's see the correct form of a repository line or source line: The correct format of repository source line is <type of repository> <location> <dist-name> <components> For example, a repo line can be like this one deb http://archive.ubuntu.com/ubuntu precise main ...


68

For Ubuntu 12.04 Graphically: Press Alt + F2 and paste software-properties-gtk (or you can open "Software Center" then go to "Edit" > "Software Sources"). Go to tab "Other Software", choose the duplicate entry and press the "Remove" button. If you need a command line option, here it is: cat /etc/apt/sources.list | perl -ne '$H{$_}++ or ...


54

If you want in one command and not use Software source ticking then in terminal put: sudo add-apt-repository universe On older versions of Ubuntu, you might have to use a full source line: sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe" To enable all Ubuntu software (main universe restricted multiverse) ...


46

Open your source.list using your favorite text editor, ie sudo nano /etc/apt/sources.list locate http://us.archive.ubuntu.com/ubuntu and replace it with http://archive.ubuntu.com/ubuntu.


44

sudo apt-get update and for every 16-character key that is reported as missing, run the following with the key substituted: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ABCDEFGH12345678


37

You can easily remove software repositories from the "Ubuntu Software Center" Open "Ubuntu Software Center" - Edit Menu --- Select "Software Sources...", enter your password ----- Select tab "Other Software" From the "Other Software" tab you can add or remove repositories.


35

Or from the terminal - sudo add-apt-repository -r ppa:<ppa to remove> Or, edit the /etc/apt/sources.list to find your ppa there, and remove from there manually (or automatically). Or, remove the ppa file from /etc/apt/sources.list.d in newer versions of Ubuntu.


33

First, open software center. Click on 'edit' and then 'software sources' to open the software sources window. Once that is open, check the box that says, "Community-maintained free and open-source software (universe)." Now, all the universe packages should show up in software center just like all the other ones. More information: How do I enable ...


30

GUI Way: Click on the ubuntu button, then search for "Software Sources" and go to the "Other Software" tab. Command Line Way: Open the sources.list file: gksudo gedit /etc/apt/sources.list Add the partner repositories by removing the # in front of the following lines (maverick is the version of your Ubuntu installation, it may differ) # deb http://...


30

The short answer: The APT preferences file /etc/apt/preferences can be used to control which versions of packages will be selected for installation. Here is the file /etc/apt/preferences, which apt-get use to decide, which version it's have to select if there are many versions of a single packge. With this, any package that comes from the local ...


29

The Multiverse repository contains packages (software) that is "not free" , referring to licensing restrictions. The Multiverse repository contains software which has been classified as non-free. This software may not be permitted in some jurisdictions. When installing each package from this repository, you should verify that the laws of your country ...


28

Another option available for newer releases of Ubuntu: sudo apt-add-repository multiverse && sudo apt-get update From the man page: Examples: apt-add-repository 'deb http://myserver/path/to/repo stable myrepo' apt-add-repository 'http://myserver/path/to/repo myrepo' apt-add-repository 'https://packages.medibuntu.org free non-free' apt-add-...


27

Yes, names of files in /etc/sources.list.d must end in .list for lines in the files to be taken as specifying software sources that ought to be used. Otherwise, the files may be taken to have a different meaning. sources.list From man sources.list (1): NAME sources.list - Package resource list for APT DESCRIPTION The package resource ...


22

The error indicates a malformed entry in a source file, which causes the update process to abort. To fix it, you have to either fix the entry (if you know what the right entry should look like) or remove it altogether (that's what I'm going to describe, as it's the fastest way to enable you to update your system again). First, you need to open the file ...


21

This command should do the trick sudo sed -i 's/http:\/\/us./http:\/\//g' /etc/apt/sources.list It will remove the 'us.' prefix in each of the addresses to convert them to addresses of the main server. Of course replace 'us' by any other mirror you are using. In depth explanation of command: sed - stream editor for filtering and transforming text. ...


20

I finally found answer myself. To put all ubuntu sources to work without clicking them just enter in terminal sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse" So for just "Universe" would be sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe" You ...


20

How bad are duplicate entries in sources.list? I don’t know how bad it is, but i don’t like sudo apt-get update showing me duplicate entries. By the way its not that bad, its just showing you that you have duplicate entries. SourcesList The sources.list file is a key factor in adding or upgrading applications to your Ubuntu installation. This is also ...


19

N.N. is correct, but let me give you an example: When a version of Ubuntu is released and is considered stable the stable release updates just don't get uploaded into the archive. So let's say a piece of software needs an update, after they go through the stable release update process they get uploaded to the "proposed" pocket. (Step 4 in the linked ...


18

Ubuntu Backports are enabled by default in Ubuntu. If for some motive you still don't get the backports use any of these 2 ways: Click the Ubuntu button on the launcher and search for "Software Sources". Search for "Software" if using 12.04+. Press ALT+F2 and Type: gksu software-properties-gtk Any of the 2 Ways will get you to the Software Sources ...


18

This repository should be enabled by default and is only available for 10.10 and up. Ubuntu Desktop In the Software Center (Applications -> Ubuntu Software Center) navigate to Edit -> Software Sources... From there navigate to the Other Software tab and ensure the Independent sources are selected Press close and allow the sources to reload. Ubuntu ...


16

Command-line/Server Instructions Backports are enabled by default, here's how you can check to make sure they are turned on. Ensuring Backports are enabled To enable the backports manually make sure the following line is in your /etc/apt/sources.list: deb http://archive.ubuntu.com/ubuntu release-backports main restricted universe multiverse ...


16

Edit /etc/resolv.conf. In a Terminal window run sudo gedit /etc/resolv.conf and add the line nameserver 8.8.8.8 and save. Then do ping www.google.com If this succeeds then run the following commands sudo apt-get --download-only --reinstall install resolvconf sudo dpkg --purge --force-depends resolvconf sudo apt-get install resolvconf If resolving ...


15

You can easily add them in the Software Center->Edit->Software Sources->Other Sources->Add" Start the Software Center. In the panel go to Edit and select Software Sources. In the tab Other Sources click on the Add button at the bottom. Add the deb URL in the APT Line input field and hit Add Source. Once you close the Software Sources window your ...


15

As of Ubuntu 12.10, you can run: sudo add-apt-repository universe Which is easier than running sed over sources.list files, and will take into account which of -updates/-proposed/-backports is enabled. You can go back with the --remove flag, but you'll still have to remove the packages: sudo aptitude purge '~i ~s universe/'


15

The partner repository is duplicated inside /etc/apt/sources.list and /etc/apt/sources.list.d/precise-partner.list. Just remove those "precise-partner" files as the partner repository is already present in sources.list. sudo rm /etc/apt/sources.list.d/precise-partner.*


15

Command Line Way of enabling Ubuntu software Repositories For 12.10 and above: To enable main repository, sudo add-apt-repository main To enable universe repository, sudo add-apt-repository universe To enable multiverse repository, sudo add-apt-repository multiverse To enable restricted repository, sudo add-apt-repository restricted NOTE: ...


15

apt-file is used to do a search of which package provides a file. Consider it the offline and somewhat limited version of http://packages.ubuntu.com. Since you used apt-file update without sudo, it cannot use a system-wide directory (typically /var/cache/apt/apt-file), and instead uses a directory in your home (~/.cache/apt-file). Searches by other users ...


14

Quite easy: Open the Software Centre Click Edit → Software Sources Find the Download From dropdown and select Other Choose the server you want: If you click Select Best Server, the USC will go through a load of tests to find the server that's fastest in your location. Generally it will be a server close by. For a lot more information on this, see ...


14

I think you are looking for pkg-config (with the dash), see dpkg -l | grep pkg-config.


13

Open dash and type Software sources then open software sources and click on the the universe repository . Close and reload cache



Only top voted, non community-wiki answers of a minimum length are eligible