Advanced Packaging Tool, package manager for Debian based distributions. It is also the most basic tool install packages in Ubuntu. Questions about using any of the apt tools, should use this tag.

learn more… | top users | synonyms (1)

42
votes
3answers
35k views

How do I get the source code of packages installed through apt-get?

I am assuming that all application installed through apt-get are open source; but for those that are available in that manner, where can I get the source code for these applications as well as update ...
35
votes
5answers
76k views

How to uninstall LibreOffice?

Which package should I remove to completely remove libreoffice? I have no need for office tools. That's the one gripe I have with package managers like apt, there's no simple way to perform the ...
31
votes
5answers
9k views

apt-get update only for a specific repository

When I add a ppa and I want to install some of its content is quite annoying to re-update all my apt list using apt-get update Is it instead possible to only sync the content of a given repository?
15
votes
4answers
34k views

How can I reinstall Apache HTTPD after deleting some of the configuration files?

I recently was messing around with my Apache config and wanted to reinstall so I could start from fresh. I followed some forum posts about reinstalling the apache2 package and this ended up deleting ...
17
votes
1answer
3k views

Why does my 64-bit system look for 32-bit repos?

I've got a 64-bit 12.10 install on my Laptop. When running apt-get update, it downloads package lists for 32-bit packages (as well as source and 64-bit package lists). Why does it look for 32-bit ...
11
votes
3answers
5k views

APT wedged by kernel version mismatch

Apt is seemingly unable to do anything useful for me, repeatedly giving messages of this form: dpkg: dependency problems prevent configuration of linux-server: linux-server depends on ...
13
votes
4answers
15k views

“debconf: DbDriver ”config“: config.dat is locked by another process: Resource temporarily unavailable” while installing packages

I'm trying to install the flashybrid but when I enter the apt-get install flashybrid command, I get this error: root@user-desktop:/home/user# apt-get install flashybrid Reading package lists... Done ...
8
votes
3answers
4k views

How to bypass/remove/disable the untrusted package authentication

First the image: then me saying "Say What!!.. How the..What the..??". Basically I am stunned. How can I disable/bypass/remove/explode the option for the untrusted packages not letting me install ...
16
votes
0answers
6k views

How to find and delete duplicated sources list entries? [duplicate]

Is there a command line to find and delete duplicated entries in the /etc/apt/sources.list file? or is this possible via synaptic perhaps?
44
votes
11answers
4k views

Can't update because the word prox* is blocked

I live in Ethiopia and the government blocks all urls with the word "proxy" in them. I couldn't use that word in the title above because that would make the url contain the word proxy. When I ...
15
votes
2answers
10k views

dpkg: error: parsing file '/var/lib/dpkg/available' near line 0

Been trying to install git-core package for almost more than half a day now. Everytime i do, I get this error: dpkg: error: parsing file '/var/lib/dpkg/available' near line 0: newline in field name ...
9
votes
3answers
31k views

How to resolve “Failed to download repository information”?

Whenever I try to install anything with the Ubuntu Software Center, the following error appears. Failed to download repository information Check your Internet connection. E:Unable to ...
3
votes
2answers
3k views

“The package lists or status file could not be parsed or opened”

Everytime I sudo apt-get update it always not complete and will say in the end E: Read error - read (5: Input/output error) E: The package lists or status file could not be parsed or opened. Same ...
13
votes
4answers
10k views

How to get the native version of Spotify running?

A while ago Spotify (the streaming music service) came out with a preview for Linux of their client. I had succesfully run it throughout 10.04. Now I'm on 10.10, I can't seem to find it in the ...
4
votes
2answers
2k views

How do I find all of my software sources?

Broken software dependencies are often caused by incompatible third party repositories. I am asked to provide a list of software sources (also known as software repositories). How can I quickly get a ...
0
votes
1answer
966 views

error occured while running sudo apt-get install -f

I get this error Sub-process /usr/bin/dpkg returned an error code (1) so I tried sudo apt-get clean and autoclean. When I ran sudo dpkg --configure -a: Errors were encountered while processing: ...
2
votes
2answers
6k views

How to download source code with apt-get?

