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

learn more… | top users | synonyms (1)

5
votes
2answers
7k 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
1answer
1k 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 ...
5
votes
4answers
4k 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
39 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
83 views

How to stop `apt-get` complaining about unmet dependencies? [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
4answers
182 views

How can I know if a virtual package is “installed” on a Debian system?

Some packages, have a Provides: header. For example, the package postfix on Debian Wheezy has Provides: mail-transport-agent. The package mail-transport-agent which doesn't exist physically is ...
5
votes
2answers
2k 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
3answers
719 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 ...
5
votes
2answers
2k views

How to make apt-get accept new config files in an unattended install of debian from Repo

I am writing a script for a unattended install of a package that is in our repo, it is a software package with one of Debian's marked config files. Is there any option that I can pass to ...
5
votes
2answers
817 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 ...
5
votes
2answers
383 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
2answers
4k 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
1answer
121 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
2answers
905 views

How to install a single Jessie package on Wheezy?

I want to install a single package (and its dependencies, but only to the extent those are not satisfiable in Wheezy) from Debian Jessie onto my Wheezy system, without upgrading "everything and the ...
5
votes
1answer
412 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
109 views

apt-cache ignores my pinning in Ubuntu [closed]

I'm trying to configure how Ubuntu manage the PPA's and third party repositories with pinning packages. BUT! Sadly it seems that all my efforts are being ignored. I created a file pinning using vim: ...
4
votes
3answers
255 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
719 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
162 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
703 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 ...
4
votes
1answer
1k 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 ...
4
votes
1answer
1k 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
884 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 ...
4
votes
2answers
2k views

I cannot install new packages: “Could not get lock /var/lib/dpkg/lock”

I am new to Linux (installed Ubuntu for the first time yesterday), and have never dealt with any unix-based OS. I started using Linux for the sole purpose of collaborating code with my partners via ...
4
votes
1answer
593 views

How can I view the list of packages that were “suggested” by apt?

When installing a package using apt-get install package a list of "Suggested packages" is displayed. What command can be used to print it again?
4
votes
1answer
53 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 ...
4
votes
1answer
173 views

apt-get install without debconf prompt

I would like to install chef via apt non-interactively, but by default, apt installation brings up this prompt: Is there a way to skip this step during installation or pass a value to apt install? ...
4
votes
3answers
88 views

debian: what is “/var/log/apt/term.log” good for

My system is Debian Wheezy. I have noticed that when I run apt-get, additionally to /var/log/apt/history.log another log file gets created /var/log/apt/term.log. It seems to me that term.log contains ...
4
votes
1answer
63 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. ...
4
votes
2answers
2k 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 ...
4
votes
1answer
599 views

How does apt-get deal with multiple sources?

Let's say Ubuntu's repositories features a package. I install that package using apt-get. I then add an additional source (with add-apt-repository) that lists either a newer or older version of the ...
4
votes
3answers
147 views

Using apt or aptitude to get version information about an uninstalled package?

I'm looking to install a package, but I'd like to make sure that I can't get a more recent version than, e.g., a PPA. Is there an aptitude or apt-get command that will enable me to input a package ...
4
votes
1answer
10k 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 ...
4
votes
1answer
40 views

What exactly does the --names-only option of apt-cache do?

According to the manual, it search regex... search performs a full text search on all available package lists for the POSIX regex pattern given, see regex(7). It searches the ...
4
votes
2answers
504 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 ...
4
votes
1answer
818 views

Automate installation of VirtualBox Guest Additions via command-line

How can I install VirtualBox Guest Additions from a Bash script, in a unattended way? Whenever I run apt-get -y install dkms virtualbox-guest-dkms from the terminal I'm presented with a interactive ...
4
votes
2answers
565 views

upgrade xdebug without using apt?

I'm running debian 5.0.6 and have installed xdebug 2.0.3 via aptitude. Now I want to install PHPUnit, and when trying to do it through pear, I get the error that PHPUnit wants a more recent xdebug ...
4
votes
2answers
2k views

Reinstalling all Debian packages

I killed by mistake a dpkg process running in the background and I would like to reinstall all packages to be sure everything is allright. First, I tried to get a list of all packages and reinstall ...
4
votes
3answers
891 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 ...
4
votes
3answers
512 views

Strange messages on (un)installation

A lot of times when I (un)install packages, I get strange warning messages. Here's a snippet: Processing triggers for libglib2.0-0 ... Processing triggers for man-db ... Processing triggers for ...
4
votes
1answer
60 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 ...
4
votes
1answer
59 views

aptitude: Meaning of curly brackets, i.e. package1{b} package2{a} package3{u}

When using aptitude, the list of changed packages sometimes has a single character in curly brackets behind some package names. The man-page has two examples of them but does not explain them (version ...
4
votes
1answer
25 views

track down executables installer

I have a freshly installed debian system It has vim installed using apt-get install vim Now I have the command xxd installed on the system. I know that this had to have come from the vim ...
4
votes
1answer
1k views

apt-get via ssh-tunnel if only port 22 is allowed

I have a server which has only access to the outer world via port 22 (for the use of ssh from the server to other computers). I want to install some packages via apt-get on this server. Can I achive ...
4
votes
2answers
2k 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 ...
4
votes
1answer
254 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 ...
4
votes
2answers
129 views

apt-get: install modified package with dependencies

I have downloaded a Debian package lxde, together with all its dependencies: apt-get install --no-install-recommends lxde --download-only So now, I have all packages in my /var/cache/apt/archives. ...
4
votes
1answer
641 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 ...
4
votes
2answers
2k 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.
4
votes
2answers
117 views

Reinstall versions of software not found in repositories

I recently installed the utouch-daily PPA, and it's given me some problems. How can I revert to the packages available in the default repository? I've removed the repository from ...