unmet dependencies during apt installation - apt

When I installed a package using apt,I encountered the below problem:
The following packages have unmet dependencies:
ruby2.3-dev : Breaks: ruby2.3-dev:i386 (!= 2.3.1-2~16.04.12) but 2.3.0-5ubuntu1 is to be installed
ruby2.3-dev:i386 : Depends: libgmp-dev:i386 but it is not going to be installed
Depends: libruby2.3:i386 (= 2.3.0-5ubuntu1) but it is not going to be installed
Breaks: ruby2.3-dev (!= 2.3.0-5ubuntu1) but 2.3.1-2~16.04.12 is to be installed
I have no idea what happened. How can I solve it?

It appears that 64bit and 32bit packages are conflicting with the ruby installation. Try and temporarily remove i386 from your package manager and try and install it with apt again. Refer to https://superuser.com/questions/714391/how-do-i-remove-all-i386-architecture-packages-from-my-debian-installation for a guide.

Related

Cannot install libzmq3-dev on ubuntu 19.04

I'm trying to install libzmq3-dev on Ubuntu 19.04, using the command:
sudo apt install build-essential libsocketcan-dev libzmq3-dev
I get the message:
> 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:
libzmq3-dev : Depends: libpgm-dev (>= 5.2.122~dfsg) but it is not installable
Depends: libsodium-dev but it is not installable
Depends: libnorm-dev but it is not installable
Depends: libkrb5-dev but it is not installable
E: Unable to correct problems, you have held broken packages'
Any ideas?

apt-get is broken and can't install anything

My apt-get is totally broken and can't install anything. The output of 'apt-get install -f" is as follows:
# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
gnome-icon-theme : Depends: gtk-update-icon-cache
python3-cairo : Depends: python3 (>= 3.6~) but 3.4.3-1 is installed
python3-gdbm : Depends: python3 (>= 3.6) but 3.4.3-1 is installed
python3-reportlab-accel : Depends: python3 (>= 3.6~) but 3.4.3-1 is installed
rhythmbox : Depends: rhythmbox-data (= 3.1-1ubuntu3) but 3.4.1-2ubuntu5 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
The output of 'sudo apt install python3' is in the picture:https://imgur.com/a/IbGK0
I have Googled any possible questions and tried any possible solutions but NO ONE worked for it.
Go to /var/log/dist-upgrade/apt.log and identify the packages that are broken. "apt-get remove" the packages, do release upgrade and then you should be able to reinstall them.
You can find more information here: https://askubuntu.com/questions/124845/eerror-pkgproblemresolverresolve-generated-breaks-this-may-be-caused-by-hel
This command resolved my error
sudo apt -f install
In my case I was behind a proxy, so I needed to run the following command:
sudo nano /etc/apt/apt.conf
And added the following lines:
Acquire::http::proxy "http://<user>:<password>#<proxy_host>:<proxy_port>/";
Acquire::https::proxy "https://<user>:<password>#<proxy_host>:<proxy_port>/";
Acquire::ftp::proxy "ftp://<user>:<password>#<proxy_host>:<proxy_port>/";

Issue on install ffmpeg on Debian 8

I try to install "ffmpeg" on my Debian 8 and I have issues.
apt-get install ffmpeg
I have this errors...
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:
ffmpeg : Depends: libavcodec57 (>= 10:3.2.2) but it is not going to be installed
Depends: libavdevice57 (>= 10:3.2.2) but it is not going to be installed
Depends: libavfilter6 (>= 10:3.2.2) but it is not going to be installed
Depends: libavformat57 (>= 10:3.2.2) but it is not going to be installed
Depends: libsdl2-2.0-0 (>= 2.0.4) but it is not going to be installed
Depends: libva1 (>= 1.7.3) but 1.4.1-1 is to be installed
x264 : Depends: libffms2-4 (>= 1:2.23) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
these dependencies are available in the jessie backports.

How to install RVM on Linux subsystem on Windows 10

I am working on a web-scraping script, but the current gem version is not giving me the any packages to install.
I know it's for some infrastructure-change reason but now I have installed anniversary-update from Windows 10 and installed a Linux subsystem.
I installed NodeJS + npm already, which are working correctly but the problem is installing Ruby on that subsystem.
When I tried to install RVM it's giving me an error:
ins#DESKTOP-TK9ELEL:~$ sudo apt-get install rvm
sudo: unable to resolve host DESKTOP-TK9ELEL
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:
rvm : Depends: libreadline6-dev but it is not installable
Depends: autoconf but it is not installable
Depends: libgdbm-dev but it is not installable
Depends: libncurses5-dev but it is not installable
Depends: automake but it is not installable
Depends: libtool but it is not installable
Depends: bison but it is not installable
Depends: pkg-config but it is not installable
E: Unable to correct problems, you have held broken packages.
How do I solve this?
Follow the install directions for RVM on their site. Nobody knows RVM better than the authors.
\curl -sSL https://get.rvm.io | bash -s stable --ruby
That will install the stable versions of RVM and Ruby.
Following that use:
rvm use [whichever Ruby was installed] --default
to tell RVM to default to that Ruby.
RVM is capable of installing the prerequisites for your *nix distribution if you use their directions. Once RVM is installed you will not need to use sudo or yum to install anything for an RVM-managed Ruby. That means do not use sudo rvm install ruby... or sudo gem install some_gem. If you do you'll only force your system to do the wrong thing.

How to install node-sqlserver

I have tried apt-get install aptitude but i got this:
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:
aptitude : Depends: libboost-iostreams1.42.0 (>= 1.42.0-1) but it is not going to be installed
Depends: libcwidget3 but it is not going to be installed
Recommends: libparse-debianchangelog-perl but it is not going to be installed
phpmyadmin : Depends: php5-mysql but it is not going to be installed or
php5-mysqli but it is not installable
Recommends: mysql-client
E: Unmet dependencies. Try 'apt-get -f instal
Can anyone suggest me how to resolve it?
Did you what apt-get suggested and performed
root# apt-get -f install ?
What about your /etc/apt/sources.list file? Is it up-to-date?

Resources