Cannot install libpulse-dev:i386 and libspeechd-dev:i386 on Ubuntu - linux

When I run
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get -u dist-upgrade
sudo dpkg --configure -a
sudo apt --fix-broken install
sudo apt-get install libspeechd-dev:i386 libpulse-dev:i386
I get the following error
The following packages have unmet dependencies:
libpulse-dev:i386 : Depends: libpulse-mainloop-glib0:i386 (= 1:13.99.1-1ubuntu3.13) but it is not going to be installed
Depends: libglib2.0-dev:i386 but it is not going to be installed
libspeechd-dev:i386 : Depends: libspeechd2:i386 (= 0.9.1-4) but it is not going to be installed
Depends: libglib2.0-dev:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I've tried every solution I found online but nothing worked.

Related

Cannot install dependencies

I'm trying to install (ex.) nasm.
sudo apt-get install nasm
After this I get an error message:
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-image-extra-4.4.0-71-generic : Depends: linux-image-4.4.0-71-generic but it is not going to be installed
linux-image-extra-4.4.0-72-generic : Depends: linux-image-4.4.0-72-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-4.4.0-72-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
If I run: sudo apt -f install
What I get is this:
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-4.4.0-72-generic_4.4.0-72.93_amd64.deb
/var/cache/apt/archives/linux-image-4.4.0-71-generic_4.4.0-71.92_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo apt-get clean
or
sudo apt-get autoclean
or
If you're on Ubuntu, goto Software Sources > Other Software
and uncheck unnecessary ppa's.
screenshot

Monodevelop - Try to install on linux Precise 64 (Ubuntu 12.04 LTS)

