Accidentally installed something, which broke during the install, which is good since I got the wrong package.
Unfortunately it's broken apt-get like others have experienced. I've seen plenty of ways to continue the broken install, but in my case I want to not continue the install and just remove the offending install.
Any suggestions?
Seems you can achieve this with the command
$ apt-get remove --fix-broken <<PACKAGENAME>>
Where <<PACKAGENAME>> was the package that caused the breakage. The key here was to remove, while all the solutions to continue with the install had install.
The above picked up that I was half-way through an install, and so removing it (with this flag) removed it like a charm. If you don't have the flag, it won't identify it as being installed, which is what stumped me previously.
Related
Since I upgraded to Fedora 34, I noticed I’m not been able to open Gnome settings.
Right-clicking on wallpaper and selecting “Settings”, “Display Settings” or “Change background” have no effect either. The mouse pointer changes to a loading alike icon and returns to arrow icon after a while.
I searched web looking for this error, but i wasn’t able to find a solution. Thinking it may be some kind of conflict, I ran:
sudo su
dnf clean all
dnf -y distro-sync
dnf remove --duplicates
dnf update
This removed duplicated packages and updated them, but had no effect on the problem.
I managed to resolve it this way: I tryed to run gnome-control-center and got the following error message.
gnome-control-center: error while loading shared libraries: /lib64/libwebpdemux.so.2: file too short
Since this error usually indicates a broken .so file, I reinstalled the thing it belongs to, in this case that's libwebp.
sudo dnf reinstall libwebp
That resolved the problem.
I keep trying to install either MySql or MariaDb on a fresh installation of Debian 10. Should be a simple process,(sudo apt-get install mariadb-server mariadb-client)
but I keep getting this error:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mariadb-client : Depends: mariadb-client-10.4 (>=
1:10.4.7+maria~buster) but it is not going to be installed
mariadb-server : Depends: mariadb-server-10.4 (>=
1:10.4.7+maria~buster) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
This is a fresh install. PHP and Apache2 are installed. I have tried several times using first MySql and then when that didn't work, I tried using MariaDb, but still get the same error. Not sure what else to do. I tried googling and the only thing close suggested ensuring that it wasn't installed and even purging any previous installations. I tried that but still doesn't work.
After working with this about 4 hours, I finally figured it out. When installing Debian, I was presented with some options regarding software to install. One of those options was to install Web server software. So, I chose to do so. That was a mistake. First, you don't get all of the needed php modules by selected that option. Secondly, that selection does install some of what is needed for MySql, but not enough to actually work.
So, in the end, for anyone else who has this issue, this is how I fixed it.
First, run the commands:
sudo service mysql stop
sudo apt-get --purge remove "mysql*"
sudo rm -rf /etc/mysql/
Then, make sure everything is gone by running
sudo updatedb
locate mysql
You will still see a few things, but make sure that you don't see a my.cnf file. That was the culprit in my case. If you do see it, delete it as well.
Now reinstall MySql and you shouldn't have any issues. If you are also installing phpMyAdmin, you will still need to run one more command to get the needed extensions.
sudo apt install php-imagick php-phpseclib php-php-gettext php7.3-common
php7.3-gd php7.3-imap php7.3-json php7.3-curl php7.3-zip php7.3-xml
php7.3-mbstring php7.3-bz2 php7.3-intl php7.3-gmp
I accidentally run sudo apt-get remove --purge openssl on Ubuntu 18 Mate and it started deleting important packages. How can I reinstall all of them?
Note that apt asks you if you really want to do what it is showing you, so you could have prevented this in first place by answering with No.
Rolling back after a package installation/removal is not trivial.
To "unroll", you'll have to manually consider /var/log/apt/history.log and re-install the removed packages. In the Ubuntu Forums, you can find a command that automatically lists all removed packages. But be careful with that and future package installs/removals. Although it might look like a trivial action to install/remove a package, it is not.
I had the wrong ubuntu version listed in /etc/apt/sources.list some (it listed precise instead of trusty) which I only discovered after a full day of workarounds for packages that wouldn't install automatically. Now everything is back to speed except for a few remaining troublemakers, libglu and libboost
root#brain2:/home/jeremy# apt-get install libglu1-mesa libglu1-mesa-dev
Reading package lists... Done
libglu1-mesa is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
libglu1-mesa-dev : Depends: libgl1-mesa-dev but it is not going to be installed or libgl-dev
I've tried the usual drill of
apt-get -f install
dpkg --configure -a
apt-get clean
apt-get update
apt-get upgrate
but they do not avail me. Any advisory information appreciated.
Its hard to tell if you fixed your /apt/etc/sources.list without knowing what your ubuntu version is and the contents of the file. Here are some commands that may help you troubleshoot, or someone with more experience than me might comment on:
apt-cache policy <package>
rmadison <package>
The apt-cache policy command will essentially tell you, from your /etc/apt/services.list file, what versions of that package apt sees as available to download. Official documentation is available here:
https://debian-handbook.info/browse/stable/sect.apt-cache.html
The rmadison command performs a similar function but with a key difference. Instead of looking at what you have in /etc/apt/services.list, it queries Debian archives to see what versions of the package are available. The Debian man page on rmadison is here:
http://manpages.ubuntu.com/manpages/natty/man1/rmadison.1.html
If the results from apt-cache policy differs from rmadison, it may indicate that you haven't correctly told apt what versions it should be looking for.
Initially my openSIPS server menuconfig tool worked properly
When I reinstalled mysql-client by ('sudo apt-get remove mysql-client' later install using 'sudo apt-get install mysql-client') the menuconfig tool of openSIPS gives some warning.
You have enabled the 'db_mysql' module, so please install ' development librariePress any key to continue
I tried by installing 'libmysqlclient-dev' but it didn't work..
That warning is thrown regardless of your OS's libraries, so do not worry about it.
Indeed, it should be "please make sure XXX is installed". At least this sounds less severe. - I will patch it on the master branch.