Hot answers tagged

5

I also encountered this same issue after following an online article to install nvidia drivers - following is the error I got and how I fixed it libnvidia-gl-450-server: Depends: libnvidia-common-450-server but it is not installed Depends: libgcc1 (>= 1:4.2) but 1:8.4.0-1ubuntu1~18.04 is installed libnvidia-gl-450-server:i386: Depends: libnvidia-common-...


3

"How does it know which files to remove?" is exactly the same question as "How does it know which files to install?" You gave apt/dpkg that information in the package structure. Files created at runtime must be removed by a prerm script in order to meet the Debian standard of idempotence: apt install foo followed by apt remove foo must ...


3

Yes and No. It'll depend what is inside the package, and what if any dependencies it has & requires. There are many packages which have NO impact on anything else, but most will have impact. It'll depend on the package. In your example google-chrome-stable, on my system it reports guiverc@d960-ubu2:/de2900/lubuntu_64$ apt-cache depends google-chrome-...


3

Aptitude is amazing !!! It has solved many such issues. Try using it: sudo aptitude install <package-name>. or You may even try sudo aptitude dist-upgrade. FYI - This requires aptitude to be installed. If you don't have it run sudo apt-get install aptitude. Good luck 👍


2

It's a chain of dependencies: emacsen-common is a dependency of dictionaries-common dictionaries-common is a dependency of aspell aspell is an indirect dependency of libwebkit2gtk And a lot of things depend on libwebkit2gtk. emacsen-common is part of the default install of Ubuntu, so it's not something you have to remove as part of your Great Emacs Purge ...


2

I tried the solution of @TrailRider and didn't work for me. I solve it doing the following: Delete the updates with: cd /var/lib/dpkg/updates sudo rm * Tried to update and upgrade: sudo apt update sudo apt upgrade I couldn't, it says that - E: Could not get lock /var/lib/dpkg/lock, this means that some program is updating the system or installing a new ...


2

In short, yes. Pretty much every method of installation in Linux (except for maybe appimages and snaps) is bound to have dependency problems. However, the point of using apt to install .deb files is that it can still find dependencies. You can still have dependency problems with .deb files and apt, but they are not as common as installing them with dpkg -i ...


1

Once you install your deb file, do this: dpkg -L <packagename> You will see that it lists all the content of your package. This means that the system knows which files were installed by a package and therefore knows what to remove. This information is found in the following location: /var/lib/dpkg/info For each package there exists a file named ...


1

apt list --installed | sed s/Listing...// | awk -F "/" '{print $1}' > $(date +aptlist-%m.%d.%Y-%H.%M.%S.txt) Creates the file which lists all of the installed packages. xargs -a ThatFileCratedAbove.txt sudo apt-get install Will install them from the list ....I would test the file first with apt-get -s install to simulate installation, just to ...


1

Error with `apt upgrade` help sudo dpkg --configure -a, followed by: sudo apt --fix-broken install


1

You have multiple problems. Just read your output, and it will tell you everything you need. You have obsolete PPAs. Remove them. You have a mangled script. Your output says: /usr/sbin/grub-mkconfig: 13: /etc/default/grub: After: not found The /usr/sbin/grub-mkconfig file is provided by the grub-common package. Simply re-install it: sudo apt install --...


1

Actually I found an answer on Error: subprocess installed post-removal script returned error exit status 1 - Ubuntu Forums The steps that worked for me are pasted below The problem appears to be in the post installation script of GRUB: /etc/kernel/postrm.d/zz-update-grub I don't have the problem but I've done what follows. The only difference is that my ...


1

The tr archive server for ubuntu is throwing the error Change the http://tr.archive.ubuntu.com/ubuntu in /etc/apt/sources.list to http://archive.ubuntu.com/ubuntu. Do an apt-get update and then try to install apt install nasm Hope this helps.


1

After some digging around with different solutions I came to one that helped me. I restored the sources.list file using solution provided in this answer I restored the status file using these commands found here: mv /var/lib/dpkg/status /var/lib/dpkg/status.old ls -l /var/backups/dpkg.status* cp /var/backups/dpkg.status.0 /var/lib/dpkg/status I had ...


1

Firstly try, sudo dpkg --configure -a If that didn't work use aptitude instead of apt-get sudo aptitude install package_name_here It will suggest dependencies solutions. Try them. If everything else fails, you need to manually edit dpkg status file sudo gedit /var/lib/dpkg/status Then look for the problematic package name. Remove those packages and save ...


1

You have suspicious binaries in the /etc/grub.d/ subdirectory, especially the grubcfg_proxy. This file is a part of the grub-customizer package. So you have to try to call GRUB Customizer to fix the issue by its own. And then resume package upgrade.


1

Let's review how to find packages in the Ubuntu repositories. First, let's look for rar using the packages.ubuntu.com website. The web page for rar shows that the rar package does exist in the Ubuntu repositories, it's available for 20.04, and it's in the "multiverse" pocket: Next, let's look for "multiverse" in the Software & ...


1

Uninstall and remove Mongo packages. $ sudo apt-get purge mongodb-org* Check if related directories removed $ sudo rm -r /var/log/mongodb $ sudo rm -r /var/lib/mongodb Recheck for autoremove any remaining mongo packages $ sudo apt-get autoremove Configure your directory $ sudo dpkg --configure -a Force install anything required $ sudo apt-get install -f ...


Only top voted, non community-wiki answers of a minimum length are eligible