I'm trying to install Monodevelop from http://www.mono-project.com/docs/getting-started/install/linux/#debian-ubuntu-and-derivatives.
I'm using a virtual Box VM via Vagrant with an Ubuntu Precise 64 Guest OS
I have done this steps :
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
echo "deb http://download.mono-project.com/repo/debian wheezy-libtiff-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
At this point, all seems OK.
But when I want to install the first package "mono-devel" by typing
sudo apt-get install mono-devel
I have the following error message
vagrant#precise64:~$ sudo apt-get install mono-devel
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:
mono-devel : Depends: libgdiplus (>= 2.6.7) but it is not going to be installed
Depends: libmono-system-design4.0-cil (>= 1.0) but it is not going to be installed
Depends: libmono-system-drawing4.0-cil (>= 3.0.6) but it is not going to be installed
Depends: libmono-system-messaging4.0-cil (>= 2.10.1) but it is not going to be installed
Depends: libmono-system-runtime4.0-cil (>= 2.10.1) but it is not going to be installed
Depends: libmono-system-servicemodel-activation4.0-cil (>= 1.0) but it is not going to be installed
Depends: libmono-system-servicemodel-web4.0-cil (>= 3.2.1) but it is not going to be installed
Depends: libmono-system-servicemodel4.0a-cil (>= 3.2.3) but it is not going to be installed
Depends: libmono-system-serviceprocess4.0-cil (>= 3.0.6) but it is not going to be installed
Depends: libmono-system-web-extensions4.0-cil (>= 2.10.3) but it is not going to be installed
Depends: libmono-system-web-services4.0-cil (>= 1.0) but it is not going to be installed
Depends: libmono-system-web-webpages-razor2.0-cil (>= 1.0) but it is not going to be installed
Depends: libmono-system-web-webpages2.0-cil (>= 1.0) but it is not going to be installed
Depends: libmono-system-web4.0-cil (>= 2.10.3) but it is not going to be installed
Depends: libmono-system-windows-forms4.0-cil (>= 1.0) but it is not going to be installed
Depends: libmono-cil-dev (= 4.4.1.0-0xamarin1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
vagrant#precise64:~$ lsb_release
No LSB modules are available.
vagrant#precise64:~$ cat /etc/issue
Ubuntu 12.04.5 LTS \n \l
I have also tried doing a "sudo apt-get upgrade" without any success.
I thought that apt could also download and install all package dependencies. Why the libraries files mentioned in the error message can't be loaded ?
How to solve the problem ? Is there a mistake somewhere ?
As SushiHangover advises me in the answer below, I have also tried to install libgdiplus but there is also an error message :
vagrant#precise64:~$ sudo apt-get install libgdiplus
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:
libgdiplus : Depends: libfontconfig1 (>= 2.9.0) but 2.8.0-3ubuntu9.1 is to be installed
Depends: libtiff5 (> 4.0.0-1~) but it is not installable
E: Unable to correct problems, you have held broken packages.
After manually installed libtiff5 package :
vagrant#precise64:/vagrant$ sudo apt-get install libgdiplus
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:
libgdiplus : Depends: libcairo2 (>= 1.4) but it is not going to be installed
Depends: libexif12 but it is not going to be installed
Depends: libfontconfig1 (>= 2.9.0) but it is not going to be installed
Depends: libgif4 (>= 4.1.4) but it is not going to be installed
Depends: libjpeg8 (>= 8c) but it is not going to be installed
Depends: libxrender1 but it is not going to be installed
libtiff5 : Depends: libjbig0 (>= 2.0) but it is not installable
Depends: libjpeg8 (>= 8c) but it is not going to be installed
Depends: liblzma5 (>= 5.1.1alpha+20120614) but 5.1.1alpha+20110809-3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Try running this:
sudo apt-get install libgdiplus
If it results in:
~~~
libgdiplus : Depends: libjpeg62-turbo (>= 1.3.1) but it is not installable
~~~
Then you need to get the older libjpeg62 package:
wget http://ftp.br.debian.org/debian/pool/main/libj/libjpeg6b/libjpeg62_6b2-2_amd64.deb
sudo dpkg --install --recursive --auto-deconfigure libjpeg62_6b2-2_amd64.deb
Now you can:
sudo apt-get install mono-devel
sudo apt-get install monodevelop
New mono versions need libtiff5 package version >=4.0, and Ubuntu 12.x hasn't this package.
But this package version depends on other new packages or existing packages with newer versions...
There is a working solution (on amd64 platform):
wget http://mirrors.kernel.org/ubuntu/pool/main/f/fonts-freefont/fonts-freefont-ttf_20120503-4_all.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/f/fonts-freefont/ttf-freefont_20120503-4_all.deb
wget http://security.ubuntu.com/ubuntu/pool/main/f/fontconfig/fontconfig-config_2.11.0-0ubuntu4.2_all.deb
wget http://security.ubuntu.com/ubuntu/pool/main/f/fontconfig/libfontconfig1_2.11.0-0ubuntu4.2_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/j/jbigkit/libjbig0_2.1-3.1_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/x/xz-utils/liblzma5_5.1.1alpha+20120614-2ubuntu2_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/t/tiff/libtiff5_4.0.6-1_amd64.deb
sudo dpkg --install --recursive --auto-deconfigure fonts-freefont-ttf_20120503-4_all.deb
sudo dpkg --install --recursive --auto-deconfigure ttf-freefont_20120503-4_all.deb
sudo dpkg --install --recursive --auto-deconfigure fontconfig-config_2.11.0-0ubuntu4.2_all.deb
sudo dpkg --install --recursive --auto-deconfigure libfontconfig1_2.11.0-0ubuntu4.2_amd64.deb
sudo dpkg --install --recursive --auto-deconfigure libjbig0_2.1-3.1_amd64.deb
sudo dpkg --install --recursive --auto-deconfigure liblzma5_5.1.1alpha+20120614-2ubuntu2_amd64.deb
sudo dpkg --install --recursive --auto-deconfigure libtiff5_4.0.6-1_amd64.deb
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get install mono-devel

can't install libc6 package

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

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

ubuntu 13.04 and g++

I had recently installed ubuntu 13.04 and I'm a new linux user but I am unable to compile g++ code.
It says
The program 'g++' can be found in the following packages:
* g++
* pentium-builder
Try: sudo apt-get install <selected package>
When I tried to install g++ using following statements
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.8
It says:
The following packages have unmet dependencies:
g++-4.8 : Depends: gcc-4.8 (= 4.8.1-2ubuntu1~13.04) but it is not going to be installed
Depends: libcloog-isl4 (>= 0.17) but it is not installable
Depends: libisl10 (>= 0.10) but it is not installable
E: Unable to correct problems, you have held broken packages.
Will appreciate your help.
For Ubuntu, the easiest way to get all the build tools including g++ is to
sudo apt-get install build-essential
I suggest you check AskUbuntu for more info.
You just do try "sudo apt-get install g++" in the command line?
so package manager will try to install missing package. Do not request specific version and You will be fine! It fails just because of specific version requirement.

Resources