New answers tagged

1

So that packages you need don't get removed: read -p "Enter package name: " packageName sudo apt-mark auto $(apt-cache showsrc $packageName | sed -e '/Build-Depends/!d;s/Build-Depends: \|,\|([^)]*),*\|\[[^]]*\]//g' | sed -E 's/\|//g; s/<.*>//g') sudo apt-mark manual build-essential fakeroot devscripts sudo apt autoremove --purge However, you ...


0

This behaviour can be configured as well using DPKg::Options:: instead (wurtel explained why DPkg::Pre-Invoke is the wrong place): Here an example from apt.conf with demo script: DPKg::Options:: "--pre-invoke=/tmp/pre-invoke.sh"; Results in e.g.: After this operation, 17.4 kB disk space will be freed. This is testhook. Current action is remove ...


0

To resolve you may check link at Git Repository for the Gem (HTTP_Parser) here. HTTP_Parser currently doesn't not support a Path with spaces, So try to rename the path that have no spaces.


0

Debian Jessie 8.11 is still available on the main site. Debian jessie 8.0 can be accessed from the archive. Your sources is mixed. Edit your /etc/apt/sources.list as follow : deb http://http.debian.net/debian jessie main contrib deb-src http://http.debian.net/debian jessie main contrib deb http://security.debian.org/ jessie/updates main contrib deb-src ...


2

Anchoring and escaping the special character + like in a regular expression works: # apt-cache search '^g\+\+-' g++-7 - GNU C++ compiler g++-7-multilib - GNU C++ compiler (multilib support) g++-aarch64-linux-gnu - GNU C++ compiler for the arm64 architecture ... (A visual scan didn't show any packages that didn't begin with g++ in the output.) Tested in ...


0

You'll need to download the latest debian-archive-keyring package for Debian jessie by hand and install it using dpkg -i. You can find a link to it on packages.debian.org. You could also use the stretch package. Note that jessie has reached end of life and is not being security supported further. Because unpatched systems are easy to compromise and ...


0

There was an issue with the Debian 10 upgrade that caused the same issue on one of my servers, with the initrd.img-4.19.0-9-amd64 that was generated being 128MB when all the previous ones had been about 30MB! I just ended up resolving this when the latest apt-get update showed there was a new image available and so I replaced the huge version with a copy ...


0

Hey to update puppy linux you have to click on Menu > Setup > Puppy Updates which is equivalent to apt-get update .... And yes you can install different packages using Puppy Package Manager


0

The error message “Sub-process /usr/bin/dpkg returned an error code (1)” indicates a problem with the package installer. This can happen after a failed software installation, or if the installer becomes corrupted. The key phrase in this error is /usr/bin/dpkg. This refers to the dpkg package installer for Linux. If it is damaged, any new software ...


0

You can add your remount command in systemd unit file: sudo vi /usr/lib/systemd/system/apt-daily-upgrade.service [Service] Type=oneshot ExecStartPre=-/usr/lib/apt/apt-helper wait-online #; add your remount rw here ExecStartPost= ; add your remount ro here ^ this has not been teste (but should work I guess)


2

The 1: at the start of the version in the Ubuntu repositories (known as the epoch) causes apt to consider that version as newer than the version in the PPA. To install the latter, you need to ask apt to do so explicitly: sudo apt install fontforge=20190413-27-g1acfefa-0ubuntu1~bionic You’ll then need to put a hold on it, or add a pin priority on the PPA, to ...


-1

Try running: sudo apt-get install gstreamer0.10 gstreamer0.10-plugins


4

&& means the following command will only run if the previous one exited with 0. Seeing as apt-get update is producing errors, its return code will not be 0 - and therefore, apt-get upgrade is not executed. Workaround: alias upgrate='sudo apt-get update; sudo apt-get upgrade'


0

If it still does not work try: apt-get install gcc-9-base


4

The list of installed packages is in /var/lib/dpkg/status; that is the canonical reference. Installed packages are signalled in that file by their “install ok installed” status. If you only want to track a list of installed packages, you can run dpkg --get-selections periodically and store its output in a file tracked with git.


0

I had this same problem while recovering from a failed update to Ubuntu 20.04. Based on answers elsewhere, I moved appstreamcli out of the way: sudo mv /usr/bin/appstreamcli /root After that, sudo apt update worked without a problem. I then did sudo apt upgrade and finally sudo apt install --reinstall appstream sudo rm /root/appstreamcli This resolved ...


