apt-get is a command-line interface to the Advanced Packaging Tool (apt) which is responsible for installing, removing, and upgrading packages.

learn more… | top users | synonyms

27
votes
2answers
20k views

How can I check the version of packages to be installed with apt-get?

After running apt-get upgrade, I get a list of the packages that will be upgraded. I would like to know the version number for one of these packages. (Not the current one but the one that will be ...
16
votes
1answer
36k views

Why use the command apt-get --purge remove over apt-get purge in Linux?

I have been uninstalling applications as well as removing or purging their configuration files using the command apt-get --purge remove {package_name}. I have come across several posts on the net ...
15
votes
2answers
2k views

Why does apt-get sometimes asks for confirmation?

Sometimes it does this: After this operation, 713kB of additional disk space will be used. Do you want to continue [Y/n]? And sometimes not, and just assumes 'yes' and downloads automatically (I ...
11
votes
4answers
17k views

When would you use apt-get remove over apt-get autoremove?

I understand that apt-get remove removes packages and apt-get autoremove is to remove any packages that were installed to fulfil a dependency for a given package. So for example if I installed ...
10
votes
1answer
15k views

How to find installation path for packages installed through apt-get in Ubuntu?

I have been installing python modules using apt-get which works great using the console or launching files from the command line. However I am using Eclipse for easier organisation of files. Eclipse ...
9
votes
3answers
11k views

How to find out which versions of a package can I install on APT

Using APT, you can install a specific version of a package using: apt-get install package=1.0 But you can't do apt-get install package=1.* So, how can I find out which versions are avaliable for ...
9
votes
6answers
39k views

Installing sun-java6-jdk with apt-get on Ubuntu 10.04

I have followed the instructions on numerous pages, such as this, which say to run the following commands: sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" sudo apt-get ...
6
votes
2answers
5k views

Trouble getting latest version of Git

I am using Ubuntu 10.04 LTS. I'm looking at using git as source control for personal projects and Github as a remote repository. I was having trouble pushing a commit to my remote github repo getting ...
6
votes
4answers
4k views

When you do “apt-get install” where are the .deb files stored?

I am trying to copy all of the packages I have installed on one Debian machine to another Debian machine without doing another apt-get install and downloading all of the package all over again.
6
votes
2answers
825 views

How can I create an alias for apt-get?

I remember that on one Debian system, I used apt install package to install a package. It asked for a password afterwards and was more convenient than sudo apt-get install. Now I am not sure how I ...
6
votes
1answer
3k views

Getting R 3.0 in Ubuntu

I am currently using R 2.15.3 (Security Blanket) in Ubuntu. R 3.0 is already released, but I could not update to it using apt-get. Will there be any trouble if I install it from tar.gz from cran ...
6
votes
1answer
5k views

installing the latest R version (2.13.0) on Ubuntu 11.04

I just upgraded my Ubuntu desktop 10.10 to 11.04. I everything works fine except when trying to update the current R 2.12.1 to R 2.13.0. I followed the readme: ...
5
votes
1answer
5k views

How do Ign and Hit affect apt-get update?

My understanding of Ign and Hit which are displayed in the output of the command apt-get update is that Hit: File found. No change in its timestamp and Ign: File ignored. No change in its content.. ...
5
votes
2answers
3k views

Is it safe to install Ubuntu packages on Debian?

I've found online guides to adding Ubuntu PPAs and repositories to a Debian system. Is this a bad idea? If so, why?
5
votes
1answer
320 views

Unable to install Imagemagick on Ubuntu 12.10

I've got a virtual machine running on Ubuntu 12.10. When I try to run apt-get install imagemagick I get several 404 errors: Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libcups2 ...
4
votes
2answers
2k views

Can I make apt-get always use --no-install-recommends?

A bit of background, feel free to skip this paragraph if you don't care. I have a bit of academic experience with linux and unix from college but I'm still somewhat of a n00b because I was always a ...
4
votes
3answers
267 views

How do I list the files installed by a deb package?

I'm an Ubuntu user and I install packages with the apt-get. For example: sudo apt-get install hadoop-0.20 After I install the package, there will be files in /usr/bin, /usr/lib/hadoop etc. Are ...
4
votes
2answers
3k views

How to upgrade to latest git on debian 7?

I have installed git through apt-get on debian 7 which gives me: # git --version git version 1.7.10.4 I would like to ugrade to the latests version of git. I have tried: sudo apt-get install ...
4
votes
2answers
18k views

Can apt-get be used on Red Hat systems?

We know that apt-get is used on debian based systems so what is used on Red Hat Enterprise Linux (RHEL) systems? Is it possible to install and use apt-get on Red Hat?
4
votes
2answers
6k views

How to fix“error while loading shared libraries: libgl.so.1”

After I run this command dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P I got the problem while opening smplayer,cairo-dock,unity-2d-shell and amdconfig ,"error while loading shared ...
3
votes
2answers
2k views

Is it possible to install Gentoo portage manager (emerge) on Ubuntu?

And vice versa? For example install apt-get on Gentoo and connect Ubuntu's repositories. And if it is possible how can I do it? (at least in general terms)
3
votes
4answers
56 views

How to find out what files will be installed in the filesystem when installing a package with aptitude?

In my case I want to do aptitude install wireless-tools but want to know which files will be installed and where in the filesystem before I install the package.
3
votes
1answer
1k views

Catch 22: need apt-utils to install apt-utils?

I was trying to install something else when I ran into this problem. So I tried to install apt-utils to solve it. But I couldn't install apt-utils, because well, my console tells me I don't have ...
3
votes
1answer
741 views

Does hitting CTRL-C when a package is being downloaded and installed via apt-get stop the process?

If I run the command apt-get install [package_name] and hit CTRL-C mid process, does it stop the installation and roll back to its original state?
3
votes
2answers
1k views

Failed to symbolic-link /boot/initrd.img-3.2.0-24-generic to initrd.img: File exists

Since running an upgrade today I am no longer able to use apt-get. Case in point: sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state ...
3
votes
1answer
3k views

Postgresql has broken apt-get on Ubuntu

On ubuntu 12.04, whenever I try to install a package using apt-get I'm greeted by: The following packages have unmet dependencies: postgresql-9.1 : Depends: postgresql-client-9.1 but it is not going ...
3
votes
1answer
1k views

Why does apt-get remove gnome if I remove a package?

If I remove transmission-gtk it shows a long list of packages. It want to remove gnome completely. Is there a meta package I can install to keep my system together and I can remove an application that ...
3
votes
1answer
780 views

Nothing happens when trying to upgrade from Linux Mint 12 to 13

I am trying to upgrade from Linux Mint 12 to 13 using apt-get. After running the following commands, nothing seems to happen. I am fairly new to linux, what am I doing wrong? user@olympus ...
3
votes
1answer
677 views

zsh completion after installing/removing packages

How does zsh figure out currently installed packages on Debian, and how can I update that information? After running apt-get install, zsh won't autocomplete that package as a possible parameter for ...
3
votes
1answer
412 views

Alternatives to Gentoo Prefix?

Are there any package managers that: work without root privileges, and install packages at a custom location (similar to ./configure --prefix), and install stable packages (unlike Gentoo Prefix ...
2
votes
4answers
6k views

“Packages can't be authenticated” during apt-get install on Ubuntu 9.04

I am trying to download gcc using apt-get install on Ubuntu 9.04 Jaunty, but when apt-get is trying to download the file I receive an error: WARNING: The following packages cannot be authenticated! ...
2
votes
5answers
309 views

What are the differences between installing Python via apt-get and compiling, installing from source?

If I choose to install Python by typing: apt-get install python3.1 python-dev Are there any differences between compiling and installing from source? Would the source code include everything in ...
2
votes
3answers
254 views

Is there a shortcut to run a suggested command in a terminal?

If I type in a command for a program that is not installed I might get a message like this: [user]~$ program The program 'program' is currently not installed. You can install it by typing: sudo ...
2
votes
6answers
849 views

How to network-ify an Ubuntu Server VM

I am creating an Ubuntu Server VM with VirtualBox. This morning I created the VM (with Networking configurations shown below) and installed the guest OS from an ISO. I just logged in for the first ...
2
votes
2answers
207 views

How to prevent Ubuntu/Debian users from accessing apt-get or downloading from the web, etc?

Is it possible to have a user in Ubuntu/Debian that does not have access to synaptic, apt-get, dpkg and cannot even download anything from the Web, but has root privileges otherwise? Original post ...
2
votes
2answers
2k views

Problems with apt-get(unmet dependencies)

I am using Ubuntu Desktop 12.04(64 bit). I have downloaded skype from the official website and opened the deb package from the terminal(sudo dpkg -i skype-ubuntu-precise_4.1.0.20-1_i386.deb) but ...
2
votes
1answer
1k views

How to install lsof on Debian/kFreeBSD?

How do you install lsof on Debian/kFreeBSD Testing (Wheezy/Sid)? $ apt-get install lsof Package lsof is not available, but is referred to by another package. This may mean that the package is ...
2
votes
1answer
1k views

Grab all dependencies from apt-get for offline install (Ubuntu 11)

How do I use apt-get to install a package on an offline computer? With a separate (connected) computer, I can use apt-get --download [package] to pull the package I'm interested in but this fails to ...
2
votes
2answers
5k views

Add to sources.list with a command? (not a redirect or text editor)

I'm using Debian stable (squeeze) and found this command add-apt-repository but it's not found when I try use it. I'm sure I've used a command before which added a repo but I can't remember what it ...
2
votes
1answer
42 views

Reinstalling package after manually removing directory

I was trying to properly configure nginx, but after many modifications I messed up so much that I decided to remove the package with sudo apt-get --purge remove nginx - but the nginx directory was ...
2
votes
1answer
128 views

apt-get wants to remove MariaDB on Debian Wheezy

I've set up my server to use MariaDB and used the installation instructions on the web page. It worked quite well. Now, if I want to dist-upgrade, apt-get wants to replace MariaDB with MySQL: The ...
2
votes
1answer
1k views

Can't install any software anymore on ubuntu

I'm unable to install or remove any software package on Ubuntu. No matter how many times I try "apt-get -f install'. -- jeroen@jeroen-panda:~$ sudo apt-get -f install Reading package lists... Done ...
2
votes
1answer
635 views

Troubles using apt-get install with home on NFS share

I am trying to install a bunch of packages using apt-get install on a VM running Debian 5.0.9 (Lenny). What makes this endeavor frustrating and difficult is the fact that my home directory on this ...
2
votes
2answers
2k views

Can I install Ubuntu apt-get packages offline?

I have installed Ubuntu 11.04 on my system. I don't have any Internet connection to the system. How can I install various packages? Is there a package collection available as CD/DVD (which I can ...
2
votes
2answers
796 views

GPG error when updating Linux Mint 9

When i run sudo apt-get update, i get the following error W: GPG error: http://ppa.launchpad.net lucid Release: The following signatures couldn't be verified because the public key is not ...
2
votes
2answers
542 views

Want to hold a package from upgrading. Don't work

I'm having a xen box which runs squeeze. the linux-image-2.6.32-5-686-bigmem never upgrades properly and I want to stop it from upgrading any more. It's annoying that it tries and fails every time I ...
2
votes
1answer
657 views

apt-get install: Error: Timeout was reached?

What has gone wrong if this error message appears AFTER apt-get has finished downloading and installing packages? ... Processing triggers for menu ... Error: Timeout was reached Edit: This ...
2
votes
1answer
2k views

How can I install gfortran 4.6 in Ubuntu 11.04?

I am running Ubuntu 11.04. I wanted to install gfrotran 4.6 on my system. Can anyone please explain (show all) steps required to install gfortran 4.6 on ubuntu 11.04? I did the following: sudo ...
2
votes
1answer
793 views

Cannot start Postgres daemon after installing with Yum

I was trying to install Postgres 9.1.4 on Fedora 17 using Yum. If I do: sudo yum install postgres-libs sudo yum install postgres sudo yum install postgis All the installs appear to complete ...
2
votes
1answer
154 views

Can I fetch a .deb, plus all .debs it depends on?

I'm running a rather restricted virtual ubuntu environment on a virtualization platform that doesn't yet support networking. I need to benchmark a compilation, but my guest does not have ...