I'm trying to download source code of certain packages, for example rhythmbox, for learning purposes. I want to do this through apt-get, with the apt-get source command. For some reason, apt-get ...
2
votes
0answers
178 views

“Malformed line 6” error in my /etc/apt/sources.list [duplicate]

Possible Duplicate: How do I remove a malformed line from my sources.list? I'm new to Ubuntu so I don't really know much yet. I encountered this problem while on the terminal: E: Malformed ...
35
votes
2answers
9k views

What is the difference between dpkg and aptitude/apt-get?

When installing a software via dpkg -i packageA.deb, will the dependencies required by packageA be downloaded and installed automatically? How is this different from using apt-get or aptitude?
17
votes
1answer
4k views

Should I use tasksel, tasks in APT or install regular metapackages?

Tasksel or plain Apt? In the past I've always used tasksel to install so-called "tasks". It seems, however, that this has been integrated in APT: apt-cache dumpavail | grep ^Task [...] snip Task: ...
16
votes
4answers
29k views

apt-get update very slow, stuck at “Waiting for headers”

I have looked at similar questions: Stuck at 0% [waiting for headers] (apt) apt-get update stuck on "Waiting for Headers" However neither one of them answer my problem. I am running ...
7
votes
4answers
96k views

Apt-Get Update: failure to fetch; can't connect to any sources

I realize there are dozens of "apt-get update: failure to fetch" questions (I read through all I could find), but my present circumstance is unique to 12.04 and it affects all sources; not just ...
6
votes
3answers
23k views

E: Unable to correct problems, you have held broken packages

I am using Ubuntu 13.04 which I installed few days back. I am trying to install nodejs and npm. I tried to install from command line first and then uninstalled it. Then something broke. sudo apt-get ...
5
votes
2answers
10k views

Installing Wine on 64 Bit

I have tried to install wine through the software center and terminal and I get this error. chris@ubuntu:~$ sudo apt-get install wine1.5 [sudo] password for chris: Reading package lists... Done ...
3
votes
3answers
5k views

apt-get 403 Forbidden

I've start a new job today and I am trying to set up my machine to run through their Windows server. I've managed to get a internet connection through the server now but now I can't run apt-get ...
6
votes
1answer
5k views

Unmet dependencies: linux-generic

Today I went over to my grandma because she had some problems with her computer, running Xubuntu 12.04LTS. After fixing 'the problem' (Firefox was set fullscreen..) I ran the usual apt-get update ...
5
votes
1answer
684 views

How can I duplicate my existing software packages on a new system?

I installed 12.04 in a separate partition. Right now, I would like to install the software that I have installed on my 10.04 in my 12.04 too. I was hoping there would be a workaround for this using ...
11
votes
0answers
19k views

How to fix “Duplicate sources.list entry” warning? [duplicate]

Every time I try to do some update (sudo apt-get update) it says: Reading package lists ... ready W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ need /partner amd64 Packages ...
6
votes
2answers
1k views

What does 'Lock Version' do?

Having installed an experimental version of dropbox and installed in manually, i dont want the deb in synaptic to download any updates (as theyll over write the changes ive done manually i assume). ...
4
votes
2answers
12k views

Stuck at 0% [waiting for headers] (apt)

On googling this error it seems that a lot of people are having this issue. apt-get upgrade hangs at 0% [waiting for headers] apt-get install apache2 hangs at 0% [waiting for headers]. Some apt-get ...
4
votes
3answers
5k views

Apt-get returning 'Sub-process /usr/bin/dpkg returned an error code (1)" error

I am facing a problem while installing any program. I get an error of Sub-process /usr/bin/dpkg returned an error code (1). Following is log of the output of apt-get -f install I am using Ubuntu ...
1
vote
2answers
2k views

How can I avoid “please insert CD/DVD” error when updating Ubuntu?

I can't update 12.04 LTS. The Update Manager shows this: CD/DVD 'Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)' is required Please insert the above CD/DVD into the drive ...
25
votes
2answers
3k views

Should I install programs from a source tarball (`.tar.gz`), from the Ubuntu Software Centre, or from elsewhere?

