APT, the Advanced Packaging Tool, is Debian's high-level package management system. It is also used by several other Linux-based and Debian-based operating systems.

learn more… | top users | synonyms (1)

3
votes
1answer
41 views

Hook into installation of Debian package

When installing packages with daemons, they often restart that service during installation/upgrade on Debian. I got a daemon that has some options that can only be set on runtime, not configured. If ...
3
votes
0answers
2k views

Unable to apt-get install nginx-extras package on top of nginx 1.7.9

I am attempting to install Phusion Passenger for nginx on a dev Ubuntu box following this guide from the passenger website. I have Nginx installed and running already, version is 1.7.9-1~trusty. I ...
3
votes
1answer
94 views

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 ...
2
votes
3answers
305 views

How secure are third party Ubuntu (APT) repository mirrors

We use local Ubuntu repository mirrors, because our external traffic is not free. Whenever I apt-get install "program" it gets from that repository. The question is... can the maintainers of the ...
2
votes
9answers
20k views

How to configure iptables to use apt-get in a server?

I'm starting using iptables (newbie) to protect a linux server (specifically Debian 5.0). Before I configure the iptables settings, I can use apt-get without a problem. But after I configure the ...
2
votes
4answers
5k views

Package management on Mac OS X

Can anyone recommend a package management tool like apt-get or yum for Mac OS X? I've seen that Fink has ported apt-get to Mac OS X, is this a good way to go, or are there other/better options out ...
2
votes
2answers
4k views

How to update sources.list for Debian 4.0 Etch?

I am trying to update my /etc/apt/sources.list on my VPS. As I run apt-get update I get all kinds of 404s not found, for example: Failed to fetch http://debian.newdream.net/dists/etch/main/binary-...
2
votes
3answers
4k views

Configure apt to use proxy in vagrant box

I'm using Vagrant to setup a virtual machine for testing. I would like apt inside the virtual machine to use a proxy on the host machine to allow caching of all the downloads to persist between ...
2
votes
4answers
874 views

How to install MySQL Server so it doesn't “go away” after reboot?

All Good: Mysql server installed just fine by using the following command: sudo apt-get install mysql-server During installation I was prompted to choose a root password. After install I was able ...
2
votes
2answers
3k views

problems reinstalling apache2

