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.

Filter by
Sorted by
Tagged with
4 votes
3 answers
15k views

Avoid apt-utils warning in Debian Dockerfile

When making Docker builds like this: FROM debian:buster RUN apt-get update && apt-get -y --no-install-recommends install \ build-essential \ && rm -rf /var/lib/apt/lists/* I ...
Lassi's user avatar
  • 515
4 votes
3 answers
4k views

apt warnings with HP SDR/MCP repo on Ubuntu

I'm using the HP SDR system (MCP specifically) for Linux packages to manage the HP hardware RAID, iLo, etc. The kernel drivers for the hardware are upstream, so these are just management utilities. ...
roktechie's user avatar
  • 123
4 votes
1 answer
2k views

Exclude sources files for apt-get update

I use an specific command to check security updates: /usr/bin/apt-get update -o Dir::Etc::SourceList=/etc/apt/security.sources.list But when executed it use sources files in /etc/apt/sources.list.d/....
bux's user avatar
  • 636
4 votes
2 answers
700 views

PSQL 64bit driver error

I have an Ubuntu 12.04 64bit server setup under Hyper-V. I have installed Pervasive 64bit SQL drivers so that a stock-updater script can run daily (Updates external MySQL database from another local ...
Alexander Holsgrove's user avatar
4 votes
6 answers
2k views

Download packages via apt without root privlidges

I'm working on a script to show differences between config files on a system and those provided in the original package. I have pretty much all of it working, except for using apt to download packages ...
theotherreceive's user avatar
4 votes
1 answer
762 views

Why does "apt-get autoremove sendmail" leave dependencies behind?

I have noticed that installing sendmail, then uninstalling it, using apt-get will leave many unwanted files behind. sudo apt-get install sendmail Reading package lists... Done Building dependency ...
Rolf's user avatar
  • 233
4 votes
2 answers
2k views

How to tell when apt-get upgrade or apt-get dist-upgrade was last run

Is there a clean way to detect when apt-get upgrade or apt-get dist-upgrade was last run on an Ubuntu Server? If there isn't a way to do this by default, where would be the best place to modify a ...
Kelly John Rose's user avatar
4 votes
3 answers
11k views

UFW - deny outbound except for apt-get updates?

What combination of UFW rules would deny all outbound connections except for those which are required to install Ubuntu security updates?
OJW's user avatar
  • 259
4 votes
1 answer
2k views

ubuntu server: SSH banner telling to update packages but nothing to update

When I connect to my Ubuntu 10.04.2 LTS server I get the following banner: 25 packages can be updated. 15 updates are security updates. However if I run package upgrades/updates nothing comes up: $ ...
Max's user avatar
  • 3,563
4 votes
2 answers
9k views

Difference between RPM (yum) and apt-get

Functional difference between the two? Packages different style or what? I'm dipping my toe in the server pool and playing with an Ubuntu install right now, which is apt-get. I'm also considering ...
Josh K's user avatar
  • 454
4 votes
2 answers
7k views

debian wheezy, heartbleed, openssl refuses to update

I am having a strange problem, my system is exposed to heartbleed, and I am trying to fix it by using: apt-get clean, apt-get update and apt-get upgrade openssl but the response is: Reading ...
Wazime's user avatar
  • 461
4 votes
2 answers
1k views

How to recreate /etc/cron.daily/apt?

On my Debian 6.0.8 system the /etc/cron.daily/apt file is missing. Therefore, unattended upgrades do not work. How can I recreate/fix /etc/cron.daily/apt?
robert's user avatar
  • 143
4 votes
3 answers
4k views

apt-get error: "locale: Cannot set LC_CTYPE to default locale: No such file or directory"

When running apt-get I receive error locale: Cannot set LC_CTYPE to default locale: No such file or directory. What can I do to fix this error? I am connecting from a box running Mac OS X.
intlect's user avatar
  • 151
4 votes
2 answers
5k views

What should I do if a package has not installation candidates?

I am trying to install php5-sqlite3. In the command line I type: sudo apt-get install php5-sqlite3 As I result I get: Reading package lists... Done Building dependency tree Reading state ...
Roman's user avatar
  • 2,609
4 votes
1 answer
3k views

Gitlab Debian Repository Public Key is Not Available

When running 'sudo apt update' I get the following error: user@gitlab:~$ sudo apt update Hit:1 http://security.debian.org/debian-security stretch/updates InRelease Ign:2 http://ftp.fi.debian.org/...
Stuggi's user avatar
  • 3,576
4 votes
1 answer
5k views

apt-get dist-upgrade failing on mssql-tools and msodbcsql17 packages, ubuntu 16.04

I did regular upgrade of packages as always and something broke, cant even purge the packages due broken dependencies. The server is Ubuntu 16.04 on Azure. We are using MySQL on this server, so this ...
Experiance Tranquility's user avatar
4 votes
1 answer
2k views

How to stop nginx from being automatically started on install?

I am trying to install Nginx on Ubuntu 16.04 via the following command: sudo apt-get install nginx But I am getting the following error: Job for nginx.service failed because the control process ...
soham's user avatar
  • 141
4 votes
1 answer
869 views

why is apt-get install anything is asking to update nginx.conf ? How to fix this using chef?

I was trying to install few packages which are non related to nginx (for example htop) using chef script. But it was failing because its asking to update nginx.conf and nginx/sites-available/default. ...
Rahul Prasad's user avatar
4 votes
5 answers
25k views

Ubuntu14.04 - unable to apt-get update

sudo apt-get update returns some erors : W: Failed to fetch http:// archive.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry 'restricted/source/Sources' in Release file (Wrong ...
Laurent Demouge's user avatar
4 votes
2 answers
6k views

How do I override apt-get removing dependent packages?

I want to replace postfix with exim4 on my Ubuntu test server to reflect the setup I have on my production server, but apt-get and aptitude (quite understandably) insist on removing several packages ...
iainH's user avatar
  • 301
4 votes
1 answer
9k views

apt update different behavior in Dockerfile and prompt, return error code 100 but works

I'm trying to install an apt source on the Microsoft azure function docker, here is my Dockerfile FROM mcr.microsoft.com/azure-functions/python:3.0-python3.9 RUN echo 'deb [trusted=yes] http://deb....
Holt's user avatar
  • 191
4 votes
1 answer
718 views

Managing (and pinning) package versions with puppet

I have an installation that I'm trying to manage with puppet. For some of the packages we want to have very tight control over the versions. Since they are critical to our application, we only ...
Andres Olarte's user avatar
4 votes
3 answers
4k views

php5-gd shows in "php -i | grep -i gd" but not in phpinfo();

I am trying to enable GD in my installation of Apache2, PHP5 and MySQL on my Ubuntu server. I installed php5-gd with: apt-get install php5-gd And when I run php -i I get: gd GD Support => ...
Qzen's user avatar
  • 43
4 votes
2 answers
2k views

Chef recipe to install varnish 3.0 on ubuntu lucid?

Here's my problem. I want Varnish 3.0, but Lucid only has the 2.1 package available. So using Chef, I need to make an install recipe that adds the varnish-cache.org repository to the apt sources and ...
Mojo's user avatar
  • 965
4 votes
1 answer
157 views

Managing myriad package repositories

On testing, development, and some other server and workstation environments, I use a variety of package repositories (with CentOS, for example, these include: remi, epel, rpmforge, jpackage, and ...
warren's user avatar
  • 18.7k
4 votes
1 answer
2k views

How to get pcre 8.x on Ubuntu 10.04 (Linode)

I'm trying to set up Bug Genie 3.x on my Linode server, and it is complaining because I have pcre 7.8 instead of 8.x. Doing an apt-get update and upgrade doesn't help and says that I have the latest ...
devrelm's user avatar
  • 143
4 votes
2 answers
1k views

How do I install a package from Ubuntu Karmic onto Jaunty?

I'd like to know if the following is easy/possible/recommended. The version of Ubuntu I'm using (jaunty) has an out of date package that I need to upgrade: http://packages.ubuntu.com/jaunty/...
Tom's user avatar
  • 2,662
4 votes
1 answer
967 views

Apt Pinning: Pinning based on multiple criteria

I'm attempting to pin a package based on more than one field. In my case, the origin and the version. My specific reasons for doing this is to ping RabbitMQ's Erlang release at a specific version. I ...
Gert van den Berg's user avatar
4 votes
1 answer
2k views

Docker install on clean Debian 10.2 causes error with aufs-dkms package

After installing Docker 19.03 on a clean updated Debian 4.19.67 I am experiencing some problems with the aufs-dkms package that is a dependency. I even reinstalled the Debian server and tried all ...
sdittmar's user avatar
  • 383
4 votes
2 answers
5k views

Can't install certbot on ubuntu 16.04.3

I'm trying to install certbot in my ubuntu 16.04.3 server, the same commands that work with 16.04.2 won't do it. The python installed is default Python 2.7.12 This is the installation script: #!/bin/...
Gus's user avatar
  • 163
4 votes
1 answer
4k views

Unattended Upgrades not running

I have installed the Unattended Upgrades package and have an apt cron in /etc/cron.daily/aptbut it's not running automatically. There's nothing in /var/log/unattended-upgrades/ and there are pending ...
CJD's user avatar
  • 237
4 votes
1 answer
3k views

apt: list required dependencies for deb package without installing it

For a build tool I'm writing (for which I'd like to implement a sort of dependency-caching system) I'd like to know what the missing dependencies for a .deb package are, without resorting to ...
Alan Franzoni's user avatar
4 votes
1 answer
536 views

Permission Mystery - apt-get and other system utilities have 000 permissions

I'm trying to track down this strange behavoir for years now. Always after installing software-updates the permissions of a lot of system-tools are broken as you can see below. I am reasonable ...
kei1aeh5quahQu4U's user avatar
4 votes
1 answer
2k views

Add image support to GD on Debian

I've recently replaced our aging (386) monitoring machine with something a bit more recent and because I had driver issues with CentOS I decided to use Debian 6 (Squeeze) instead. While in the past I'...
John Gardeniers's user avatar
4 votes
2 answers
4k views

I get a Segmentation fault when doing apt-get util-linux

I've found that a lot of upgrade commands and Apache on my system are failing with Segmentation faults. I don't know if this is the main one, but a lot of packages depend on util-linux: root@...
Adam's user avatar
  • 225
4 votes
0 answers
30k views

Failed to start OpenBSD Secure Shell server [closed]

I have Debian Testing on my server. When do upgrade, it wants to upgrade openssh-server and fails... openssh-server (1:7.3p1-1) wird eingerichtet ... Job for ssh.service failed because the control ...
Paflow's user avatar
  • 187
4 votes
1 answer
869 views

reprepro use when multiple sources have the same codename

I'm investigating the use of reprepro to control what updates get propagated to our servers, and when. The idea is to vet updates by Debian and Ubuntu, and only apply the ones we choose. We want to ...
Christopher Vance's user avatar
3 votes
2 answers
13k views

apt-get update fails on Debian etch

I have a debian server running Etch. I can no longer seem to run apt-get update properly: root@charm osqa ] apt-get update Ign http://ftp.uk.debian.org etch Release.gpg Ign http://ftp.uk.debian.org ...
Joel's user avatar
  • 479
3 votes
1 answer
29k views

How to get the default vsftpd.conf by installing vsftpd? [closed]

I am installing a new server and I have been adjusting my vsftpd settings when it suddenly stopped working. I noticed that the service vsftpd only worked if the vsftpd.conf was empty or deleted. So I ...
Deproblemify's user avatar
3 votes
5 answers
3k views

Broken upgrade of debian, causing perl issues

So I stuffed an upgrade of debian, both upgrade and dist-upgrade. I am more used to yum but thats no excuse. Now things are being silly. The majority of things work, however, my bugzilla install ...
Christian's user avatar
  • 789
3 votes
1 answer
7k views

Using APT how can I install phpMyAdmin without 'apache2' and all of the other gumpf?

I have found that a lot of packages that get installed with APT tend to have many extra packages that get installed, but I am no sys-admin so I generally accept this. As I start to get to grips with ...
Check12's user avatar
  • 133
3 votes
3 answers
8k views

How to remove package from apt-get autoremove "queue"

I just installed Calibre for ebook management via apt-get on Ubuntu 10.04, however I found out that it's one major version behind the current release, so I decided to reinstall it directly from ...
Jakub Arnold's user avatar
  • 1,794
3 votes
2 answers
8k views

Can't install MySQL

I have a Debian machine that I have previously installed MySQL on. In an attempt to delete it, I stupidly deleted the directories/files /etc/mysql/, /etc/init.d/mysql, /usr/lib/mysql/, /var/lib/mysql/....
James Marthenal's user avatar
3 votes
3 answers
4k views

What is the format of specifying 'http' repositories in /etc/apt/sources.list?

After specifying the url of the repository, what do the tags like 'stable','non-free' mean in the entries of /etc/apt/sources.list ? If we know the url of a repository, how do we decide about these ...
3 votes
1 answer
2k views

When installing docker on Ubuntu, why isn't it as easy as apt-get install docker?

I've installed docker a dozen times on Ubuntu using the instructions on the docker website (7 commands including removing old versions, adding a gpg keychain etc). I always just powered through, but ...
jorfus's user avatar
  • 785
3 votes
2 answers
13k views

Install package via apt from a live cd to the real system

I can only boot via live CD and I need to install the Debian package firmware-linux-nonfree to my server for it to be able to successfully boot. How can I do this? Would chroot help me ?
Daniel W.'s user avatar
  • 1,739
3 votes
4 answers
274 views

What's the best way to manage package updates on an office full of Ubuntu desktop machines?

We have two offices full of Ubuntu desktop machines. Because our net connection is slow, we'd like to have our own internal package server for each machine to grab and install its updates from on a ...
Jim N's user avatar
  • 33
3 votes
1 answer
3k views

How to get current Debian/Ubuntu version name in a Bash script

How to get in a Bash script the simple lowercase name of the current Debian or Ubuntu release, e.g. stretch, jessie, xenial, artful?
Liz's user avatar
  • 494
3 votes
2 answers
2k views

PCI Compliance: install Apache 2.4.17 on Ubuntu 14.04.3?

I have a VPS running Ubuntu 14.04.3. The latest Ubuntu-supported version of Apache for this release is Apache 2.4.7. But the company for which I configured the server is seeking PCI compliance, and ...
user548958's user avatar
3 votes
1 answer
4k views

"apt-get -y upgrade" in cron task runs but does not upgrade the system

This server runs Debian 7 and I'm facing a big mystery. Here are my cron tasks: $ sudo crontab -e 42 15 * * * apt-get -y update >> /var/log/my-apt-update.txt 52 15 * * * apt-get -y upgrade &...
John Smith Optional's user avatar

1
3 4
5
6 7
24