There are several ways to install an application in Ubuntu: You can download a source tarball (generally a .tar.gz or a .tar.bz2 file) and install it manually. (See How to install a .tar.gz (or ...
7
votes
5answers
17k views

How to fix “-5 No address associated with hostname error” while updating?

I am getting this error frequently while updating Ubuntu 12.04 LTS. How can I fix it? Log is: Ign http://archive.scrapy.org precise/main Translation-en Fetched 6,620 kB in 1min 21s (81.2 kB/s) W: ...
12
votes
4answers
892 views

How to determine the size of a package while using apt prior to downloading?

When using apt-get install <package_name>, and there are dependencies that need to be downloaded, the terminal outputs names of additional packages and total size, and asks for confirmation ...
5
votes
1answer
16k views

“E: Unable to locate package update” when I try to update my system, why?

I have almost an hour trying to update my installation, this is how I'm trying to do it: $ sudo apt-get install update [sudo] password for braiam: Reading package lists... Done Building dependency ...
5
votes
4answers
18k views

Old version of gcc for new Ubuntu

Is there a repository containing packages for old versions of gcc, for the latest Ubuntu. I want to install gcc3 alongside gcc 4, for programs that need gcc3 specifically.
-2
votes
1answer
152 views

How to solve Unable to locate package error

There are many question in which users face error: E: Unable to locate package ... . The following error while sudo apt-get install <package>: sudo apt-get install package Reading package ...
7
votes
3answers
38k views

'sudo apt-get update' error on Ubuntu 12.04

When I type in sudo apt-get update I get this: mohd-arafat-hossain@TUD:~$ sudo apt-get update [sudo] password for mohd-arafat-hossain: Ign http://bd.archive.ubuntu.com precise InRelease Ign ...
161
votes
4answers
126k views

How to upgrade a single package using apt-get?

How do I update a single package? As far as man apt-get says apt-get upgrade doesn't take a package/list of packages as parameter: upgrade upgrade is used to install the newest versions of ...
16
votes
2answers
7k views

easy_install/pip or apt-get

As noted in the Ubuntu wiki page on Rails it is recommended that gems manages your Rails/Ruby dependencies. What is the best practise with Python packages like Django? Should I install them through ...
32
votes
2answers
20k views

Why am I getting authentication errors for packages from an Ubuntu repository?

I'm experimenting with VPNs, so I wanted to install pptpd. john@desktop:~$ sudo apt-get install pptpd [sudo] password for john: <snip> The following extra packages will be installed: bcrelay ...
28
votes
3answers
23k views

How can I install a package without installing some dependencies?

I'm trying to install the package LaTeXila, and the output looks like this: $ sudo apt-get install latexila --no-install-recommends Reading package lists... Done Building dependency tree ...
16
votes
12answers
28k views

Installing Skype on Ubuntu 13.04 64-bit

Here is what I tried: $ sudo apt-get install skype [sudo] password for umpirsky: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could ...
14
votes
4answers
13k views

Installing suggested/recommended packages?

I ran the following code and got this package needs these packages, now it also says these packages are suggested, and theses are recommended. How do I get those up to install as well. ...
12
votes
8answers
11k views

How do I find packages to install via apt-get

After doing a man apt-get and cursory Google search it's not clear how I find new programs to install (from the internet) using apt-get (which is amazingly powerful and simple coming from another ...
9
votes
2answers
3k views

How to forbid a specific package to be installed?

Can I configure Ubuntu to never install a specific package even if it is required by another package I install?
6
votes
3answers
11k views

Can't install a package due to “Something wicked happened resolving” error

I'm following these instructions to install git on my laptop. When I do: $ sudo apt-get install git-core This is what my terinal shows: Reading package lists... Done Building dependency tree ...
24
votes
6answers
3k views

Why the software center doesn't allow multiple downloads?

I was wondering why the software center doesn't download all the requested apps and install one by one as they finish to download. Or instead why the software center doesn't download an app while the ...
8
votes
5answers
30k views

Solving the Ubuntu 12.04 Update Error: (-5 - No address associated with hostname)

Problem Description: Each time i try to download the updates for my operating system (Ubuntu 12.04) i get the following list of error messages: W:Failed to fetch ...