Questions tagged [apt]

APT is short for Advanced Packaging Tool, the package manager for Debian-based distributions. It is also the most used tool for installing packages in Ubuntu. Questions about using any of the apt commands should use this tag.

Filter by
Sorted by
Tagged with
1 vote
0 answers
38 views

[solved]; I encounter this after running sudo apt upgrade

I encounter this after running sudo apt upgrade in ubuntu 22.04 dpkg: error processing package linux-hwe-6.5-headers-6.5.0-26 (--configure): package is in a very bad inconsistent state; you should ...
4 votes
1 answer
107 views

sudo apt-get upgrade errors

I get the following errors when running the apt-get upgrade: dpkg: error processing package nfs-common (--remove) cannot remove /sbin/umount.nfs4: Bad message E: Sub-process /usr/bin/dpkg returned an ...
1 vote
1 answer
31 views

Can't go through "sudo update" because of GPG key error [duplicate]

I could before, this error started to pop up and after that I wasn't able to: 7,898 kB were fetched in 2 s (3,370 kB/s). Reading package lists… Done Building dependency tree… Done Status information ...
0 votes
0 answers
65 views

apt update stuck at "Generating grub configuration file"

Running Ubuntu 22.04.4 LTS for a long time now.. Never any problems, but today when I did an apt upgrade things seemed to get stuck (see further below for entire log): update-initramfs: Generating /...
0 votes
2 answers
5k views

Problem installing Grub Customizer in Lubuntu

I'm using Lubuntu. I tried to install Grub Customizer but I have problems. I used the following commands: sudo add-apt-repository ppa:danielrichter2007/grub-customizer sudo apt-get update sudo apt-...
0 votes
0 answers
15 views

apt mirror not providing a specific package version

I have a private mirror setup mostly to keep older version of packages. Recently I faced and issue where a specific version of the package which I wanted to install are not available via apt even ...
0 votes
1 answer
7k views

/usr/bin/python3: error while loading shared libraries: libexpat.so.1: cannot open shared object file: No such file or directory

I am trying to get pip install on WSL Ubuntu 18.04.2 LTS. When I try, it fails at installing python3-crypto: Setting up python3-crypto (2.6.1-8ubuntu2) ... /usr/bin/python3: error while loading ...
0 votes
0 answers
31 views

fix-broken install not working?

I have just tried to install the Nvidia Cuda and cudnn. But now when I try to run command upgrade, it shows this error: You might want to run 'apt --fix-broken install' to correct these. The following ...
186 votes
8 answers
326k views

Error :: You must put some 'source' URIs in your sources.list

I'm trying to install PIL a python module on ubuntu I first need to install a package called python-imaging using the following command sudo apt-get build-dep python-imaging When I try and do ...
6 votes
1 answer
25k views

install openjdk 21

I have Ubuntu 22.04.3 LTS. I have run sudo apt update but when I execute apt install openjdk-21 the package can't be located Reading package lists... Done Building dependency tree... Done Reading ...
0 votes
0 answers
25 views

Remove an old Kernel

My network adapter wasn't supported when I initially installed Ubuntu server 20.04. This was several years ago, and my memory of how I addressed the issue is pretty foggy; I'm fairly certain that I ...
1 vote
2 answers
43 views

emacs: libotf.so missing

I'm new to ubuntu and linux in general and I'm trying to install FUSE so I can install .appimage files. But when I try to install or upgrade something using apt or apt-get i get this error: emacs: ...
2 votes
1 answer
112 views

How to install Python 3.12 on Ubuntu 23.10?

I did several wrong things for my first day on Ubuntu when trying to code with Python, so I just reinstalled it. Can anyone tell me the best way to install Python here? I am using Ubuntu 20.04, and I ...
162 votes
6 answers
270k views

What does this apt error message ("Download is performed unsandboxed as root...") mean?

I get it after updating in Synaptic Manager I recently did a clean install of Ubuntu 17.04 from 16.10. error message:- W: Download is performed unsandboxed as root as file '/var/cache/apt/archives/...
0 votes
0 answers
45 views

My sudo apt install command is weird after following some instruction

I'm using WSL and I want to download libpng. And so, initially I typed: sudo apt -y install libpng-dev and it worked until it returned cannot access archive.ubuntu or something like that (I don't ...
0 votes
0 answers
17 views

Showing error on sudo apt-get update and upgrade [duplicate]

DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI connect('database=koha_lislinks;host=localhost;port=3306','koha_lislinks',...) failed: Unknown database 'koha_lislinks' at /usr/...
2 votes
1 answer
2k views

Is there a way to install python 3.12 on ubuntu 23.04 through apt?

