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
9
votes
2 answers

processing of annotations inside a method body

I am processing java annotations using the Pluggable Annotation Processing API. Is it somehow possible to also process annotations used inside a method body? thanks for help. Peter
wrm
  • 1,898
  • 13
  • 24
9
votes
5 answers

Format code in Doxia Apt Format

I am currently starting to write a documentation for one of our projects. For reasons of simplicity we chose to use the Almost Plain Text (APT) Format, see more info here: http://maven.apache.org/doxia/references/apt-format.html APT is great…
evgeni
  • 1,675
  • 3
  • 22
  • 29
9
votes
2 answers

How to cache packages which have been installed via `apt-get` in Travis CI?

So, with my .travis.yml, I'm installing some packages via apt-get which doesn't take too long to download, but a very long time to install. Is there a way to make Travis CI remember the installed packages, so I won't have to install them from…
finefoot
  • 9,914
  • 7
  • 59
  • 102
9
votes
3 answers

apt update error: The repository 'http://us.archive.ubuntu.com/ubuntu saucy Release' does not have a Release file

I run "sudo apt -y update" on my Ubuntu 16.04 server, but I got the following error: # apt -y update Reading package lists... Done …
mlpy
  • 501
  • 3
  • 5
  • 12
9
votes
2 answers

How do I force-reinstall a package with Ansible?

I'm using Ansible to deploy .deb packages from a custom repository. Sometimes a developer can forget to change the package number, so the repository will have the new package with the old version. This is unnecessary, so I would like to always…
Nick Volynkin
  • 14,023
  • 6
  • 43
  • 67
9
votes
3 answers

How to install gstreamer0.10-ffmpeg on Debian 8 Jessie (No installation candidate)

On a clean Debian 8 installation i had to install some gstreamer-plugins. While most of them were already installed or were easily installable via apt-get, gstreamer0.10-ffmpeg was not installable: sudo apt-get install gstreamer0.10-ffmpeg threw…
Madamadam
  • 842
  • 2
  • 12
  • 24
9
votes
1 answer

How to install Python bindings originating from an apt package?

I've got a website hosted at Heroku, and I now want to use the python-qrtools package which uses the ZBar bar code scanner. On a regular debian (based) I can do a simple: sudo apt-get install python-qrtools According to the command dpkg-query -L…
kramer65
  • 50,427
  • 120
  • 308
  • 488
9
votes
3 answers

Debian apt error: "The following signatures were invalid: NODATA 1 NODATA 2"

I'm having some trouble with apt/aptitude. Recently, out of nowhere, I realized I couldn't install anything and apt-get update would produce this result: $ sudo apt-get update Get:1 http://security.debian.org wheezy/updates Release.gpg [1,936…
user986730
  • 1,226
  • 1
  • 13
  • 12
9
votes
3 answers

Debian apt-get upgrade How to install only security updates?

How to install only security updates in Debian? When I run apt-get upgrade, apt will offer all updates.
isevcik
  • 553
  • 1
  • 4
  • 15
9
votes
1 answer

apt vs wsgen vs wsimport .Confusion on what to use when and why not to use the other

I have been trying to write a web service (JAX-WS) and I have gone through a number of tutorials ranging from 2006 to 2013 ones. Most of them are with respect to some IDE. Those which talk about manual creation/deployment of web service are with ant…
Bhavik Shah
  • 358
  • 4
  • 11
9
votes
1 answer

Equivalent in yum of apt-get update

In Debian derivatives, before installing software from apt using apt-get install xxx, it is necessary to run apt-get update. This refreshes the package lists so that dependencies are resolved correctly, etc. When using an RHEL instance, out of…
sffc
  • 6,186
  • 3
  • 44
  • 68
9
votes
2 answers

E: Unable to locate package git - Ubuntu on EC2

Looks to me like there may be a problem with the Ubuntu EC2 mirrors. After a fresh apt-get update, I'm seeting this: $ apt-get install -yq git E: Unable to locate package git After a few more apt-get's, it will often succeed.
gabrtv
  • 3,558
  • 2
  • 23
  • 28
9
votes
4 answers

Dpkg Python module?

I'm trying to do some package manipulation (a la dpkg) and while I can just popen or subprocess.call I'd rather do things the python way if possible. Unfortunately I've been unable to find a python module to do the trick. I've seen reference to…
Catskul
  • 17,916
  • 15
  • 84
  • 113
8
votes
2 answers

Apt error: File on system created by you or by a script

I have a simple bash script that connects to a series of servers and updates a specific package, using a here-string to answer a prompt: sudo /usr/bin/apt-get install package-name <<< Y The prompt is: Configuration file…
fja
  • 91
  • 1
  • 5
8
votes
1 answer

ModuleNotFoundError: No module named 'apt_pkg' installing deadsnakes repository

I want to install Python 3.10 on Ubuntu 18.04 (I'm currently on Python 3.8) from the deadsnakes repository with the following set of commands I found on the internet: sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update sudo apt install…
RTC222
  • 2,025
  • 1
  • 20
  • 53