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
44
votes
4 answers

How to compare Debian package versions?

I looked at python-apt and python-debian, and they don't seem to have functionality to compare package versions. Do I have to write my own, or is there something I can use? Ideally, it would look something like: >>> v1 =…
tshepang
  • 12,111
  • 21
  • 91
  • 136
43
votes
1 answer

Benefits of repeated apt cache cleans

In the quest for ever smaller Docker images, it's common to remove the apt (for Debian/Ubuntu based images) cache after installing packages. Something like RUN rm -rf /var/lib/apt/lists/* I've seen a few Dockerfiles where this is done after each…
jmd_dk
  • 12,125
  • 9
  • 63
  • 94
42
votes
11 answers

debian apt packages hash sum mismatch

From the Debian command line, I'm getting a hash sum mismatch after executing aptitude update; aptitude upgrade. Below is the command line output. I've tried an aptitude clean, but this does not seem to help. I've also done a few google searches,…
Mark Giles
  • 449
  • 1
  • 4
  • 8
41
votes
4 answers

When gcc-11 will appear in Ubuntu repositories?

GCC 11.1 was finally released yesterday. However, now it can only be built from source, so I'm wondering when we can get it with apt?
gavrilikhin.d
  • 554
  • 1
  • 7
  • 20
39
votes
2 answers

Android project with Java and Kotlin files, kapt or annotationProcessor?

I would like to know if in an Android project mixing Java and Kotlin files we must use annotationProcessor or kapt, or both ? In my understanding annotationProcessor must be used for Java files using annotations for code generation, and kapt must…
gxela
  • 703
  • 1
  • 6
  • 14
39
votes
1 answer

what is the function of /etc/apt/sources.list.d?

I added LLVM Debian/Ubuntu nightly packages in the /etc/apt/sources.list.d directory as llvm.list. Then I ran apt-get update, but got the following error GPG Error: The LLVM Compiler Infrastructure Project llvm-toolchain-trusty InRelease: no public…
ggaaooppeenngg
  • 1,323
  • 3
  • 17
  • 27
38
votes
8 answers

List directory /var/lib/apt/lists/partial is missing. - Acquire (20: Not a directory)

When I executed sudo apt update I'm getting Reading package lists... Done E: List directory /var/lib/apt/lists/partial is missing. - Acquire (20: Not a directory) Also, I was getting a status error which I solved using sudo cp…
stefun
  • 1,261
  • 3
  • 24
  • 54
37
votes
5 answers

How to remove a snap application (docker) completely

I made the mistake of installing Docker via Snap... Once I realised that snap hadn't permissions to run in my working directory (on a different partition), I removed it. Now I can't use docker after I've installed it via apt-get. Please help. I've…
invisiblegaudi
  • 373
  • 1
  • 3
  • 6
34
votes
1 answer

How to fix: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY

I'm working on an embedded system on Debian 8 (to be upgraded). When I do apt update, I'm getting the following: ... ... Hit http://deb.debian.org stable/contrib arm64 Packages Hit http://deb.debian.org stable/non-free arm64 Packages …
stdcerr
  • 13,725
  • 25
  • 71
  • 128
34
votes
4 answers

Requirements file for apt-get, similar to pip

I like how you can manage dependencies with pip requirements. Is there something similar in case of apt-get? http://www.pip-installer.org/en/latest/requirements.html#requirements-file-format
Vladimir Keleshev
  • 13,753
  • 17
  • 64
  • 93
33
votes
4 answers

The repository 'http://dl.google.com/linux/chrome/deb stable Release' is not signed

I have the following step in my CircleCi setup to install Google Chrome: - run: name: Install Chrome headless working_directory: / command: | wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key…
Mateusz Urbański
  • 7,352
  • 15
  • 68
  • 133
32
votes
1 answer

Doxygen - Could NOT find FLEX (missing: FLEX_EXECUTABLE)

I know there are very similar worded questions on here, but I could not find an answer to my question there, so here we go: I'm trying to see which of my C++ methods are called by others so I found Doxygen after googling. On their page the…
Cold_Class
  • 3,214
  • 4
  • 39
  • 82
32
votes
1 answer

how to use kapt in androidTest scope

Is there a way to use kapt for the androidtest scope? Currently I am migrating from com.neenbedankt.gradle.plugins android-apt to kapt - which works fine - but I am not sure how to do it for the androidTest scope - so replacing: apt…
ligi
  • 39,001
  • 44
  • 144
  • 244
32
votes
1 answer

How to install build dependencies directly from the debian/control file?

I have a Debian source package, it contains a standard debian/control file, which lists a "Build-Depends:" field. How can I install those build depends without a lot copy and paste? The package is not in Debian repository. So apt-get build-dep won't…
user975135
32
votes
2 answers

Debianzing a Python program to get a .deb

Aim To create an installable .deb file (or package). Which when clicked would install the software on a Linux machine and an icon would be put on the GNOME panel. So as to launch this application from there. What I have referred to I referred to two…
IcyFlame
  • 5,059
  • 21
  • 50
  • 74