1

The results of apt update are stored in /var/lib/apt/lists. If you back that up, and restore it, and apt update will then only changes since the last update.


0

My solution 😎 function package_exists() { dpkg -s "$1" &> /dev/null return $? } if package_exists abra; then CLIENT=abra elif package_exists cadabra; then CLIENT=cadabra else echo 'Client not found!' exit 1 fi


1

You can fix it by reverting to the appropriate version of libstdc++6 for your distribution: sudo apt install libstdc++6=8.4.0-1ubuntu1~18.04 libstdc++6 is a system library and somewhat difficult to upgrade.


1

The problem isn’t that your system’s version of Harfbuzz is too old, it’s that the Desktop Dimmer binary provided in the package embeds a version of Harfbuzz that’s too old. I’m not sure how the dependency is pulled in, but hopefully rebuilding from source would use a newer version.


3

Neither line three nor line four is valid. You have omitted the leading deb and also the name of the respository it's supposed to be referencing. To fix that without an editor it's going to be easiest just to delete them and start over. Run these commands as root (sudo -s), cd /etc/apt grep '^deb' sources.list > tmp mv sources.list sources.list.broken mv ...


0

Ive achieved it on Kubuntu with the following commands: List the packages. read every standard input. store the full path (path | created date) with the format "%n|%y" into a variable. store the name of the file into a variable if both previous commands were executed successfully, values will be printed in a single line. ls /var/lib/dpkg/info/*....


0

Kali needs only one line in the /etc/apt/sources.list file: deb https://http.kali.org/kali kali-rolling main non-free contrib Edit /etc/apt/sources.list if necessary with sudo nano /etc/apt/sources.list. Comment out all other lines in sources.list by preceding them with a # character and save the file. Nano text editor keyboard shortcuts Use the keyboard ...


0

If Debian has GPG (gpg) installed, a more secure option for installing ZeroTier One is available: curl -s 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg' | gpg --import && \ if z=$(curl -s 'https://install.zerotier.com/' | gpg); then echo "$z" | sudo bash; fi After running the script, use apt ...


0

use: sudo apt purge virtualbox. (with a dot at the end), it will remove all virtualbox* packages.


0

Clearly there are some broken dependencies. Got the same issue. # apt-get dist-upgrade The following packages have unmet dependencies: libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6 is to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. So, I ran #apt-get install libgcc-8-dev, hoping ...


0

Go to https://snapshot.debian.org/ (Debian package archive), pick a Wheezy snapshot and point your sources.list to it. Then you will be able to install old packages from that specific snapshot. There may be quirks you have to deal with on dated systems, like manually installing apt-transport-https package or specifying [check-valid-until=no] in sources.list.


0

Thanks @muru for referring to this post, it was indeed a problem with Windows' hyper-v and VirtualBox. Disabling the hyper-v acceleration solved the problem.


3

Try sudo apt purge virtualbox-6.0 or sudo apt purge virtualbox*


0

I'm not sure, but I think I fixed it by commenting out the left-over repository from the third-party RNXtras PHP7.2 app (which I had tried, unsuccessfully, to uninstall), then purging and reinstalling a few things: # vi /etc/apt/sources.list.d/rnxtras.list # deb https://repos.rnxtras.com/debian/rnx-rnos6 rnx-rnos6 main # apt-get update # apt-get remove --...


0

Kali needs only one line in the /etc/apt/sources.list file: deb https://http.kali.org/kali kali-rolling main non-free contrib Edit /etc/apt/sources.list if necessary with sudo nano /etc/apt/sources.list and save the file. Nano text editor keyboard shortcuts Use the keyboard combination Ctrl + O and after that press Enter to save the file to its current ...


0

Have you updated your repo metadata? I am assuming your installation is new, so you probably need apt to look over your package sources and index the available packages. Try sudo apt update && sudo apt install apache2.


0

Ok so after asking in every forum in the world, I got an answer on the Mint forums, here. He said it has something to do with a "partially added OBS repo". Not gonna lie, I don't know what he's talking about, but if you're having this problem then this is what fixed it for me. I'd recommend you remove any PPA that's having issues, and then run this ...


0

Though a similar answer already exist and several similar answers are there on AU also, I am posting this answer to recommend the use of apt-ftparchive instead of dpkg-scanpackages Why apt-ftparchive instead of dpkg-scanpackages? dpkg-scanpackages command is provided by dpkg-dev package which doesn't come with installation image of distribution, as per my ...


2

Use apt-file for this task. If it's not installed, sudo apt install apt-file. Run apt-file update after installation. apt-file search setcap for example. If you don't want to install anything locally, you can use debian index online.


2

Your regular expression doesn't look correct. It is matching package names containing (not necessarily starting with) "php7" plus one more arbitrary character (".") followed by an arbitrary number of characters which are none of the following: p, h, 7, ., 0. What you probably want instead is the following regular expression: sudo apt-get -...


1

What I would do: sudo apt-get remove --purge $( dpkg -l | awk '$1 == "ii" && /php7/ && !/php7\.0/{print $2}' ) To pass variables to awk, use -v switch: EXCLUDE_VERSION='php7.0' awk -v exv="$EXCLUDE_VERSION" '$1 == "ii" && /php7/ && $2 !~ exv{print $2}'


0

@boolean.is.null: Just to update anyone with the same issue and thank @boolean.is.null for their answer. It worked for me to! I am running Devuan Beowulf and have been having this exact issue. My problem was that I could not upgrade rustc from the current version to the testing branch onde (an updated version was required for a package I was building), and ...


3

Since there’s just been a gnustep-base transition in testing from 1.26 to 1.27, involving an upgrade from libgnustep-base1.26 to libgnustep-base1.27, you need to allow package removals during upgrade: use apt full-upgrade instead of apt upgrade.


3

APT itself includes a daily task to update its indexes. Nowadays this is a systemd timer, which you can disable: systemctl disable apt-daily.timer If you have PackageKit installed, it will also check for updates periodically. On GNOME, you can control this through the Software application; in its main menu, it has an “Update Preferences” entry which leads ...


0

Please check your source list for any broken or unsupported software sources. Then run. One possible cause of unmet dependencies could be corrupted package database, and/or some packages weren’t installed properly. Clear out the local repository of retrieved package files. sudo apt-get autoclean Resolve dependencies problems sudo apt-get -f install sudo ...


1

Yes, you can. Basically, apt contacts the servers in your package repositories / sources list, see The Debian documentation on apt sources: $ cat /etc/apt/sources.list deb http://site.example.com/debian distribution component1 component2 component3 Here are the sites, e.g. site.example.com port 80 above. More could be in the files contained in /etc/apt/...


2

apt-file stores its indexes alongside the other apt indexes, in /var/lib/apt/lists by default. Look for the files with “Contents” in their name.


1

When you run apt, it tells you about any automatically removable packages after calculating the result of whatever you’re asking it to do. This includes both packages which were already automatically removable before the apt invocation, as a result of previous package removals, and packages which will be automatically removable as a result of the requested ...


0

Thanks @borabora indeed reinstalling snap-store helps: $ snap help The snap command lets you install, configure, refresh and remove snaps. Snaps are packages that work across many different Linux distributions, enabling secure delivery and operation of the latest apps and utilities. Usage: snap <command> [<options>...] Commands can be ...


1

I found the answer: The package manager needs to have the PGP keys to verify package sets from the new repository. You first have to fetch the keys from a keyserver, e.g. the SKS one: $ gpg --recv-keys --keyserver ipv4.pool.sks-keyservers.net 04EE7237B7D453EC gpg: key E0B11894F66AEC98: public key "Debian Archive Automatic Signing Key (9/stretch) <...


0

sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common sudo apt-get --purge remove apache2 sudo apt-get autoremove --purge sudo apt-get purge apache2-data install sudo apt-get install apache2


0

I assume your NAS it's a WDMyCloud with Fox's OS images. For whoever stumbles on this question, the answer is rm /var/lib/apt/lists/*Translation-ru


2

I have manjaro but had this issue already several times, a quick snap store reinstall solved this (try following their instructions https://snapcraft.io/snap-store) and now I have rectangles instead text characters, which I can solve via: sudo rm /var/cache/fontconfig/* sudo rm ~/.cache/fontconfig/*


Top 50 recent answers are included