This a command-line program for handling packages on linux.

learn more… | top users | synonyms

77
votes
5answers
34k 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 ...
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 ...
9
votes
2answers
3k 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 ...
8
votes
2answers
972 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
3answers
4k 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 ...
5
votes
3answers
8k 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
168 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
181 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
1answer
207 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
247 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 ...
3
votes
2answers
586 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 ...
3
votes
2answers
546 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
2answers
6k 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 ...
3
votes
1answer
6k 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 ...
3
votes
1answer
853 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
1answer
430 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
1answer
2k 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 ...
2
votes
2answers
3k 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
1answer
75 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 ...
2
votes
2answers
880 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: ...
2
votes
1answer
338 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
1answer
238 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
1answer
420 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
1answer
3k 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, ...
2
votes
1answer
101 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
2answers
4k 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" ...
1
vote
3answers
1k 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. ...
1
vote
1answer
162 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 ...
1
vote
1answer
43 views

How to configure apt-cacher for ftp

A few days ago i set up an apt-cache server. The clients are configured to use it as a proxy. This is necessary because we usually use ftp (and i also feals "cleaner"). So my apt.conf looks like this: ...
1
vote
1answer
57 views

apt pinning several packages in one section

Say I have a section in /etc/apt/preferences: Package: m4 Pin: release a=lenny-backports Pin-Priority: 1000 How do I add several packages more instead of copying a section again and specifying a ...
1
vote
1answer
1k views

How can I fix broken apt/perl libraries?

I've got a Raspberry Pi set up as a web server, everything all working well until 5 mins ago, and I seem to have messed up man-db, apt or some perl library. apt-get doesn't seem to be updating and ...
1
vote
1answer
184 views

How to install a package without marking it as manually installed?

How can I install a debian package but make apt consider it automatically installed? I.e. if I later run apt-get autoremove, this package would be uninstalled.
1
vote
3answers
6k views

Installing cURL on Ubuntu

Am trying to install cURL on my ubuntu server using the command sudo apt-get install php5-curl However i get the following error Reading package lists... Done Building dependency tree Reading ...
1
vote
1answer
72 views

Error on apt update: unable to connect to ftp.it.debian.org:http:

I have Debian Wheezy with kernel 3.2.0-3-amd64. Suddenly, from this morning (I'm italian), it's impossibile to correctly update the system via apt-get update. The system hangs on backport mirror deb ...
1
vote
2answers
418 views

Automatic update to 3.1.0 beta (2014-03-28 r65330) on Ubuntu 12.04

I am re-asking this question on behalf of ECII who originally asked it on stackoverflow but which got shut down: ...
1
vote
2answers
98 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 ...
1
vote
1answer
570 views

updating to PHP 5.3 on Debian 5.0 (lenny)

I need to update PHP on a rackspace server, currently the server use PHP 2.6, i followed these instructions, i added to lines to /etc/apt/sources.list deb http://php53.dotdeb.org stable all ...
1
vote
2answers
3k views

W: Failed to fetch 403 Forbidden error when running the command apt-get update

I was handed a laptop from a user who had been travelling in the Oceania region and attempted to run the command apt-get update however was returned the message W: Failed to fetch ...
1
vote
1answer
2k 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... ...
1
vote
1answer
1k views

APT unable to locate sun-java5-jdk

I have following Ubuntu: Ubuntu 12.04.1 LTS With following apt installed: apt 0.8.16~exp12ubuntu10.2 for i386 compiled on Jun 15 2012 14:41:15 This is content of sources.list: deb ...
1
vote
1answer
133 views

What mean “precise” in apt sources.list entry

I really tried to find in internet the answer but only thing that I found is that it determine architecture... But it not seems logical. So what "precise" mean in follow line? deb ...
1
vote
1answer
138 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 ...
1
vote
0answers
19 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 ...
1
vote
1answer
87 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 ...
1
vote
0answers
73 views

After debian downgrade all packages are in local or obsolete

I have weird problem: because, after downgrading from Debian jessie (testing) to wheezy (stable) - by changing sources.lost. Apt-get don't want to downgrade packages, but they are in Installed (local ...
1
vote
0answers
295 views

apt-get update still doesn't find autoconf

I'm using Debian Squeeze, was trying to update automake and then in the process of configuring found that autoconf was too old. Trying to install autoconf, I get this: apt-get install autoconf ...
1
vote
0answers
11 views

How to know if there's a newer package available in deb-src repo?

I added a deb-src line in /etc/apt/sources.list file, and build some of the packages from that repo using apt-get source -b $package_name. Now how can I know if there's a newer version available in ...
1
vote
1answer
92 views

Switching the source for the packages

Previous, my sources were these: deb http://http.kali.org/kali kali main non-free contrib deb-src http://http.kali.org/kali kali main non-free contrib I changed them to point to these: deb ...
1
vote
1answer
200 views

debian: how to install startup files using equivs-build?

I'm using equivs-build to package up some internal apps for distribution to our subsidiaries. Many require an equivalent script in /etc/init.d to kick off the app at boot. Questions: When I try to ...
1
vote
1answer
148 views

bitcoind failed to install on ubuntu 12.04

i was previously using ubuntu 10.04 and i tried to install bitcoind. this failed and i upgraded to ubuntu 12.04. when i run bitcoind it still doesn't work: $ bitcoind ************************ ...