Questions tagged [aptitude]
148 questions
4
votes
2 answers
How do I override apt-get removing dependent packages?
I want to replace postfix with exim4 on my Ubuntu test server to reflect the setup I have on my production server, but apt-get and aptitude (quite understandably) insist on removing several packages that depend upon having a mail stack.
However, in…

iainH
- 301
- 1
- 3
- 11
4
votes
7 answers
What is the fastest way to install Python 2.6 on an Ubuntu 8.04 server?
I just got an Ubuntu server set up, and it seems to have come with Python 2.5. I've been developing my app in Python 2.6, but apt-cache search ^python seems to not contain 2.6. What is the fastest way to update the repositories apt-get looks through…

Andrey Fedorov
- 2,129
- 4
- 16
- 12
3
votes
1 answer
(Ubuntu 16.10) How to pick/encourage a specific solution proposed by aptitude using only command-line arguments?
According to aptitude, the ubuntu-mate-desktop and ubuntu-mate-core packages recommend the ntp package, which conflicts with the openntpd package that we use. Interactively, it's easy to ask aptitude to leave openntpd alone and not install ntp.…

BigSmoke
- 151
- 5
3
votes
1 answer
apt: list required dependencies for deb package without installing it
For a build tool I'm writing (for which I'd like to implement a sort of dependency-caching system) I'd like to know what the missing dependencies for a .deb package are, without resorting to installing it (possibly) and reading apt-get output, i.e.:…

Alan Franzoni
- 153
- 1
- 7
3
votes
1 answer
Unable to install python2.7-dev on Ubuntu 12.04.2 LTS
The command $ sudo apt-get install python2.7-dev yields this result:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an…

Honza
- 133
- 4
3
votes
1 answer
Disallow virtual package in Debian's /etc/apt/preferences
I know I can disallow a particular package in Debian by appending /etc/apt/preferences with:
Package: *x11*
Pin: release
Pin-Priority: -1
But how can I do that for a virtual package like httpd? I'd like to disallow installation of all packages that…

Michal Rus
- 150
- 5
3
votes
1 answer
Prioritise repositories in Ubuntu
We have a few PPA sources on some of our servers which we stick into /etc/apt/sources.list.d . Some of these repos provide same packages (in terms of names) but different versions and possibly different binaries. Is there a way how we can PRIORITISE…

milosgajdos
- 1,828
- 2
- 21
- 30
3
votes
2 answers
Debian removed /var/lib/dpkg/info/, is there a way to save the system?
Removed accidentally /var/lib/dpkg/info/, now I am having problems with installing/removing packages, it prompts errors, cause can not find the info about installed packages.
Is there any way to save the system or need to reinstall debian…

Wiggler Jtag
- 251
- 5
- 17
3
votes
1 answer
Cannot restart apache2 on Debian server - "Cannot load /usr/local/apache2/modules/libphp5.so into server"
Okay... I'm something of a beginner when it comes to servers, and I'm having some issues with restarting apache on my Debian web server.
I just ran the following:
aptitude install apache2 openssl
Immediately afterwards, I tried to restart apache…

Philip Bennison
- 131
- 1
- 3
3
votes
4 answers
Debian = aptitude how to deselect/disable automatic packages when installing software?
i want to install subversion. But I have already (manually) installed mysql. And it seems that aptitude will again try to intall mysql mysql-common{a}. How can I deselect the mysql installation when installing subversion? What commands/paramters do…

jens
- 397
- 2
- 4
- 6
3
votes
5 answers
Broken upgrade of debian, causing perl issues
So I stuffed an upgrade of debian, both upgrade and dist-upgrade. I am more used to yum but thats no excuse.
Now things are being silly. The majority of things work, however, my bugzilla install fails. On loading bugzilla I get a 500 error and this…

Christian
- 789
- 1
- 13
- 31
3
votes
3 answers
What is the format of specifying 'http' repositories in /etc/apt/sources.list?
After specifying the url of the repository, what do the tags like 'stable','non-free' mean in the entries of /etc/apt/sources.list ? If we know the url of a repository, how do we decide about these additional attributes while adding an entry in…
twiggedtoday
3
votes
2 answers
Generating a record of the full(-ish) package management state
I'm about to make some system changes and I'd like to have a record of my current happy system state. Is there a convenient way to create a record of this? I'd like to keep track of info like
currently installed packages and their versions
which…

intuited
- 415
- 1
- 5
- 12
3
votes
3 answers
How to upgrade ClamAV on Ubuntu Hardy Heron 8.04 LTS?
I'm running a server on Ubuntu Hardy Heron 8.04 LTS, and when I installed ClamAV via aptitude, it installed version 0.94. That version has now been EOL'ed, but when I run "aptitude upgrade", it doesn't update ClamAV to the more recent version…
Jordan Lev
2
votes
0 answers
apt-get reinstall requires removal of essential packages
I did a dist-upgrade from debian 8 to debian 9.
Now I need to reinstall xserver-xorg-core.
But in doing so, apt-get wants to remove 'init'.
# apt-get install --reinstall xserver-xorg-core
Reading package lists... Done
Building dependency…

balia
- 31
- 2