APT (Advanced Packaging Tool) is the standard software package management system for Debian and its derivatives.

learn more… | top users | synonyms (1)

6
votes
3answers
1k views

Get diff changes between original files installed with apt and current files

I installed php5-fpm package using apt; then I made some changes to the PHP configuration files. Now I would get the diffs between the original files versions (the ones of the package installed) and ...
6
votes
1answer
2k views

How to safely resume an aptitude dist-upgrade after SSH timeout?

I started aptitude dist-upgrade over SSH on my local network. At some point the session timed out but the upgrade was not finished (it was left at one of those accept software agreement screens-- I ...
6
votes
2answers
1k views

Finding an earlier version to downgrade to

On my Debian server, I upgraded the SQLite package to version 3.7.7 but discovered that it contains a critical bug that breaks several things including my Subversion repository. So, I would like to ...
6
votes
1answer
2k views

apt-get -f install is stuck on “corrupted filesystem tarfile”

I am having issues with apt-get on my Raspberry Pi. This is the output when I try and install a package: pi@raspberrypi ~ $ sudo apt-get -f install cowsay Reading package lists... Done Building ...
6
votes
3answers
916 views

Managing unofficial repositories on a Debian system

A few years ago I added this repository to my sources.list: http://www.deb-multimedia.org/ because it contained packages like acroread or flash player, which were either missing or out of date in ...
6
votes
1answer
593 views

Block a package from being uninstalled in APT

In short, I want to be able to set package abc so that: apt-get remove abc should fail. apt-get purge abc should fail. apt-get upgrade abc should work. If the package dependencies change so that ...
5
votes
4answers
13k views

how to work around APT's “Release file expired” problem on a local mirror

I have a local mirror (created with debmirror), and when I try to do a cache update (apt-get update) after a few days, I get this: E: Release file expired, ignoring ...
5
votes
2answers
16k views

Packages still not found even after apt-get update

I am working on a Linux Mint 16 computer and since recently, every time I want to install something via apt-get install, the log message says that the packages couldn't be authenticated. I go ahead ...
5
votes
3answers
4k views

apt-get equivalent of yum localinstall

When using Fedora I usually use yum localinstall as a way to install a rpm obtained outside the distribution repositories. I can't find an equivalent option in the apt-get man page. I'm running Ubuntu ...
5
votes
6answers
6k views

Can I use `apt-get` to upgrade to the latest version of Nagios?

At the time of this writing the latest version of Nagios is 3.3.1. I am running Ubuntu 10.04 and have used apt-get update; apt-get install nagios3 to end up with version 3.2.0. I know there are a lot ...
5
votes
1answer
2k views

The difference between deb versus deb-src in sources.list

I don't understand the difference between these two lines in my sources.list, please explain: deb http://mirror.optus.net/debian/ testing main contrib non-free versus deb-src ...
5
votes
1answer
1k views

How can I install more recent versions of software than what Debian provides?

Suppose I want a more recent version of software than is available for my current version of an operating system, what can I do? Cases to consider: There are semiofficial/official sources of ...
5
votes
2answers
790 views

Does “apt-get purge” remove config files stored in user home dir?

I used sudo apt-get purge [package_name] and sudo apt-get autoremove --purge to remove an application so that on reinstalling it gets back to default configuration. But it didn't work, all ...
5
votes
2answers
779 views

How do I find installed packages that have no install candidate?

I'd like to retrieve a list of installed packages that have no install candidate (e.g., because I removed an apt source file entry). How would I do that on Debian-based systems?
5
votes
2answers
5k views

How to undo sudo add-apt-repository?

I run sudo add-apt-repository ppa:noobslab/indicators to install my-weather-indicator but it requires GTK3 and I don't want to proceed. So I'd like to undo that command. I'd checked my ...
5
votes
1answer
2k views

How to reinstall apt on Debian?

I accidently removed apt-get from my Debian system by issuing: dpkg --force-depends --purge apt How can I reinstall it?
5
votes
1answer
474 views

Conflict? dpkg, apt, apt-get, aptitude, and synaptic

So, I ssh into a (very) remote Ubuntu 10.4 server to do some admin and web dev+design. And I was looking through the various package manager options. There's a lot. The big ones are dpkg, apt, ...
5
votes
2answers
744 views

What's up with this 'gnome' package?

I have recently grown tired of the way Rhythmbox starts up every time I plug in my MP3 player. I know I could simply disable this, but I've decided to uninstall Rhythmbox instead. It's such a ...
5
votes
1answer
121 views

apt-get - How to complain on failed upgrade?

I'm trying to write a script to upgrade a bunch of remote machines and would like to verify that one package in particular is upgraded. With yum, I could say yum upgrade specific-package, and it ...
5
votes
2answers
263 views

Find out what 'apt-get install' did

This might be a really newbie question but here we go: How can I find out what commands a package ran to install the software with apt-get install <package>? For example, if I install a ...
5
votes
1answer
67 views

How does APT deal with different programs with the same name?

I decided to finally learn vi and as I was doing that I realized that vi wasn't behaving as I expected. I learned from another post that this was because, on Ubuntu, vim-tiny is installed by default. ...
5
votes
1answer
13k views

How can I completely reinstall mysql?

I had to reboot in the middle of a large data import. I only have one mysql database, which has now been corrupted. How can I completely remove mysql and reinstall it? I've tried apt-get purge ...
5
votes
1answer
369 views

Download package via apt for another architecture

I am currently in a architecture amd64, so when I try apt-get download vlc, it downloaded the appropriate architecture for my system, but how can I download the i386 version via apt? It's for ...
5
votes
2answers
154 views

How to install Suggests dependencies of a package

If I want to install a package and its Suggests dependencies, I run: $ sudo apt-get --install-suggests install <package name> However, if <package name> is already installed, and not ...
5
votes
3answers
647 views

Yum and recommended/suggested packages

I'd like to install a software package on my Fedora System, but it has a lot of unreasonable dependencies (which I know for sure they are not actually required). I used to work on Debian, where ...
5
votes
1answer
10k views

Not able to lock /var/lib/dpkg/lock (read only)

I was trying to install ruby on my remote server(this is a vm machine(debian) in a esxi server . ) I got this error: The Command: sudo apt-get install ruby1.8 Error : W: Not using locking for read ...
5
votes
3answers
1k views

Reset dselect selection before package installation

I was looking through the list of packages with dselect, but pressed Return twice by mistake, thereby making it confirm and quit the [S]elect option. When I go to the [I]nstall option, it's now ...
5
votes
4answers
5k views

Apt-get autocompletion

I am currently running 64-bit Debian Wheezy. I am having some trouble with auto completion for apt-get. I have bash-completion installed. If I am logged in as root in a shell, I can use auto ...
5
votes
1answer
96 views

How can I see when package has been upgraded?

Is there a way to see the upgrade history with date with some program e.g. apt? I want to know when exactly I upgraded security relevant packages the last time and the time before that... Thanks a ...
5
votes
1answer
49 views

What are the numbers after the version in the output of apt-cache policy?

This is the output of apt-cache policy firefox firefox: Installed: 26.0~linuxmint1+lmde Candidate: 26.0~linuxmint1+lmde Version table: *** 26.0~linuxmint1+lmde 0 500 ...
5
votes
1answer
138 views

How to stop `apt-get` complaining about unmet dependencies when I manually install the software from source? [duplicate]

I have been installing some applications onto my Debian system. Now there are some that have dependencies that I do not want installed with the applications at the moment. I have managed this by using ...
5
votes
1answer
3k views

How to I install zabbix-agent over apt-get

Why is it that on my Ubuntu 13.04 system I can easilly install zabbix-agent by doing apt-get install zabbix-agent. When I do it in Debian 7.1, it says that the package zabbix-agent can not be found. ...
5
votes
2answers
4k views

How do I fix broken libxml2-dev dependency on Debian using apt?

When I run sudo apt-get upgrade on my Debian Squeeze install, I get the following error: You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: ...
5
votes
1answer
5k views

Fix held broken packages on debian?

I want to begin exploring moving myself away from google apps, because it's expensive, and it looks like citadel has all of the groupware functions I need. So I am trying to install citadel-suite ...
5
votes
2answers
3k views

Debian: Is it possible/safe to install packages from an older version of the repository?

I'm currently running Debian testing (Wheezy) and am trying to get SCIM working. I want to install the scim-pinyin package, but there is no such package available in the testing repository, although ...
5
votes
2answers
5k views

Enabling apt repository priority in LMDE

I want to set up apt repository priority ordering in Linux Mint Debian Edition 2012.04. In /etc/apt/preferences the order should be: LMDE -> Debian testing -> Debian unstable. In other words, I almost ...
5
votes
3answers
4k views

How can I upgrade MySQL in Debian using apt-get?

I'm using the Turnkey Linux virtual machine. The version of Debian in there is apparently on the "Wheezy" upgrade path (if that's what you call it). I'm not completely comfortable with Linux, as you ...
5
votes
1answer
693 views

