APT (Advanced Packaging Tool) is the standard software package management system for Debian and its derivatives.
4
votes
1answer
1k 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?
4
votes
2answers
72 views
hook a script to apt-get
I have /tmp on a separate partition, and mounted with noexec. I am using Debian.
The installation of some packages fails, because the post-installation scripts of some packages need to run from /tmp.
...
4
votes
1answer
563 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
1answer
377 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 ...
4
votes
2answers
503 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
1k 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:
...
4
votes
3answers
496 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
491 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
1k views
What does “The following packages have been kept back” mean?
When doing an apt-get upgrade I sometimes get a message saying "The following packages have been kept back". For example:
$ sudo apt-get upgrade ...
4
votes
2answers
3k 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 ...
4
votes
2answers
41 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
282 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
112 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 ...
4
votes
2answers
92 views
In synaptic, is there a way to always expand “Details” when installing a package?
While using synaptic and update-manager in Debian (I'm using unstable), I always like to see what it is doing while installing and always manually expand the "Show installing files" and "Details" ...
4
votes
1answer
249 views
Apt/Aptitude: how to filter packages that are impossible to install?
Especially when running Sid, there are many packages that become non-installable as the dependencies change ABI versions, or the dependencies themselves may have been dropped. It'd be good to know how ...
4
votes
2answers
221 views
How do I hide packages from appearing in apt system?
The list of uninstalled packages appearing in my aptitude is massive, but is full of packages that I'm very sure I will never ever install. E.g. my laptop is using intel graphics, so it doesn't make ...
3
votes
2answers
498 views
How often does Debian update its Stable repository?
Ever since release day (early Feb 2011), I haven't got any updates (apt-get update && apt-get upgrade). I've tried another repository (ftp://ftp.de.debian.org/debian), and it's the same thing.
...
3
votes
3answers
218 views
What is the preferred way to install new versions of software?
I have installed Ubuntu Server 10.10 and now I want to install some software like PostgreSQL, Nginx and PHP. But what is the preferred way to get the latest stable version of the software?
E.g I ...
3
votes
2answers
64 views
How do I find out where the contents of a package are installed?
I ran into this bug, where Cantor can't find the sage backend if both are installed through the ubuntu package system. I can get around this bug if I know the path to the sage executable, but even ...
3
votes
2answers
517 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 ...
3
votes
3answers
323 views
Why does installing python-minimal package also grab the python package on Debian?
From running:
apt-cache depends python2.6-minimal | grep Depends
and
apt-cache depends python2.6 | grep Depends
it looks like python2.6 depends on python2.6-minimal and a lot more.
However, ...
3
votes
1answer
74 views
How can I view packages from a specific repository?
In my /etc/apt/sources.list if I add the path:
deb http://debian.meebey.net/pkg-mono ./
Can I view packages from this specific repository alone?
3
votes
3answers
147 views
Using the apt package manager refuse an update for a specific package
I am attempting to upgrade a few packages using the apt package manager. However there is a specific package in the list that I don't want to upgrade. In fact I don't want anyone to ever upgrade it. ...
3
votes
1answer
248 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?
3
votes
1answer
2k views
How to add an iso file as APT source
Say I have this line in "/etc/fstab":
/iso/apt.iso /mnt/apt iso9660 loop 0 0
And I run these commands as root:
mount --all
apt-cdrom add --no-mount --cdrom /mnt/apt
I expected the disk to be ...
3
votes
1answer
4k 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 ...
3
votes
3answers
269 views
What package managers do popular Unix Distributions Use?
I am creating a Script and I need to know what package manager each Popular Unix Distribution Uses (especially those distros that are commonly-used for Servers)...
I mean:
Debian uses apt-get
Fedora ...
3
votes
1answer
882 views
How to enable an federated storage engine in the Debian MySQL package?
How would I enable an extra (in this case FEDERATED) storage engine in the mysql-server-5.1 package from Debian?
I've installed mysql-server-5.1 via apt-get. But the SHOW ENGINES shows that federated ...
3
votes
1answer
4k 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 ...
3
votes
2answers
222 views
Install downloaded packages with dependencies
I sometimes download .deb packages from the internet and install them with dpkg -i package.deb If the packages have unmet dependencies. How can I install the dependencies automatically (similar to ...
3
votes
1answer
185 views
How to control the list of locales which are generated by APT?
Each time I install or operate in other means l10n-related packages, the APT system "rebuilds" a lot of English locales, which takes considerable time. Look at the APT log:
Configuring ...
3
votes
2answers
42 views
Automatic Update Script using Cron, Exit Codes, and Logging
I'm managing multiple machines running Debian, Raspian, and Mint. On some of the machines I want to have updating and upgrading automatically. I've drafted a script that I want to do this and log if ...
3
votes
2answers
67 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 ...
3
votes
1answer
191 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 ...
3
votes
1answer
341 views
Are bsdutils, coreutils, and busybox all necessary in a Debian install?
I first installed Debian with a netinst CD without networking, then edited /etc/apt/sources.list to point to the main repository, then ran dhclient eth0 to set up networking. Then I installed less. ...
3
votes
1answer
2k views
Debian squeeze (stable) broken packages after installing something from wheezy (testing)
root@server:/home/ante# apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may ...
3
votes
1answer
1k views
Problems with apt-get upgrade on Debian (404 Not Found)
I can't update my Debian Sid system.
on running the apt-get upgrade I am getting:
maciej@wladyslawa:/etc/apt$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
...
3
votes
1answer
330 views
Installing KDE on Ubuntu Natty from cdrom
Currently I have Ubuntu 11.04 - Natty, with Unity as the default environment; but I just want to install KDE along-side it, and I don't have perfect bandwidth. So I took Kubuntu 11.04 cdrom from my ...
3
votes
1answer
42 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 ...
3
votes
2answers
208 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 ...
3
votes
1answer
528 views
Can I upgrade to a new version of Python on an old version of Ubuntu?
I have Ubuntu 8.04.3 LTS and ran this:
$ sudo apt-get install python2.7
I got this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find ...
3
votes
1answer
50 views
Installed using apt-get, then ran out of storage
I attempted to install a large package, forgetting that I had little space left, and now I am a little stuck.
When I attempt to remove any packages I get the following error:
E: dpkg was ...
3
votes
2answers
1k 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 ...
3
votes
2answers
662 views
How to manually insert a repository in source.list?
I tried to add a new APT repository using this command:
add-apt-repository ppa:atareao/atareao
but I got a "command not found" error. I tried installing python-software-properties, but it's already ...
3
votes
3answers
38 views
Install using synaptic ignoring dependencies
I was trying to install texmaker a latex editor in my debian system from synaptic. It shows in the dependency list texlive-base, texlive-common. etc as dependencies. But I have already installed ...
3
votes
2answers
243 views
How do I update my Debian kernel?
Essentially I have an Ubuntu laptop and a board running Debian. I have installed the same kernel module and a utility for managing it on each, using aptitude.
Unfortunately, the versions of the ...
3
votes
1answer
1k 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.
3
votes
2answers
2k views
Fixing broken packages in a Debian testing distribution
I'm playing around with Linux Mint Debian Edition (LMDE) in a VirtualBox instance to try it out and see if it'd be good for a main operating system for me. I'm pretty competent with most system ...
3
votes
1answer
205 views
Private Debian repository to serve selected packages to selected machines
I have a private Debian repository setup with a few custom built packages (along with other official Debian packages). All my machines have this repository(only) configured in /etc/apt/sources.list. I ...
3
votes
1answer
391 views
listing packages in Debian, a la `dpkg -l`, but including the package origin/source
I want to list all packages of the form
$ dpkg -l libav\*
but in addition to this output, I would like the origin/source (I'm not sure of the preferred term) of each package. If the package doesn't ...