I uninstalled apache2 on debian 5 64bit. Then I removed /etc/apache2 and reinstalled apache again. That folder is still missing and I have no idea how to get the apache files back (with modules and ...
2
votes
2answers
118 views

Maintain a nice, informative documentation by hooking into the APT system?

Ideally I would like something which: Allowed me to write a reason for installation of a package or a set of packages. Kept track of all changes the installed package made to my system. I would like ...
2
votes
5answers
3k views

apt-get, aptitude package version

How can I find out package versions available from repositories?
2
votes
1answer
2k views

Using APT how can I install phpMyAdmin without 'apache2' and all of the other gumpf?

I have found that a lot of packages that get installed with APT tend to have many extra packages that get installed, but I am no sys-admin so I generally accept this. As I start to get to grips with ...
2
votes
4answers
1k views

Should I update the kernel on a Linux machine?

As I understand it, updating to a new kernel (with the normal linux-image... package, not by rolling my own) requires a server restart. However, one of our servers (Ubuntu 10.04) is running several ...
2
votes
2answers
218 views

Aptitude / apt-get. Any way to only show non-X dependant apps in a search?

It just occured to me that it would be good to do an 'aptitude search blah' and only have non-graphical applications shown. I know it's not a biggy but the docs don't seem to mention it and I would ...
2
votes
3answers
680 views

Use apt-get source on a debian repo without using /etc/apt/source.list

I'm trying to use apt-get source as a regular user on a debian squeeze system. I want to retrieve the sources for cyrus-imapd-2.4 from the testing/wheezy repository. apt-get source works without ...
2
votes
4answers
8k views

How do I install the latest version of Sphinx Seach in Apt-get?

When I do "sudo apt-get install sphinxsearch", I get version 0.9. I want the latest stable version (which is 2.4, I believe) How can I do that using aptitude?
2
votes
1answer
12k views

apt-get duplicate sources.list entry for google-chrome (Ubuntu 11.10)

I am running Ubuntu 11.10. This is the only line in my /etc/apt/sources.list with the text "google" or "chrome" in it: deb http://dl.google.com/linux/chrome/deb/ stable main Sometimes (not always) ...
2
votes
3answers
3k views

Apt fails to get sources due compression

My Debian server (3.2.60-1+deb7u3 x86_64) fails to fetch updates from security.debian.org. I think it is caused by repository, because there are only compressed files on the repository. How can I fix ...
2
votes
2answers
5k views

Wrong version of pg_dump on Ubuntu

I originally installed postgres 9.2 on Ubuntu and later upgraded to 9.3 according to the instructions here: http://www.postgresql.org/download/linux/ubuntu/ (using the postgres apt repository). ...
2
votes
1answer
3k views

installing git from debian wheezy backports: anyway i see old package version

I need to install git 1.8.* version. I added backports to my sources.list; Removed current installed git via apt-get remove git; Executed apt-get update to update my packages list aptitude show git ...
2
votes
1answer
664 views

how to get the list of packages present in apt-get autoremove

I know I have some packages ready to be removed if I run apt-get autoremove, but I just want to know which they are, without removing them. How can I list what would be removed without removing them? ...
2
votes
1answer
1k views

apt-get update 404

apt-get update yields a 404 error. I'm using the default mirrors for for Ubuntu 9.10. That version hasn't reached end of life yet so I don't see why this would be happening.
2
votes
5answers
1k views

apt-get install not working in script

I create a small script that installs a set of linux paquets . Strangely apt-get install always fails and tells me that the package have not been found. Here is my script: #! /bin/bash sudo apt-get ...
2
votes
1answer
2k views

How to tell apt-get to ignore unmet dependencies forever?

I use lighttpd instead of apache, but all the packages in the debian repositories are so keen on installing apache when I install a web based package. So I installed gitweb with apt-get, telling it to ...
2
votes
4answers
4k views

SSL connection hangs as client hello (curl, openssl client, apt-get, wget, everything)

I've run into a problem on my Debian VPS (a xen domU) regarding SSL. Namely almost all SSL connections hangs at client hello. For example: # curl -vI https://graph.facebook.com About to connect() ...
2
votes
1answer
810 views

How to run Debconf for a installed package via apt-get?

Installing some packages requires answering Debconf questions. Usually Debconf is called during installation (after apt-get install [packages]), thus new packages will use defined configurations. My ...
2
votes
3answers
406 views

Can I mix yum and apt-get safely?

I understand that yum and apt-get operate on top of rpm, so that the data about installed packages in a linux system is responsability of rpm; so that neither yum nor apt-get keep their own data about ...
2
votes
2answers
100 views

Why does Debian have RPM and Yum packages?

I know that Debian comes with an awesome package manager called APT which is capable of installing .deb packages. I know that RHEL comes with a package manager called Yum and is capable of installing ...
2
votes
1answer
362 views

apt-get unmet dependecies, traditional solutions not working

The problem Taking any action that will change installed packages on my Ubuntu 12.04 LTS server (remove, install, purge, etc.) fails with: Reading package lists... Building dependency tree... ...
2
votes
1answer
610 views

Puppet: maintaining apt sources.list

I'm using puppet to maintain a growing pile of debian machines. These will be maintained from their initialization onwards. This means that one step will be setting the apt 'sources.list' file and ...
2
votes
1answer
258 views

Concern about “apt-get update” in production server

I have a server which is getting a bit outdated as I haven't updated it since a few months. I wanted to try cron-apt but first wanted to do it manually, so I issued a sudo apt-get update as a ...
2
votes
2answers
3k views

Where to find URLs for sources.list for debian for running apt-get update?

Can anyone tell me where to find URLs to put in /etc/apt/sources.list for debian so that I could run apt-get update? I couldn't find the precise answer by searching Google. When I currently try ...
2
votes
3answers
1k views

Why doesn't the installation of the mysql-server package create a root account?

It's not the Why? that matters. It's the How can I do it myself? I'm using Ubuntu 10.04 LTS Server. I just want to install a MySQL server, but for some reason it wont let me. When I run apt-get ...
2
votes
2answers
126 views

Debian keeps grabbing packages from sid despite no sid in /etc/apt/sources.list

I have a machine with Debian Lenny installed. Somehow, when I do apt-get update, I receive this output: sudo apt-get update Get:1 http://ftp.de.debian.org lenny Release.gpg [1034B] Ign http://ftp.de....
2
votes
2answers
127 views

Is there a way to add a ppa using the python apt module?

I need to add a ppa to remote servers using a python script. The bash equivalent of what I want to do is: $ add-apt-repository ppa:user/ppa-name I'm assuming it would look something like this: ...
2
votes
1answer
206 views

Debian aptitude: determine which repository a package is coming from? [closed]

In Aptitude, how can I tell where a package is coming from? I've set up my apt sources.list and preferences files for pinning, but I just want to make sure I'm not unknowingly upgrading to packages ...
2
votes
1answer
102 views

uninstall extras installed by apt-get install

I ran apt-get install gnome-terminal and apt-get install gnome-desktop on my linux box. It was just a command line box before that. Both of these things had like around 100mb of files to install - I ...
2
votes
3answers
781 views

Upgrade from Debian Lenny to Squeeze with apt-get

I just upgraded my system from Lenny to Squeeze following the steps posted here. I followed all the steps using apt-get (in the upgrade from Etch to Lenny i used aptitude as suggested) and the upgrade ...
2
votes
2answers
951 views

/etc/cron.daily/apt: Segmentation fault

I have a system that I set up with Maverick and the "automatically apply security updates" setting. It is now sending e-mail on a daily basis: Subject: Anacron job 'cron.daily' on gwen /etc/cron....
2
votes
3answers
6k views

Ubuntu14.04 - unable to apt-get update

sudo apt-get update returns some erors : W: Failed to fetch http:// archive.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry 'restricted/source/Sources' in Release file (...
2
votes
3answers
2k views

EC2 Ubuntu 14.04 instances: running `apt-get update` results in “Hash Sum mismatch”

Every time I create a new AWS EC2 instance with Ubuntu 14.04 (using ami-a182b391, as found from here) and then immediately run sudo apt-get -y update, it gives me an error. Here's the OS info: $ ...
2
votes
1answer
434 views

How to 'apt-get upgrade' a debootstraped chroot jail from outside?

I have a daemon running in a chroot jail that I have generated with debootstrap. I'd like to remove apt and dpkg from the jail, but I want to keep the other packages updated. Can I upgrade the ...
2
votes
2answers
4k views

Ubuntu 12.04 LTS - apt-get update can't find sources

Update: Running sudo rm /var/lib/apt/lists/partial/* temporarily allows sudo apt-get update to work. Original: I've seen answers to similar questions like this one, but the answers have been 'your ...
2
votes
1answer
213 views

Exclude sources files for apt-get update

I use an specific command to check security updates: /usr/bin/apt-get update -o Dir::Etc::SourceList=/etc/apt/security.sources.list But when executed it use sources files in /etc/apt/sources.list.d/...
2
votes
1answer
400 views

Building the necessary dependencies when apt-get installing on Ubuntu

I've got an Ubuntu 12.04.2 server and I want to install Postgres 9.2.4. If I wanted to build all dependencies, I couldn't use apt-get build-dep (at least without some finagling) because only 9.1 is ...
2
votes
1answer
1k views

I manually deleted my /etc/php5/ config files and now they don't reinstall

I wanted a clean reinstall of php5-cli, php5-common, php5-fpm. So what I did was: rm -rf /etc/php5 rm -rf /usr/local/lib/php5 rm -rf /usr/local/php5 rm -rf /usr/lib/php apt-get autoremove php5* apt-...
2
votes
2answers
4k views

Pull php5 from DotDeb and ignore others packages

I have Debian squeeze installed and this is my /etc/apt/sources.list file: # Debian packages for stable deb http://ftp.lug.ro/debian/ stable main contrib non-free # Security updates for stable deb ...
2
votes
2answers
5k views

apt-get purge portmap

i had rpc.statd open on port 111 on a relatively fresh install of debian squeeze. i did an apt-get purge portmap as i wanted to disable rpc services and close the open port on my box; i was presented ...
2
votes
2answers
1k views

apt-get update getting 400 URI Failure message

I have setup my ubuntu vps recently, but suddenly I keep getting this error message when I try to do apt-get update E: Method gave invalid 400 URI Failure message I have try to comment out 2 by ...