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
11
votes
1 answer

python-is-python-2 package... something new?

I have upgraded to Ubuntu 20.04 LTS from Ubuntu 20.04 (dev branch) and I have noticed that sudo apt install python installs python-is-python-2 instead of python2 (from Ubuntu 18.04) or python-minimal (from Ubuntu 20.04 dev). Is this something new?…
Aaron John Sabu
  • 297
  • 1
  • 2
  • 13
11
votes
1 answer

Debian: How can I pull a single package with dependencies from another repository?

I am on debian etch and I want to pull subversion1.5.1 from testing though it is a production machine. I need to keep the risk minimal. Any hints?
prinzdezibel
  • 11,029
  • 17
  • 55
  • 62
11
votes
2 answers

Containing resources used by automatic apt-config

I am running Debian Linux 9 (Stretch) with a 4.9 kernel, and I notice periodically the system launches an apt-config process with user _apt that uses 100% CPU and consumes enough resources that I can't mount or unmount volumes, much less use desktop…
ultradian
  • 581
  • 5
  • 20
11
votes
5 answers

Could not find method apt()

I'm trying to work with Dagger2, I am using Android studio 2.2.2 but I have an error with gradle: Error:(34, 0) Could not find method apt() for arguments [com.google.dagger:dagger-compiler:2.6] on object of type …
ediBersh
  • 1,135
  • 1
  • 12
  • 19
11
votes
4 answers

mysql 5.7 community server non-interactive apt install

I am trying create a shell call for non-interactive mysql 5.7 community server installation on ubuntu 14.04. According to various sources using debconf-set-selections should allow such an installation yet I am unable to launch non-interactive dpkg…
Armo
  • 113
  • 1
  • 6
11
votes
1 answer

What is the -y flag used for in apt-get install?

What does the -y flag do when you're running apt-get install? Example, from https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions: sudo apt-get install -y nodejs
saricden
  • 2,084
  • 4
  • 29
  • 40
10
votes
3 answers

Is there a C# equivalent of Java's Annotation Processing Tool (apt)?

Java's apt tool allows you to execute code at compile time based upon the annotations you place in your code. C# has attributes, which work like Java's annotations, but try as I might I can't seem to find a ready-made tool (ideally an open source…
swift
  • 131
  • 1
  • 4
10
votes
5 answers

How can I automate dpkg/apt-get?

I'm trying to create a script that automatically downloads packages for new servers. However, some things like 'mysql-server' can not installed automatically cause you need to configure them in the ncurses interface first. I've looked through the…
eyberg
  • 3,160
  • 5
  • 27
  • 43
10
votes
5 answers

How to make APT assume yes and force yes for all installations in a Bash script

I'm currently getting into Linux and want to write a Bash script which sets up a new machine just the way I want it to be. In order to do that I want to install different things on it, etc. What I'm trying to achieve here is to have a setting at the…
Chris
  • 379
  • 1
  • 2
  • 10
10
votes
2 answers

Installing gcloud / gsutil on Ubuntu 18

Looking to migrate some storage buckets from AWS S3 to Google Cloud Storage but not having any luck getting the GCP tools installed on my Ubuntu 18.04.4 VM. Following this guide:…
John Heyer
  • 711
  • 1
  • 6
  • 18
10
votes
1 answer

Error while installing debian packages programmitically using apt_pkg

I've built some debian packages and put them on my host. I want to install these packages in a python script. So I've written the install function using apt_pkg as follows : #!/usr/bin/env python # -*- coding: utf-8 -*- import apt import…
payman
  • 300
  • 2
  • 15
10
votes
4 answers

ModuleNotFoundError No module named apt_pkg

I am trying to add a repo using command sudo add-apt-repository ppa:gezakovacs/ppa Following is complete error - Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 11, in from…
user1184294
  • 347
  • 1
  • 5
  • 11
10
votes
7 answers

How to restore after accidentally apt-get remove python

Yeah. I've done this. It was stupid. I did not know it's going to take its dependencies with itself, only wanted to install python 2 and 3 from scratch (because of this problem:…
MattSom
  • 2,097
  • 5
  • 31
  • 53
10
votes
1 answer

QEMU with BeagleBone support

i would like to emulate BeagleBone Black. It seems that QEMU is the only emulator that supports Linux emulation for ARM. However i m having difficulty in getting the right emulator. I tried using QEMU build from qemu.org but it seems that the…
Yevgeniy P
  • 1,480
  • 1
  • 15
  • 23
10
votes
7 answers

My apt got messed up installing boost

On ubuntu #> sudo apt-get install libboost-all-dev Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet…
spraff
  • 32,570
  • 22
  • 121
  • 229