The Advanced Packaging Tool (APT) is a package management system for Debian, and a set of tools for manipulating that system.

learn more… | top users | synonyms

89
votes
5answers
45k views

Aptitude vs. apt-get: Which is the recommended (aka the “right”) tool to use?

Some time ago I read that aptitude is the preferred tool for installation on Debian-based systems. But when you search around on how to administer a Debian-based system, then aptitude is rarely ...
28
votes
2answers
21k 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 ...
15
votes
2answers
17k views

How to use Latest Python 2.7.x “The Right Way” on Ubuntu 12.04 LTS?

My project needs to stay current on Python releases, but 12.04LTS is currently stuck on 2.7.3, even though 2.7.5 is out now. Is there a way I can stay more current without manually compiling? We're ...
11
votes
2answers
21k views

Ignore all dependencies for a specific package with apt-get

This is a very specific question which google didn't help answering. I'm running Ubuntu 13.04 with apt 0.9.7.7ubuntu4 for amd64 compiled on Oct 3 2013 15:25:56. I want to install Erlang from a .deb ...
9
votes
2answers
5k views

How to tell apt that dependencies are resolved manually?

Let's say there is a software I don't want to install through apt, but manually. (TeXLive, because I want to use the 2011 release and apt only has the 2009 version.) Let's say there is another ...
9
votes
2answers
2k 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 ...
9
votes
1answer
310 views

Since when apt install can be used over apt-get install?

I've find recently that we can use the more recent apt install, remove... over the ancestral apt-get install. I didn't know that before. Because I have some scripts that install packages accross wide ...
8
votes
2answers
2k views

How do I list all packages from unstable / experimental?

I'm running a Debian testing system with some packages installed from unstable or experimental, using apt pinning. How can I list all packages that come from unstable or experimental? I'd like to use ...
6
votes
4answers
6k views

Test if a package is installed in APT

I want a shell script method to test/report if a package is installed. I don't need details, only boolean return to set logic flow. I looked at Find if a package is installed, but dpkg returns complex ...
6
votes
3answers
11k views

Install postgresql 9.3 on ubuntu 12.04

I am attempting to install PG 9.3 on Ubuntu 12.04 ---- Begin output of apt-get -q -y install postgresql-client-9.3=9.3~beta1-1.pgdg12.4+2 ---- STDOUT: Reading package lists... Building dependency ...
5
votes
1answer
5k views

Can I get dpkg to ignore an error returned from a post-installation script?

