New answers tagged

0

Please don't break your system by doing something you shouldn't have done, If you don't understand anything please ask, I am pretty sure that most of the commands will just go above your head, So feel free to ask anything. First of all start by running sudo apt --fix-broken install After running the above command try installing aptitude once again by sudo ...


1

I would recommend to reinstall possibly problematic packages at low level: export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" cd ~/Downloads apt-get download python3-minimal sudo -E dpkg -i --force-all ./python3-minimal*.deb sudo -E dpkg --configure -a sudo -E apt-get install -f sudo -E apt-get install --reinstall python3-minimal sudo -E apt-...


1

You have to replace this /etc/default/grub configuration file with default contents using single long command below: cat <<\EOF | sudo tee /etc/default/grub # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' ...


0

Command sudo apt --fix-broken install percona-server-common- will uninstall the conflicting package percona-server-common and probably fix the dependency problems. I could not find that package in standard Ubuntu repositories, so I suppose you have installed it from some third party repository.


0

Try using grub-probe -t device /boot/grub that should show you where its loaded


0

Adding this only in the hope that it might be connected, I have not tested this solution. If deleting the lock files does not help, and if it is not even recommended according to the accepted answer, it might help how the similar problem dpkg: error: dpkg status database is locked by another process could be solved using the recovery mode with sudo dpkg --...


5

The instructions on that page is wrong! The correct commands is: cd ~/Downloads cd stands for change directory. Downloads is the directory. Once you complete the above command, you enter the next one: sudo dpkg -i slimjet_amd64.deb You will be asked to enter your password. When you type the password nothing will show on the terminal. This is normal. ...


0

You can't cd (change directory) to the .deb file as it's not a directory. Try executing sudo dpkg -i ~/Downloads/slimjet_amd64.deb in order to install slimjet_amd64.deb located inside Downloads directory.


0

