can't install libc6 package - linux

esrsank#PG04954:~$ sudo apt-get install libc6-i386
Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies: build-essential :
Depends: libc6-dev but it is not going to be installed or
libc-dev
libc6-i386 : Depends: libc6 (= 2.15-0ubuntu10.6) but 2.15-0ubuntu10.10 is to be installed
libstdc++6-4.6-dev : Depends: libc6-dev (>= 2.13-0ubuntu6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
So how to install libc6 (= 2.15-0ubuntu10.6) instead of libc6 (= 2.15-0ubuntu10.10)
the same for ibstdc++6-4.6-dev

Do
sudo apt-get autoclean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -u dist-upgrade
Then run
sudo dpkg --configure -a
sudo apt-get -f install
If it works, then fine.
or again try doing
sudo apt-get install libc6-i386

One possible cause of unmet dependencies could be corrupted package
database, and/or some packages weren’t installed properly. To fix this
problem, hit Alt+Ctrl+T to open terminal and try to run one of the
following commands:
sudo apt-get clean
or,
sudo apt-get autoclean
apt-get clean clears out the local repository of retrieved package
files (the .deb files). It removes everything but the lock file from
/var/cache/apt/archives/ and /var/cache/apt/archives/partial/. apt-get
autoclean clears out the local repository of retrieved package files,
but unlike apt-get clean, it only removes package files that can no
longer be downloaded, and are largely useless.
One of the most basic fixes to resolve dependencies problems is to
run:
sudo apt-get -f install
The -f here stands for “fix broken”. Apt will attempt to correct
broken dependencies. If you manually installed a package that had
unmet dependencies, apt-get will install those dependencies, if
possible, otherwise it may simply remove the package that you
installed in order to resolve the problem.
Then run:
sudo dpkg --configure -a
Then run this again:
sudo apt-get -f install
Reference: #https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies-after-adding-a-ppa

Related

Broken packages for installing python3-pip in Ubuntu16.04 [duplicate]

This is the command I used to install python-pip
sudo apt-get install python-pip
I get the following error
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
python-pip : Depends: python-setuptools (>= 0.6c1) but it is not going to be installed
Recommends: python-dev-all (>= 2.6) but it is not installable
E: Unable to correct problems, you have held broken packages.
I already installed the latest version of python-dev
When i try to install python-setuptools using
sudo apt-get install python-setuptools I get the below error
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
python-setuptools : Depends: python-pkg-resources (= 3.3-1ubuntu1) but 3.3-1ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
Explain me how to resolve the error and guide me the steps to get python-pip installed.
got the same error when I install python-pip, the following command solved my problem.
sudo apt-get install python-pkg-resources=3.3-1ubuntu1
sudo apt-get install python-setuptools
download pip from https://bootstrap.pypa.io/get-pip.py
Then run the following (which may require administrator access):
python get-pip.py
This should get you going.
If you get stuck again, read here: http://pip.readthedocs.org/en/stable/installing/
In addition to the solution that #seems recommended, I had to run this.
apt-get update
(OR)
sudo apt-get install python-setuptools python-dev build-essential
sudo easy_install pip
i have the same issue, and eventually i gave up by using:
sudo apt-get install python-pip
after tryings something like:
sudo apt-get install python-setuptools python-dev build-essential
but with no luck.
So all i did then was to:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
peace of mind.....
I think you should try:
sudo apt-get install python-pkg-resources=3.3-1ubuntu1
And then:
sudo apt-get install python-pip python-dev build-essential
It will definitely solve your issue.
Jut run this command :
sudo apt-get update
than install python tools :
sudo apt-get install python-pip
sudo apt-get install python-dev
sudo apt-get install build-essential
All the packages will get installed or some of them may say its already latest version, Thats fine

How to forcely uninstall mssql from ubuntu 16.04 system

I have tried following commands:
sudo apt-get remove mssql-server
sudo apt-get -f
but I get the following error message:
The following packages have unmet dependencies:
mssql-tools : Depends: msodbcsql17 (>= 17.2.0.0) but it is not going to be installed
Depends: msodbcsql17 (< 17.3.0.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
kindly tell some working solution
Use sudo apt-get -f install to fix your missing dependencies, then execute sudo apt-get remove mssql-server to uninstall the server.
You can also delete the data directory using sudo rm -rf /var/opt/mssql/. (be extremely careful every time you use sudo rm, you could erase your entire hard drive if you specify the wrong path!)

apt-get error: Sub-process /usr/bin/dpkg returned an error code (1)

I have error in apt-get install
it is a error:
The following packages have unmet dependencies:
gcc-4.8-multilib : Depends: libc6-dev-i386 (>= 2.11) but it is not going to be installed
libc6-dev-x32 : Depends: libc6-dev-i386 (= 2.19-0ubuntu6.6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I try several command
like: apt-get -f install
apt-get clean
I try change my source list, and remake apt-get update
$ sudo apt-get install g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
gcc-4.8-multilib : Depends: libc6-dev-i386 (>= 2.11) but it is not going to be installed
libc6-dev-x32 : Depends: libc6-dev-i386 (= 2.19-0ubuntu6.6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
in apt-get -f install
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libc6-dev-i386
The following NEW packages will be installed:
libc6-dev-i386
0 upgraded, 1 newly installed, 0 to remove and 434 not upgraded.
3 not fully installed or removed.
Need to get 0 B/1.148 kB of archives.
After this operation, 6.333 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 194963 files and directories currently installed.)
Preparing to unpack .../libc6-dev-i386_2.19-0ubuntu6.6_amd64.deb ...
Unpacking libc6-dev-i386 (2.19-0ubuntu6.6) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.6_amd64.deb (--unpack):
trying to overwrite '/usr/include/bits', which is also in package libc6-dev-amd64 2.19-0ubuntu6.6
Errors were encountered while processing:
/var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
The same dpkg error is also possible when uninstalling:
apt-get uninstall
and
apt-get purge
First, uninstall the package:
rm -f /var/lib/dpkg/info/<package-name>*
apt-get purge <package-name>
Afterwards you can re-install it:
apt-get install <package-name>
Try this. Open a new terminal and paste it
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libc6-dev-i386_2.19-0ubuntu6.6_amd64.deb
After that type:
sudo apt-get autoremove
Lastly type
sudo apt-get update
hope your problem will be solved.
none of the solutions i could find solved the problem for me...still broken packes, no matter the autoremove, -f install ... and so forth.
After playing around a little, the following solved it for me:
sudo apt-get --purge remove libc6-dev-i386 libc6-dev-x32 gcc-5-multilib gcc-multilib
sudo apt autoremove -f
sudo apt-get -f install
Try the following steps from the terminal :
sudo apt-get --purge remove libc6-dev-amd64
sudo apt-get -f install
sudo apt-get update
Hope this will fix your issues.
Try is to reconfigure the package database. Probably the database got corrupted while installing a package.
sudo dpkg --configure -a
I found my solution, because the others quoted below did not work. Generally, it is a conflict with a dependency already installed.
I solved this problem with these command for recreate blank configuration (debian) :
sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_silent
sudo mkdir /var/lib/dpkg/info
sudo apt-get update
sudo apt-get -f install <xxxx>
It looks like you have installed libc6-dev-amd64 and you are trying to install packages that depend on libc6-dev-i386, and these two are in conflict (they both contain /usr/include/bits).
My guess is you don't want both of these installed at the same time. I would use apt-get remove libc6-dev-amd64 to get yourself back to a good state, and then try again to install the packages that you want.
If those two packages are meant to work when they're both installed at the same time, then file a bug with the package maintainer because they need to fix the packages to allow that.
When the upgrade command (sudo apt-get upgrade -y) is run in Ubuntu 18.04.3 (With Linux kernel version 5.7.14) the following errors get reported (in red):
... bind /var/run/spice-vdagentd/spice-vdagent-sock: No such file or directory
... Fatal could not create server socket /var/run/spice-vdagentd/spice-vdagent-sock
...
... Failed to start Agent daemon for Spice guests.
The following steps fixed the issue:
Make spice-vdagentd directory if it does not exist:
> sudo mkdir /var/run/spice-vdagentd (if it does not exist)
Open a new file spice-vdagent-sock
> sudo vi /var/run/spice-vdagentd/spice-vdagent-sock
Save the file by running: :wq
Re-run the upgrade command to verify that the issue is fixed.
Using below steps my problem resolve in "Oracle VM VirtualBox Manager"
apt autoremove
apt purge libreoffice-base libreoffice-core
dpkg -l "libreoffice" | grep "^ii"
sudo dpkg --configure -a
sudo apt-get install -f
now you can try to install - pip3 install jupyter etc.
You can fix this problem with this command:
sudo apt-get remove --purge libreoffice-core libreoffice-common
python3-uno libreoffice-*

Raspberry Pi Libc corrupted

My Raspberry Pi will not install anything anymore, as it keeps on complaining about a half-installed libc6. For example, when I try to install g++ 4.7:
pi#raspberrypi ~/workspace $ sudo apt-get install g++-4.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
g++-4.7 : Depends: libstdc++6-4.7-dev (= 4.7.2-5+rpi1) but it is not going to be installed
libkrb5-3 : Depends: libc6 (>= 2.16) but 2.13-38+rpi2+deb7u3 is to be installed
locales : Depends: glibc-2.19-1 but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
So, then I run sudo apt-get install -f, and it gives me this error:
dpkg: error processing libc6:armhf (--configure):
package libc6:armhf is not ready for configuration
cannot configure (current status `half-installed')
Errors were encountered while processing:
libc6:armhf
E: Sub-process /usr/bin/dpkg returned an error code (1)
What can I do about this?
Looks like you added wrong repository to your /etc/apt/sources.list or /etc/apt/sources.list.d/*,
look at
cat /etc/apt/sources.list /etc/apt/sources.list.d/*
there should be no debian repos in sources lists, also check the raspbian version, looks like you're on "wheezy", so remove "sid" or "jessie", when you fix it, do
sudo apt-get update
sudo apt-get -f install
If your sources.list was correct, your should learn not to install debs from random sites.
Now to fix your libc6, reinstall it
wget https://archive.raspbian.org/raspbian/pool/main/e/eglibc/libc6-dev_2.13-38%2brpi2%2bdeb7u3_armhf.deb
sudo dpkg -i --force-all libc6-dev_2.13-38+rpi2+deb7u3_armhf.deb
sudo apt-get -f install
If it's to difficult for you to fix sources.list or that didn't help, please provide the output of the following commands
apt-cache policy libc6
apt-cache policy libc6-dev
cat /etc/apt/sources.list /etc/apt/sources.list.d/*
This worked fine for me, from the 2015 image
wget https://archive.raspbian.org/raspbian/pool/main/e/eglibc/libc6-dev_2.13-38%2brpi2%2bdeb7u3_armhf.deb
sudo dpkg -i --force-all libc6-dev_2.13-38+rpi2+deb7u3_armhf.deb
sudo apt-get -f install

apt-get not installing anything linux server

Anything with apt-get install is giving following error
You might want to run 'apt-get -f install' to correct these:
The
following packages have unmet dependencies:
openssh-server : Depends:
openssh-client (= 1:6.0p1-4) but 1:6.0p1-4+deb7u2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
specify a solution).
If i try to install apt-get -f install it give following error
reparing to replace openssh-server 1:6.0p1-4 (using .../openssh-server_1%3a6.0p1-4+deb7u2_amd64.deb) ...
Unpacking replacement openssh-server ...
dpkg: error processing /var/cache/apt/archives/openssh-server_1%3a6.0p1-4+deb7u2_amd64.deb (--unpack):
unable to make backup link of `./usr/sbin/sshd' before installing new version: Operation not permitted
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/openssh-server_1%3a6.0p1-4+deb7u2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo apt-get update also not working completely. Suggestion please
Thanks in advance
sudo apt-get update
sudo apt-get -f install
sudo apt-get install openssh-server
If you are not logged in as root (as I'm assuming), you should put sudo before adding/removing packages to the system.
If that doesn't work, run these commands:
chattr -i /usr/bin/sshd
chattr -a /usr/bin/sshd
sudo apt-get update
sudo apt-get -f install
sudo apt-get install openssh-server
If that doesn't work, you can also go to /var/lib/dpkg/info and /var/cache/apt/archives to delete anything with a name close to openssh-server. Then, run the commands:
sudo apt-get update
sudo apt-get -f install
sudo apt-get install openssh-server
pd: this is quite complex, so not having access to the system means a lot of "try and fail" :(
Ok I tried all of this and more, and not one of the methods worked. So I tried to remove openssh-client, then install openssh-server and that worked for me.

Resources