I am manually installing a .deb file (which I don't maintain) onto my Ubuntu system. The package has a post-installation script which erroneously fails, and therefore the package is considered ...
5
votes
2answers
2k views

Ignore packages that are not currently installed when using “apt-get remove”

I have a scenario where I'd like to remove a set of packages that may or may not be installed, and I'd like apt-get to remove those that are and silently ignore those that aren't. Something like: apt-...
5
votes
1answer
245 views

Upgrade from 10.04 to 12.04: apt/aptitude debug information

I have an issue mentioned here: during update from 10.04 to 12.04 The workaround: apt-get -f install -o APT::Immediate-Configure=false python-minimal seems to work, but there are two problems with ...
4
votes
2answers
278 views

How to find out which distribution package provides a given library

I am looking for a way to find for a given LDFLAG, like -lcryptopp, the distribution package that provides me with that that library, like libcrypto++-dev on Debian/Ubuntu. So far, I have looked up ...
4
votes
2answers
267 views

List of recently installed apt packages

I just spent an hour trying to solve dependencies to build freeCAD from their slightly outdated Wiki. Is there a way to get the packages I installed in the last hour or day with apt-get or aptitude? ...
4
votes
1answer
7k views

How to revert to older version of libc6 in Ubuntu?

I installed valgrind which replaced libc6 on my Ubuntu 12.04 system with a sligthly different version, which broke an application on my system. Can I somehow revert to the Ubuntu 5.1 version? If so, ...
4
votes
1answer
2k views

AWS Ubuntu 14.04 upgrade Python to 2.7.10, how to deal with apt-get python-dev

Ubuntu 14.04 from AWS ships with python 2.7.6. Before doing anything else to the image, I do an upgrade to 2.7.10 by issuing sudo apt-get -y install build-essential checkinstall libreadline-gplv2-...
4
votes
1answer
264 views

Automatic update of debian

I have a parc of identical debian wheezy machines. They are competely identical hardware & software except the IP address and some VPN keys. I want to update these machines completely ...
3
votes
2answers
388 views

Is it possible to determine how a package was installed on debian?

Is there a way to find out how a package was installed on Debian? I.e. see if it was manually installed or which package pulled it as a dependency. This information should be available somewhere (e....
3
votes
1answer
918 views

How to get latest version of git?

I am running Ubuntu 14.04 LTS, need to install GIT 1.9.5 or above. I did sudo apt-get install git then ran git --version and it shows I currently have 1.9.1 installed. Git download url shows latest ...
3
votes
2answers
868 views

How do you get rid of the quote of the day / fortune messeges each time you open a new console?

I have an ubuntu computer. Each time I open the console there is some animal in ascii art and a quote. How can I uninstall this and get a normal command line? All accounts have this, so it is ...
3
votes
1answer
283 views

How to list installed packages that depend on another installed package in Debian?

I am on Debian (testing). How can I list all installed packages that depend on another installed package? I would prefer to do this using either dpkg or apt, but if another tool (or combination of ...
3
votes
1answer
922 views

What is the difference between apt-get install php-apc & pecl install apc?

Wanted to setup APC php cache to a fresh 12.04 precise ubuntu box. Do apt-get install php-apctotally replace apt-get -y install libpcre3-dev; sudo pecl install apc? If not what are the differences?
3
votes
2answers
4k views

How to download .deb package and all dependencies?

For all answers i found about this topic, the solution was to create, in a certain computer A where i need to install the package, a file containing all dependencies it needs and then downloading it ...
3
votes
1answer
636 views

Debian - package is installed already but apt says “depends: x but it is not going to be installed”

I don't have a lot of experience with debian. I am troubleshooting a friend's debian squeeze setup who probably pasted both squeeze and wheezy sources in his sources.list. Since then I have corrected ...
2
votes
3answers
2k views

Apt / Deb Support in Fedora

I want to have some apt / debian support in Fedora 18. I know how to use yum, and I like it. But not all packages / repositories are available for it. So, I wanna install apt (apt-get) to my Fedora. ...
2
votes
1answer
971 views

wget throws a 'missing url' when trying to install a repository signature key

I am installing INetSim on Ubuntu and when running this command to install the signature key for the program: sudo wget -O - http://www.inetsim.org/inetsim.org-archive-signing-key.asc | apt-key add - ...
2
votes
2answers
6k views

Installing VMWare Player on Kali linux

This question has changed drastically since the first time I posted it, so I have deleted the old content. I downloaded the latest version of VMWare player and when I try to install it I get the ...
2
votes
2answers
257 views

Script answer to apt-get request “To continue type in the phrase 'Yes, do as I say!'” in bash

My script is replacing sysvinit with systemd inside a chroot while building a debian image with debootstrap. Since this is a "dangerous" action, apt-get will ask a silly question: "To continue type ...
2
votes
1answer
3k views

Dependencies problems installing openjdk on Ubuntu

I try to install openjdk-7-jre: sudo apt-get install openjdk-7-jre But I have dependencies problems: Reading package lists... Done Building dependency tree Reading state information... ...
2
votes
1answer
462 views

how to copy a linux mint apt mirror

I have a linux mint install that will be placed on a private network without internet access. Is it possible to download an Apt mirror for Mint and place in on a server in the private network so that ...
2
votes
2answers
109 views

Cannot install SSH server on Debian Jessie

I made a fresh install of Debian today and now I am trying to install the SSH server so i can connect to the machine remotely. When I do apt-get install ssh it shows me that packages cannot be ...
2
votes
1answer
419 views

How to block the installation of unsigned packages in Debian by default?

I was wondering which option in apt.conf will block by default the installation of packages with invalid signatures. I'm using Debian Wheezy 7.6 Thanks!
2
votes
1answer
2k views

Where I can find a repository for an old version of Ubuntu [duplicate]

I am using raring and just noticed that I can't install packages any more (404). I checked a couple repositories and raring is not there. Turns out it's been EOL'd, at barely 10 months old, it seems a ...
2
votes
1answer
702 views

Debian: Version number of installed package differ from those in repository causing dependency issues

I can't install libav-dbg due to dependency issues with version numbers of installed packages, that do not correspond to those in the repository. How is this possible, and how can i resolve the issue? ...
2
votes
2answers
5k views

How to download and install specific version of sun-java6-jdk on ubuntu

I am using Ubuntu version 12.04 (via VM) I downloaded and installed java: sudo apt-get install python-software-properties sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" ...
2
votes
1answer
40 views

Mark package as installed?

I've manually compiled openssl and ofcourse it works. Apt does not see the package as being installed. After that i've been trying to download stuff using wget. Everytime when i tried downloading ...
2
votes
5answers
5k views

Linux Mint “PPA does not support trusty”

ta to the repostitories list in Linux Mint 17.3 but cannot seem to get it to add! I get the error: 'This PPA does not support trusty' Cannot add PPA: ''This PPA does not support trusty' I have ...
2
votes
1answer
272 views

Installing libsdl2-dev on Kali 3.18.0 amd64

I'm trying to wrap my head around how to install the libsdl2-dev package on Kali 3.18.0 amd64. I can see that the package is available in the standard Kali repository here: http://http.kali.org/kali/...
2
votes
1answer
2k views

How can I fix this apt kernal-image state?

The update manager hung during a recent Ubuntu update and I had to kill it. This left a couple of lock files in /var/... which I deleted. I now have a lot of scary errors. If I run dpkg --configure -...
2
votes
0answers
27 views

Run a script after a package is upgraded automatically

I made a script that modifies chromium-browser package, but when it was upgraded, the modification was lost, and I have to run the script again manually. Is there a method to make apt run this script ...
2
votes
1answer
939 views

python2.7: can't open file '/usr/lib/python2.7/py_compile.py'

I'm getting lot's of error with apt-get. I've tried to install package manualy but everything seems stucked. mio@vm:~$ sudo apt-get install --reinstall python2.7-minimal Reading package lists... Done ...
2
votes
0answers
906 views

How can I skip the root password prompt when installing mysql-server?

I am writing a bash script that involves installing the mysql-server package on Ubuntu. The package interactively asks the user for the root MySQL password desired, however this is not good for me as ...
2
votes
1answer
175 views

Mirror apt repository that uses .bz2 files

I'm currently trying to set up a mirror for several apt-repositories that use Packages.bz2 files instead of regular gzip. Unfortunately, apt-mirror on Ubuntu always tries to fetch Packages.gz files ...
2
votes
1answer
2k views

There is no public key available for the following key IDs: 7638D0442B90D010

I try to add the debian sid source on ubuntu 12.04 LTS. I have already installed debian-keyring debian-archive-keyring. $ apt-cache search keyring | grep debian debian-archive-keyring - GnuPG archive ...
1
vote
2answers
2k views

Debian: updating package lists with apt-offline, --simulate not understood for apt-get update

I can't use apt-offline to update my package lists, which means that I will get many 404s when trying to install older versions of packages that it thinks it's downloading from the .sig file it ...
1
vote
1answer
230 views

Removing libsqlite3-0 deletes Ubuntu

I have Ubuntu 13.04 in a Virtualbox, and getting SQLite header and source version mismatch In fact, for completeness, it's part of a wider problem with SVN, where svn update responds with E200029:...
1
vote
1answer
23 views

Finding base packages with APT?

This has been bugging me for a while now. If I want to install the xfce desktop environment for example, I can use apt-cache search xfce - but this gives me 500 results, when all im looking for is ...
1
vote
1answer
2k views

Do online repositories for ubuntu/mint releases disappear after it goes out of support?

I'm using Linux Mint 13 (Nadia), which is based on Ubuntu 12.04 (Quantal), which went out of support since May 2014. I'm getting 404's when I try to update or install any package. After googling I ...
1
vote
2answers
248 views

Automated apt-get upgrade quits midway

I set root's cron to automatically run apt-get upgrade. Easy enough. Here's the specific line: @daily (apt-get update && apt-get -y upgrade) 2>&1 > /var/log/tmp.log However, I've ...