One line solution to download, install and delete package after install: deb=$(curl -w "%{filename_effective}" -LO https://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.20.0-1~focal_amd64.deb) && dpkg -i $deb && rm $deb && unset deb


0

Never ever redirect to an important system file. Depending on your version of apt, this may or may not replace /dev/null with an ordinary file (so everything written to /dev/null will actually be written to disk). All redirections should be to regular files.


0

So this more or less seems like a corrupted package which is causing issue Now to fix the dpkg error (1) run this command sudo rm -r /var/cache/apt/archives/*.deb # removes the corrupted package but don't fix the problem with the package (we are gonna do that in step 2) then maybe try running sudo apt install aptitude # installes a smart version and ...


1

I am assuming that some condition is not met in preinst file of the deb package. I think it would be better to move the checks from preinst to the wrapper script i.e. install.sh file. eg: #!/bin/bash if [ "$x" -eq "0" ]; then echo Check x = 0 failed exit 1; fi #Put all other such checks here... dpkg -i package.deb This is ...


1

Aptitude may help you to fix the issue. If it is installed please use it as follows sudo aptitude dist-upgrade to get newest dependencies on existing system and then follow its recommendation for possible solution. If it is not installed please install it by sudo apt-get install aptitude and retry with above command. And only when all dependency issues are ...


0

ok... got it working dealing with dpkg directly. $ sudo dpkg -r kubeadm (Reading database ... 204269 files and directories currently installed.) Removing kubeadm (1.22.2-00) ... $ sudo dpkg -r kubelet (Reading database ... 204268 files and directories currently installed.) Removing kubelet (1.22.2-00) ... $ sudo dpkg -r podman (Reading database ... 204266 ...


0

As mentioned on this link, you may need to reinstall it. In my case, I have to manually download the package and install it cd /tmp apt-get download python-minimal sudo dpkg -i python-minimal_*.deb sudo apt-get install -f


1

Select OK. Then, you will be prompted to set a password. Set a simple password, then the command will complete. Simply type sudo reboot, which will reboot your laptop. In the process of rebooting, you will see a blue screen with an option that reads Enroll MOK. Click enter on it and type the password that you set. Do the same for the option Change Secure ...


-1

I had a problem with the same initial symptoms, but the accepted answer did not work for me, as I can not (neatly) remove packages as long as the only thing the package manager does is to ask me to run sudo dpkg --configure -a even though running this any number of times did not change anything. --pending instead of -a For a reason unknown to me – according ...


0

You have to remove this problematic package forcibly by sudo dpkg -P --force-all ldap-account-manager sudo apt-get autoremove


0

Run: dpkg --get-selections | grep softmaker This will output: softmaker-freeoffice-2018 install Then run: sudo dpkg -r softmaker-freeoffice-2018 sudo dpkg -r 'Name got from first command'


1

Big picture here is first show inode of file we wish to delete then specify that inode when we run the delete command sudo -i # become root to remove root owned file # get into dir of file we wish to delete cd /usr/src/linux-raspi-headers-5.4.0-1032/arch/arm/include/asm/mach/ ls -la -i # parm -i says to show inode values now look at output of above ...


4

From this tutorial: Method 1: Reconfigure Package Database The first method you can try is to reconfigure the package database. Probably the database got corrupted while installing a package. Reconfiguring often fixes the problem. sudo dpkg --configure -a Method 2: Use force install If a package installation was interrupted previously, you may try to do a ...


0

I found the solution (specific for your issue) sudo rm -rf /var/cache/apt/archives/linux* This command removes every file which was causing errors If this didn't worked Then sudo rm -rf /var/lib/dpkg/info/linux-modules-5.11.0-38-generic sudo rm -rf /var/lib/dpkg/info/linux-image-generic-hwe-20.04 sudo rm -rf /var/lib/dpkg/info/linux-modules-extra-5.11.0-...


-2

After installing python2.7 , python3.7 from scratch. I installed pyclean with pip2. I had to install pip2 aswell so i did this: curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py python2 get-pip.py Then removed mercurial dpkg's by: sudo rm -rf /var/lib/dpkg/info/mercurial* Then i tried reinstalling mercurial: sudo apt install --reinstall ...


31

You can just undo --add-architecture with --remove-architecture. Dpkg maintains a list of architectures it is supposed to track, apt consumes this list and tries to fetch package lists for each of them.


0

Figured this one out. Ran the following in order and resolved the problem. sudo dpkg --remove --force-remove-reinstreq linux-aws-5.4-headers-5.4.0-1030 sudo apt-get update sudo apt-get upgrade (this will throw an unmet dependencies error) sudo apt --fix-broken install


0

Just install the required version of libpq5 and reinstall libpq-dev: sudo apt-get install libpq5=13.4-1 sudo apt-get install libpq-dev I suppose for psycopg2 you also need: sudo apt-get install python3-dev


0

Just: sudo apt-get remove package2remove --fix-broken Man says: -f, --fix-broken Fix; attempt to correct a system with broken dependencies in place. This option, when used with install/remove, can omit any packages to permit APT to deduce a likely solution


0

If there have been several attempts to install MySQL and they have all failed, then you likely have some incomplete directories that are interfering with the MySQL installation process. The best bet would be to completely remove the software, delete remaining directories, then start again. Here's how: Connect to the VM Ensure the MySQL service is not ...


1

Just press y when it says to remove that package (apt --fix-broken install)


1

I would like to add to the answer of Tomeg, that downgrading with aptitude helped me to keep my packages depending on libc6 installed. When downgrading with: sudo apt install libc6=2.31-0ubuntu9. apt would also uninstall all my packages depending on libc6. The following packages will be DOWNGRADED: libc6 0 upgraded, 0 newly installed, 1 downgraded, 206 to ...


0

See this answer: Apt can't find packages on Ubuntu 20.04 arm64 (Raspberry Pi 4) Replace "arm64" with "armhf" when adding those lines.


1

Yes, this is an ancient question, but the "got it to work" answer isn't correct. sudo nano /etc/apt/sources.list append these to the bottom of the file deb [arch=arm64] http://ports.ubuntu.com/ focal main multiverse universe deb [arch=arm64] http://ports.ubuntu.com/ focal-security main multiverse universe deb [arch=arm64] http://ports.ubuntu.com/...


Top 50 recent answers are included