Output visual (ASCII) Debian dependency tree to terminal?

I'm not sure if this is more of a SuperUser or UnixLinux question, but I'll try here... Recently, I found this: #710689 - aptitude: use unicode character in the trees - Debian Bug report logs It ...
5
votes
1answer
124 views

To not autoremove something

I have uninstalled my distro's (Debian Wheezy) package of torchat, and use a newer version I've built myself. Since removing the package apt-get wants me to autoremove something which the software ...
5
votes
1answer
962 views

Command & binary exists but cannot be executed

I transfered /etc/* files from one Linux server to another and now I have a strange error. Both are Debian Squeeze. When I run a command, e.g. ssh, I get an error: bash: /usr/bin/ssh: No such file ...
5
votes
2answers
3k views

How do I install mod_pagespeed using apt-get?

I remember seeing an article at one time on how to do this, but now I can't find it. I have seen other install directions. I want to make sure I can easily update it via apt.
5
votes
1answer
463 views

Firefox circular-dependency hell on Linux Mint 13

Having difficulty re-installing Firefox, after an installation to resolve places.sqlite issues. It appears that I'm trapped in circular dependency hell. Need to resolve firefox dependency hell to ...
5
votes
1answer
745 views

Noninteractive script running over ssh is interrupted as apt-get finishes

When I run the following non interactive script on Ubuntu Server 13.04 it's interrupted when lxc-docker package finishes installation. Script : ssh -o StrictHostKeychecking=no -t -t -i $CERT ...
4
votes
5answers
284 views

Correlating filename with package

Say, I'm given a filename like libasound.so.2. Is there a way to query the package manager to correlate the filename with its corresponding package? I'm interested to get answers for any package ...
4
votes
3answers
3k views

Make apt-get update and upgrade automate and unattended

I have about 7 Debian servers I manage, and I would like to set them to automatically update themselves. So, I created a script as such: #!/bin/sh apt-get update apt-get upgrade and placed it on ...
4
votes
3answers
892 views

How to list currently not installed packages?

I'd like to output a list of all, currently not installed, packages (they are visible in Synaptic for example) using only shell commands. How do I do this?
4
votes
4answers
167 views

Is it possible to determine what is inside Debian package without installing it?

I need a markdown library for development - based on package names I could not understand which one I should install... den@playground:~$ sudo aptitude search markdown p html2markdown ...
4
votes
2answers
825 views

how can I change what the command “apt-get update” looks for when executing the update?

Forgive my incompetence I am still new to GNU/Linux. I use Debian wheezy. When I type apt-get update I get this at the end W: Failed to fetch ...
4
votes
1answer
2k views

Aptitude on Debian 6.0.4 “media change” to CD ROM

I've just installed Debian 6.0.4 on VirtualBox, and I'm trying to install g++. So, into the terminal I typed: aptitude install build-essential But it's trying to get the package from disk: Media ...
4
votes
1answer
977 views

Why did adding the Debian testing repository create so many package dependencies?

I have Debian 6.0.4, and I'm running an outdated Geany text editor package. There's no newer version available in the current stable repository, so I added testing packages to sources.list: #debian ...