Questions tagged [apt]

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.

The Advanced Packaging Tool, or APT, is a free user interface that works with core libraries to handle the installation and removal of software on the Debian GNU/Linux distribution and its variants. APT simplifies the process of managing software on Unix-like computer systems by automating the retrieval, configuration and installation of software packages, either from binary files or by compiling source code.

1137 questions
20
votes
8 answers

Debian. How can I securely get debian-archive-keyring, so that I can do an apt-get update? NO_PUBKEY

I have a catch 22 trying to: # apt-get update [... good lines omitted] W: GPG error: http://backports.debian.org lenny-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY…
David Bullock
  • 821
  • 3
  • 15
  • 21
20
votes
2 answers

Debian/Ubuntu - How to restore /var/cache/apt structure after deleting it?

I was running out of space on an Ubuntu server, so I did this command to save space sudo rm -rf /var/cache/apt/archives However now when trying to do things with apt, I get the following errors: E: Could not open lock file…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
19
votes
8 answers

ack-grep to ack in ubuntu

I was just wondering, i recently installed ack (ack-grep in ubuntu), and i can't figure out how to just type in ack to get ack-grep (for some reason ack is taken up by a kanji translator thing). Is there a better way than just aliasing the thing in…
FurtiveFelon
  • 357
  • 4
  • 12
19
votes
10 answers

Managing upgrades on hundreds of Debian servers

What do you think are the best practices to maintain dozens (if not hundreds) of debian servers up-to-date ? Keeping in mind that : There are groups of servers (i.e identical webservers, DB Servers, ...) There can be several Debian issues…
Falken
  • 1,702
  • 5
  • 18
  • 28
19
votes
4 answers

Debian 5.0 (lenny) apt sources fail?

For the past few days, I couldn't update our apt-sources on Debian 5.0 (lenny). I get the following errors. W: Failed to fetch http://ftp.debian.org/debian/dists/lenny/main/binary-amd64/Packages 404 Not Found [IP: 130.89.148.12 80] W: Failed to…
trnc
  • 688
  • 1
  • 12
  • 31
18
votes
2 answers

How to version lock packages in Ubuntu?

On CentOS exists the yum versionlock option, where you can lock a package to a specific version, so it is never upgraded past that. I would like that puppet-server-2.7.19-1 puppet-2.7.19-1 stays on 2.7, and never upgraded to 3.0. Puppet Labs have…
Sandra
  • 10,303
  • 38
  • 112
  • 165
18
votes
4 answers

Unable to install mysql-server in Ubuntu

I am unable to install mysql-server on my ubuntu 9.10 server machine. When using apt-get install mysql-server the output is : # apt-get install mysql-server Reading package lists... Done Building dependency tree Reading state information...…
Arihant
  • 191
  • 1
  • 2
  • 6
18
votes
11 answers

Is it safe to run apt-get update every night?

Is it safe to run apt-get update -y through cron on a production server?
Miko
  • 1,759
  • 4
  • 22
  • 28
18
votes
2 answers

Why does the command 'apt install php' try to install Apache?

I'm trying to install WordPress + LEMP on my Ubuntu 18.04. I have no interest in installing Apache. Why does the PHP installer assume I do?
hejsan
  • 353
  • 2
  • 6
16
votes
4 answers

How to force downgrade of packages on Ubuntu (Karmic)?

After doing an update on a bunch of pulseaudio packages my microphone stopped working. It's fine, after all Karmic is still in Alpha. I have reported the bug to launchpad. In the meanwhile I would like to revert the update of the pulseaudio…
amh
  • 411
  • 1
  • 5
  • 12
16
votes
3 answers

How to install two packages that write the same file

I have two packages that each create /usr/bin/ffprobe. One of them is ffmpeg from the Deb Multimedia repository, while the other is ffmbc 0.7-rc5 built from source. The hand-rolled one is business-critical, and we used to just install it from source…
Joel E Salas
  • 5,572
  • 16
  • 25
16
votes
4 answers

apt: how to search using package tags?

Some (most?) packages in Debian, have tags. For example: =# apt-cache show squirrelmail | perl -lne 'print if /^Tag:/.../^\S/' Tag: implemented-in::php, interface::web, mail::imap, mail::smtp, mail::user-agent, network::server, protocol::http,…
user13185
16
votes
5 answers

How to install nginx and install the configuration files too

I've just completely uninstalled nginx 1.0.6 from my server (Ubuntu 11.04) using apt-get remove nginx rm -rf /etc/nginx/ rm -rf /usr/sbin/nginx rm /usr/share/man/man1/nginx.1.gz apt-get remove nginx* Now I want to install it again, however when…
MacMac
  • 2,061
  • 10
  • 31
  • 38
16
votes
4 answers

Debian: How to use "apt-get install" without upgrading dependencies?

I already have a package B and want to install a new package A. The installation wants to modify B, but I don't want that to happen. I need to install the package A. It has the a dependency on package B and requires to be (>2.0). I have already…
victorgp
  • 511
  • 2
  • 4
  • 9
16
votes
5 answers

How do I make a wildcard package search using apt-get?

With yum it was simple: yum list *xxx* but this does not work with apt-get. How can I do a search like this? Also, how do I see what package provides a specific command?
sorin
  • 8,016
  • 24
  • 79
  • 103