Questions tagged [apt]

Debian's Advanced Packaging Tool whose main binary is apt-get. Most questions about APT are off topic for Stack Overflow, unless it is clearly related to a programming tool.

Advanced Packaging Tool, the Debian software package manager which keeps track of the software repositories for the system, which offers package dependency resolution, upgrade of the installed packages, download and installation of new software.

1492 questions
13
votes
1 answer

How do I force ansible to retry an 'apt' task if it fails?

I have an ansible playbook running on many machines. In that playbook I have a few packages I am trying to install using apt, but occasionally they fail, either because other playbooks are running, a periodic update or any other apt instance running…
13
votes
2 answers

What's correct way to upgrade APT packages using Ansible?

When setting up a new Linux server, I typically run apt-get update and then apt-get upgrade. The first command updates the list of available packages and their versions, but it does not install or upgrade any packages. The second command actually…
Jim
  • 13,430
  • 26
  • 104
  • 155
13
votes
3 answers

How to use libapt (or libept) in debian-like system to list packages and get their infos?

Somebody used libapt or libept to list packages and get informations about package in a debian-like system? Libapt is not well-documented at all, and i've found few examples and tutorials about libept. Can someone explain me best methods to get a…
Emilio
  • 3,901
  • 11
  • 44
  • 50
13
votes
9 answers

Obscuring network proxy password in plain text files on Linux/UNIX-likes

Typically in a large network a computer needs to operate behind an authenticated proxy - any connections to the outside world require a username/password which is often the password a user uses to log into email, workstation etc. This means having…
Brendan
  • 18,771
  • 17
  • 83
  • 114
13
votes
8 answers

Clone Debian/Ubuntu installation

Is there an easy way of cloning entire installed debian/ubuntu system? I want to have identical installation in terms of installed packages and as much as possible of settings. I've looked into options of aptitude, apt-get, synaptic but have found…
boskom
  • 840
  • 1
  • 7
  • 12
12
votes
3 answers

How do I create a native Debian package for static files?

I have a need to Debianize some static resources for a software project but am confused by the available information and could use some guidance in doing so. Here are the materials I've been reading: Rolling your own Debian packages Debian New…
troutwine
  • 3,721
  • 3
  • 28
  • 62
12
votes
6 answers

unable to install g++ and build-essentials in ubuntu 20.04

even after cleaning with apt-get clean it says there are broken packages. sudo dpkg -l | grep ^..r as mentioned in [1] returns nothing. $ sudo apt-get install build-essential Reading package lists... Done Building dependency tree Reading…
vanangamudi
  • 673
  • 1
  • 8
  • 21
12
votes
4 answers

How to use java annotations to modify source code before final compilation?

I've read from the apt tool page that one can create AnnotationProcessors to generate new derived files (source files, class files, deployment descriptors, etc.). I am looking for example to do so. My need is to encode all annotated strings at…
Martin Pernollet
  • 2,285
  • 1
  • 28
  • 39
12
votes
3 answers

google-cloud-sdk installation fails on python syntax error

on a "Linux supermicro 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux" I see this happening when doing "sudo apt-get install google-cloud-sdk" > Reading package lists... Done Building dependency tree …
Karel Goderis
  • 163
  • 1
  • 5
12
votes
2 answers

How to install dependencies for a project that is being cross-compiled on an x86 host for an arm target

I'm trying to build a project (https://wpewebkit.org/) on Debian Buster for armv7 on a x86 host of the same OS. I am able to successfully install an arm C++ toolchain and I can successfully compile and run trivial applications. Where I'm stuck is…
killachaos
  • 414
  • 6
  • 15
11
votes
4 answers

eclipse java annotation processing

I want to do something using Annotation processing in eclipse jdt. Eclipse jdtapt help tells me I should configure things on the java/compiler/annotation processing preferences page. But on my installation (Indigo), the compiler section doesn't have…
Erwin Smout
  • 18,113
  • 4
  • 33
  • 52
11
votes
3 answers

NO_PUBKEY for apt.releases.hashicorp.com in apt

When running sudo apt update, I am presented with the following error: Err:4 https://apt.releases.hashicorp.com focal InRelease The following signatures couldn't be…
MacroMan
  • 2,335
  • 1
  • 27
  • 36
11
votes
7 answers

Can't install pgadmin4 repository does not have file

I was use command sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update' But I was got this Err:2…
vladislav
  • 133
  • 1
  • 2
  • 8
11
votes
3 answers

What happens in BASH when you do Ctrl-C (hint, it's not simply sending a SIGINT)

A little background first - When I do apt-get install downloads from my company internet it provides a high burst of speed (400-500KB/s) for the first 10 seconds or so before dropping down to a tenth of that (40-50KB/s), and then after a few minutes…
Anupam Jain
  • 7,851
  • 2
  • 39
  • 74
11
votes
1 answer

How do I install lubicu66 on Ubuntu 20.04?

I am trying to install Ezra-project on Ubuntu 20.04. When I run the install it fails and says: dpkg: dependency problems prevent configuration of ezra-project: ezra-project depends on libicu66; however: Package libicu66 is not installed. I tried…
nicolejane33
  • 422
  • 1
  • 5
  • 13