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.
218
questions with no upvoted or accepted answers
6
votes
0
answers
826
views
Prefer a local mirror without changing /etc/apt/sources.list?
We have local mirrors for Ubuntu (Debian) at http://ubuntu.wikimedia.org/ubuntu/ (https://mirrors.wikimedia.org/debian/). I want to configure clients to prefer downloading/only download packages from ...
5
votes
0
answers
4k
views
Unable to apt-get install nginx-extras package on top of nginx 1.7.9
I am attempting to install Phusion Passenger for nginx on a dev Ubuntu box following this guide from the passenger website.
I have Nginx installed and running already, version is 1.7.9-1~trusty.
I ...
4
votes
1
answer
871
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 ...
3
votes
0
answers
639
views
Tasksel with E: read, still have 1070 to read but none left
I try to use tasksel to install webserver
But When I run tasksel
i just get E: read, still have 1070 to read but none left
Run On Ubuntu 14.04.3 LTS \n \l
Kernel 3.18.20-nce-amd64
3
votes
1
answer
926
views
How do I download a new Ubuntu release without installing it?
I want to upgrade - in this case, from Ubuntu Trusty to Vivid (going through Utopic if necessary) but I'd really rather do the upgrade in two parts, doing a dry run to get all the packages locally ...
3
votes
1
answer
163
views
Disallow virtual package in Debian's /etc/apt/preferences
I know I can disallow a particular package in Debian by appending /etc/apt/preferences with:
Package: *x11*
Pin: release
Pin-Priority: -1
But how can I do that for a virtual package like httpd? I'd ...
3
votes
1
answer
768
views
dpkg broken while upgrading Debian Etch to Lenny
Good day!
While trying to recover a box to lenny it seems I've broken things. It upgrades libc and glib after that dpkg seems to be broken.
I can run apt-get, but it gets segmentation fault from ...
2
votes
1
answer
1k
views
debian - packages have unmet dependencies
i am having Debian 11, and i am trying to install some php libs like mysql:
command: sudo apt install php-mysql
result:
Reading package lists... Done
Building dependency tree... Done
Reading state ...
2
votes
0
answers
4k
views
apt-get: libc6 upgrade needed but can't be installed; Kernel update needed but can't be done like anything else
Hello serverfault community!
After upgrading to Debian Buster apt doesn't seem to work in any way. I've read and tried several solutions but none of these worked.
Output when I try to install any ...
2
votes
0
answers
122
views
How do I get notified of automatic "apt-get update" errors?
On a Debian Stretch server, APT ist configured via /etc/apt/apt.conf.d/10periodic to automatically update itself every day.
Hadn't I run "apt-get update" manually by chance, I wouldn't have noticed ...
2
votes
1
answer
78
views
Does anyone have experience of load balancing an apt repository? Can it be done?
I'd just like a bit of a head start on this if anyone's any experience of it. Searching for things like "apt load balanced" gives remarkably little of use.
We currently have an apt repository on a ...
2
votes
0
answers
800
views
apt-get reinstall requires removal of essential packages
I did a dist-upgrade from debian 8 to debian 9.
Now I need to reinstall xserver-xorg-core.
But in doing so, apt-get wants to remove 'init'.
# apt-get install --reinstall xserver-xorg-core
Reading ...
2
votes
1
answer
594
views
Download all package versions with aptly
How can we download all versions of a package when mirroring ?
An example is the scsi-modules which can be found here: http://archive.ubuntu.com/ubuntu/pool/main/l/linux/ i need them all mirrored yet ...
2
votes
1
answer
746
views
Signing debian repository: Avoided SHA1, apt-get update still complaining about weak digest
I maintain a small debian repository for my employer, and we have been facing issues lately due to the SHA1 deprecation.
We sign our packages with a 4096bit RSA key. For signing the repository, I ...
2
votes
0
answers
688
views
Issues installing R package, r-base; Ubuntu 14
I am having a massive headache trying to install R. I go to install r-base and I get the following.
root@10:/etc/apt > apt-get install r-base
Reading package lists... Done
Building dependency ...
2
votes
0
answers
3k
views
Ubuntu 12.04/14.04 - apt-get 404 Not Found [IP: local-dns-server-ip 80] through proxy
I am trying to setup an ubuntu server (12.04 or 14.04) and have installed the server image onto the system I am using.
Everything works fine until I try to run sudo apt-get update. When this runs, I ...
2
votes
0
answers
2k
views
Debian: how to install a 64 bit package using apt?
I am migrating my system to 64 bit and the debian wiki suggests to first debootstrap a 64bit into a directory, then collect all 64bit packages and install them but this doesn't work.
To install 64bit ...
2
votes
0
answers
1k
views
Ubuntu 13.04: apt-get and check-new-release CPU bound
I own a virtual server hosted by a provider. A few hours ago I was notified about the VM being CPU-bound. I couldn't log in and rebooted the server. After the boot, apt-get and check-new-release were ...
2
votes
2
answers
1k
views
apt-get hangs on download packages from our local repository
hope you guys can help me find out a solution to this problem that's causing me headache.
My company has a number of front end servers based upon Debian Squeeze, we also set up a local repository ...
2
votes
1
answer
17k
views
apt-get update error in Debian 11 "Temporary failure resolving" and also "Failed to fetch"
This is what I get when I run the apt-get update on my debian 11 server.
Err:1 http://deb.debian.org/debian bullseye InRelease Temporary failure resolving 'deb.debian.org'
Err:2 http://packages.sury....
2
votes
1
answer
2k
views
mdadm warning after apt-get upgrade - can't boot RAID
I'm running Ubuntu 12.04 precise. A recent apt-get upgrade ended successfully, but printed the following warning at the end:
update-initramfs: Generating /boot/initrd.img-3.2.0-21-generic
W: mdadm: ...
1
vote
0
answers
60
views
debian:jessie container, apt-get update 100% CPU in PhotonOS host
In a Photon OS machine in VMware ESXi:
docker run debian:jessie apt-get update
The apt-get update process takes several hours to finish, using ~100% CPU. Even with an empty /etc/apt/sources.list.
...
1
vote
0
answers
138
views
Running hardened Ubuntu 22.04 desktop in an air gapped environment
I am trying to run Ubuntu 22.04 in an a semi Air Gapped environment.
The OS has been hardened using CSI hardening. There is no direct connection to the internet, but there is a Nexus Repo server ...
1
vote
0
answers
1k
views
How do I know whether to accept APT repository changes?
When I run sudo apt update (on a DigitalOcean Ubuntu server), I get this message:
E: Repository 'https://packages.redis.io/deb jammy InRelease' changed its 'Origin' value from '' to 'packages.redis.io'...
1
vote
1
answer
1k
views
Cannot "apt upgrade" due initramfs error - "update-initramfs: failed for /boot/initrd.img-5.15.0-86-generic with 1."
I have a Ubuntu 22.04 VM with CloudInit on a Proxmox Host which worked well, but recently I got often the issue after some time (some days, even after reinstalling) that I can't upgrade packages due ...
1
vote
0
answers
445
views
Ansible apt "No package matching 'libgl1-mesa-glx' is available" but "sudo apt get install -y libgl1-mesa-glx" succeeds
I have a task in a playbook that is failing. The task is as follows:
- name: Install Zoom dependency
apt:
name: libgl1-mesa-glx
state: present
The output is:
TASK [role-name : Install Zoom ...
1
vote
1
answer
835
views
Cache update error using playbook
I keep getting this error when running my playbook on Ubuntu 22.04LTS server and have been trying to fix it for sometime now but aren't making progress.
fatal: [MY IP]: FAILED! => {"changed&...
1
vote
1
answer
623
views
Cannot downgrade linux-image-amd64
Some time ago, I wanted to try the 5.10.127-2~bpo10+1 kernel on Debian
10 Buster system.
However, that kernel was not maintained nor patched by Debian any longer.
Now, new 4.19.x kernels no longer ...
1
vote
1
answer
1k
views
Why would Dpkg::Options --force-confold be ignored?
I have been trying to suppress an interactive dialog with regards to modified config files and conflicts. I have been all over the search results, and everyone keeps copy and pasting the same exact ...
1
vote
0
answers
684
views
Ondřej Surý's PPA - php7.4-xdebug also installs php8
OS: Ubuntu 20.04 focal (on the Windows Subsystem for Linux)
Kernel: x86_64 Linux 5.10.102.1-microsoft-standard-WSL2
Uptime: 1h 20m
Packages: 1612
Shell: bash 5.0.17
WM:
GTK Theme: Adwaita [GTK3]
Disk: ...
1
vote
0
answers
178
views
After iptables to nftables conversion, unable to connect to http nextcloud server and apt doesn't connect
I want to enable access to my nextcloud server and be able to use apt update. I used to be able to before my iptables to nftables conversion. However, after the conversion, its no longer possible. ...
1
vote
1
answer
3k
views
Use ansible to remove all packages associated with a repository
I use the ansible apt_repository module to add and remove Ubuntu repositories. Sometimes, I find it necessary to switch from one repository to an alternate one. And I'd like to have all packages from ...
1
vote
1
answer
4k
views
How to install packages from command line on Suse
What is the Suse version of apt-get or yum? Or how do I get one of them installed in order to install software packages from the command line?
A fairly intense session of googling suggests that it may ...
1
vote
0
answers
82
views
Getting Tripwire to stop complaining about apt upgrades
We use tripwire on Ubuntu servers to monitor integrity of key files. We regularly update packages with apt and end up with noise from tripwire because staff find it is a hassle to update tripwire with ...
1
vote
1
answer
910
views
apt: list packages with the repositories they are coming from
I've found
dpkg-query --showformat="\${Package}\t\${Version}\n" --show \*
but it can't show the repo can it? Probably that info is only known to apt. But which apt command to use?
I'd ...
1
vote
0
answers
1k
views
apt-get from private repository via https with self signed certificate failed by SSL handshake error
I'm not able to use my own apt-source via https.
Using web based repo with imported cert and key-file as apt-source.
Client:
root and intermediate cert in
/usr/local/share/ca-certificates/extra/
has ...
1
vote
1
answer
657
views
Gitlab prometheus error after upgrade with apt-get upgrade
after upgrading my gitlab from 10.9.2 to version 10.10 on my Ubuntu 18.04 it was not possible for the apt-get upgrade process to end successfully. It ended with following message:
Ensuring Prometheus ...
1
vote
1
answer
7k
views
Can't install squid on debian: Job for squid.service failed because a timeout was exceeded
I'm trying to install squid but apt can't finish installation, and returns these errors:
After this operation, 7,263 kB of additional disk space will be used.
Selecting previously unselected package ...
1
vote
0
answers
465
views
dockerfile with apt-get update failing
I am trying to build a docker images with the below content as starting 2 lines.
FROM ubuntu:18.04
RUN apt-get update --fix-missing && apt-get -y install nginx sed python-setuptools python-...
1
vote
1
answer
3k
views
Cloud-init: Add apt source key gnupg not installed
I've a cloud-init script that is used to create and configure a Debian 10 VM and since I want to install nginx I have to add its repository to APT. I'm trying to do it like this:
apt:
...
1
vote
0
answers
2k
views
Completely delete nftables
I am not a Linux guru, but I used to do it, but now I’m completely stuck.
I have Debian Jessie installed on the server, it worked fine, then someone of interns did something there and as a result, ...
1
vote
0
answers
198
views
Disallow apt to install local deb packages
I have to administer a bunch ubuntu clients, where the users are required not to get full sudo rights.
The requirements of each user are rather specific, so I have to install packages for each of ...
1
vote
0
answers
627
views
Reinstalling broken kernel 4.9.0.9 on Debian Stretch
Following recent Intel chip bugs I upgraded my Debian Stretch server. Microcode updated OK, but update-initramfs was hanging. So I killed it and tried to remove the kernel before trying to reinstall ...
1
vote
0
answers
293
views
Building Dockerfile on "RUN apt-get ..." step gives me "jailing process inside rootfs caused 'permission denied': unknown"
I installed docker using snap on Ubuntu 19.04 and ensured that my user has access to the docker group. My Dockerfile is as follows:
FROM ubuntu:18.04
RUN apt-get update
I issue this command:
...
1
vote
1
answer
891
views
How to update the apt-check count of “X packages can be updated” message
Is there a command to update the apt-check results?
I run upgrade and it shows 0 but apt-check still shows 12 packages can be updated. How often is this suppose to update on its own? I have numerous ...
1
vote
0
answers
756
views
Debian depmod kernel error
I have run an apt-dist upgrade on my dedicated server that uses a kernel from the provider and I am getting the following error:
MTL ➜ ~ apt-get dist-upgrade
Reading package lists... Done
Building ...
1
vote
0
answers
50
views
Multi VPS: Best practice for semi-automated upgrades?
I've got many virtual private servers, each needing some apt-get upgrade -y lovin' from time to time.
(Ubuntu 18.04)
Problems I face:
I don't have time to upgrade each one manually.
I don't want to ...
1
vote
0
answers
330
views
Debian Jessie : locales / unmet dependencies
So I've got a VPS and, to be totally honest I have to admit, at some point I did a mess with apt sources and packages. :)
Now I'm trying to get a clean system, almost there, but I still have a little ...
1
vote
1
answer
842
views
installing vsftpd gives error on mkdir /srv/ftp
I understand that the vsftpd creates a default directory at /srv/ftp/. However, on this particular server the directory /srv/ is not writable.
$ sudo apt-get install vsftpd
Reading package lists... ...
1
vote
1
answer
1k
views
Apt pinning returns error message about package headers
I have a server running Debian Stretch that I need to install PHP 7.1 on, which isn't available in the default repositories of Stretch, but in Testing aka Buster. I tried to use apt pinning to add the ...