There's no python 3.12 in Main or Universe and deadsnakes doesn't support it for 23.04. I'm hoping to avoid having to compile it from source (since I want to use it in Docker images based off of 23.04)...
4 votes
2 answers
7k views

APT Repository is Not Signed Error, But It's Not Even Installed - Wine

I just removed the Wine application, and all of its files, from my system. It was installed with the https://dl.winehq.org/wine-builds/ubuntu jammy InRelease repository. I checked /etc/apt/sources....
0 votes
1 answer
31 views

"libvir" not found in "sudo apt install libvir"

I want to install Qemu on ubuntu 22.04 following this tutorial However, when I enter sudo apt install libvir I get E: Unable to locate package libvir Does anyone know whats wrong with my system? (I ...
0 votes
1 answer
27 views

Ubuntu 23.10 - Update Problems (Some index files failed to download) [duplicate]

I can't seem to get apt to update - aside from having deb-src packages enabled and docker and mozilla repos my apt config should be fairly standard (and it doesn't seem like they're the problem anyway)...
0 votes
0 answers
105 views

Got a dpkg warning during update

After doing a standard update-upgrade I got 2 warning messages highlighted in orange color: dpkg: warning: unable to delete the old directory '/var/lib/ubuntu-advantage': Directory not empty dpkg: ...
0 votes
0 answers
35 views

Failed to install initramfs-tools

Im running Ubuntu server 20.04LTS. I had an error of apt install, please tell me what I should do to solve this problem. image: img-5.15.0-1023-azure Command: sudo apt-get install -reinstall initramfs-...
5 votes
4 answers
2k views

apt-get update for gitlab-runner for Ubuntu 20.04.6 LTS failing with invalid signature

I'm trying to run apt-get update and getting this error for gitlab-runner: # apt-get update . . . Get:6 https://packages.gitlab.com/runner/gitlab-runner/ubuntu focal InRelease [23.5 kB] Err:6 https://...
19 votes
3 answers
8k views

How to make my server email me when there are security updates?

There's obviously a way to check to see when an update is a security update. I often get greeted by a motd that says "there are N security updates." What I'd like to do is have my server email me a ...
0 votes
0 answers
45 views

malformed entry 1 in list error

When I run sudo apt upgrade in my terminal, I have this message: E: Malformed entry 1 in list file /etc/apt/sources.list.d/vscode.list (URI) E: The list of sources could not be read. E: Malformed ...
1 vote
1 answer
241 views

Error while installing Balena Etcher

I was trying to create a bootable USB with BalenaEtcher but encountered an error when installing the program. I downloaded the main .deb file from the github release page but when I run sudo apt ...
1 vote
0 answers
36 views

NO_PUBKEY error of apt update

I'm trying to perform apt-update on ubuntu 22.04 LTS and I get an error root@kisharra:~# apt update Hit:1 http://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease Hit:2 http://ru.archive.ubuntu....
0 votes
0 answers
32 views

It it safe to remove GA kernels when using HWE?

I am running Ubuntu 22.04 with ZFS on root. My boot partition is only 1.8GB - I find that it is constantly running out of space with snapshots of just a couple kernel updates. dpkg -l | grep linux-...
1 vote
2 answers
621 views

Ubuntu froze during 'sudo apt upgrade'

My computer froze after I ran sudo apt update/upgrade. I forcibly turned it off/on. Is there anything I need to do to ensure everything is ok? If I run sudo apt upgrade, I get a message that some ...
0 votes
3 answers
620 views

Unable to remove nvidia and cuda drivers

Question Regardless of how I got here, I really just want to completely remove nvidia and cuda drivers and reeinstall them. But, no matter what I do, I can't get rid of them. Background I'm on Ubuntu ...
3 votes
1 answer
14k views

Ubuntu 20.04 broken updates libc6

in my WSL1, I update Ubuntu 18.04 to Ubuntu 20.04 from Microsoft Store. So I run the command sudo do-release-upgrade and it says to change /etc/update-manager/release-upgrades from Prompt=LTS to ...
4 votes
1 answer
989 views

Reboot does not clear "System restart required. Kernel SRU period has ended"

I have rebooted a few times since I started seeing this message couple months ago but whenever I login I see the same message. I had a couple power outages this summer (before I bought a UPS) so that ...
0 votes
1 answer
131 views

Recommendations for a private deb package repository for Ubuntu servers

At work some teams create internal Ubuntu apps that are built via GitHub action workflows and packaged for Ubuntu as Debian packages. The package files are then uploaded to an Amazon S3 bucket, and we ...
7 votes
2 answers
12k views

sudo apt get update gives error - The package cache file is corrupted

vegan@vegan:~$ sudo apt-get update Hit:1 http://ppa.launchpad.net/fish-shell/release-2/ubuntu xenial InRelease Ign:2 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease ...
0 votes
1 answer
89 views

24.04 updates - how does it work? [duplicate]

I need to build a new server. To avoid a distribution upgrade in a few weeks I was considering installing a pre release version of 24.04. I have a couple of questions though. Will I be able to use the ...
0 votes
0 answers
102 views

ubuntu 23.10. Error updating the kernel

Prop. of my Ubuntu PRETTY_NAME="Ubuntu 23.10" uname -r 5.15.0-72-generic Error updating the kernel to version 6.5 logs: dkms/anbox-ashmem/1/build/make.log DKMS make.log for anbox-ashmem-1 ...
9 votes
3 answers
2k views

Where can I see how a program was installed?

Is there a way to see whether any one application was installed via Snap, from a PPA, via downloaded deb or from a standard repository? At the moment, I have Zoom installed on my Focal 20.04 laptop. I'...
88 votes
9 answers
480k views

How do I remove a malformed line from my sources.list?

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that. I just tried to upload a screen ...
3 votes
0 answers
157 views

apt-get update fails due to NO_PUBKEY in FIPS mode

I encountered some common errors while running apt-get update - no public keys. My Ubuntu is in fips mode, version 5.4.0-1092-fips. The errors I'm seeing while running apt-get update is Err:5 https://...
6 votes
2 answers
4k views

Getting the most recent releases of gcc / g++ (11.0 or 10.2) on Ubuntu 20.04 LTS

I'd like to get the latest releases of g++ (and clang) via package manager (apt). Currently I need to compile gcc/g++ on my own which needs really a lot of time. Are there any repositories with "...
877 votes
9 answers
2.3m views

How do I search for available packages from the command-line?

I have successfully installed some packages using the command: sudo apt-get install packagename when I have known in advance that those packages are available. But how can I search for or get a list ...
3 votes
1 answer
5k views

Firefox, "Bus error (core dumped)"

If I try to launch firefox I get: Bus error (core dumped) When, until last week, I had Gnome 12.04 it was the same... then, during the upgrade (I now have 14.04) Firefox started working (without ...
-2 votes
0 answers
41 views

Deprecated apt-key [closed]

There is a fundamental problem in apt, because it unconditionally trusts all keys in the key ring /etc/apt/trusted.gpg plus all keys in /etc/apt/trusted.gpg.d. Trust is not restricted to particular ...
5 votes
2 answers
29k views

Unable to uninstall package with error "Unable to locate package"

I installed several Kali tools using the Katoolin script. After a while I tried to uninstall these tools, I was able to remove most of them but several apps won't uninstall using sudo apt-get remove &...
-1 votes
1 answer
56 views

"Unable to locate package" errors when trying to remove Thunderbird mail

I am trying to delete Thunderbird mail since I primarily use Gmail in the browser. However, on trying to remove it I'm getting the following error: $ sudo apt-get remove Thunderbird Mail Reading ...
13 votes
5 answers
34k views

How can I find the name of a Package?

I want to create links to software within Software Center using the APTURL - However, I'm not sure how to find out the true "package name". What is the easiest way to discover a package's name for use ...
0 votes
0 answers
12 views

Problems installing packages using apt in Wubuntu [duplicate]

I have problems installing most packages, after installing the Wubuntu distribution, what should I do? bin4ry@bin4ry-desktop:~$ sudo apt install libsdl2-dev Reading package lists... Done Building ...
0 votes
0 answers
45 views

Why does ls -l /etc/apt/trusted.gpg.d list key files twice?

This happens in Xubuntu 22.04.3 LTS. Look at this: $ ls -l /etc/apt/trusted.gpg.d insgesamt 20 -rw-r--r-- 1 root root 392 2024-02-03 17:36 atareao-ubuntu-atareao.gpg -rw-r--r-- 1 root root 0 2024-...
2 votes
0 answers
73 views

libreoffice-calc, draw, and impress (ARM64) were automatically removed and are no longer installable

This is a headless Ubuntu 23.10 (ARM64 architecture) server, originally installed several years ago. Yesterday, as part of a routine software (patch) upgrade, the following was done (from /var/log/apt/...
0 votes
0 answers
23 views

Installing dependency for cocos2dx on ubuntu 22.04

Getting error while trying to install dependency for cocos2dx v4.0 on ubuntu 22.04 sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 Output - Reading package lists... Done Building ...

1
2 3 4 5
350