I am getting this error when I want to install docker.io (sudo apt-get install docker.io)
he following information may help to resolve the situation:
The following packages have unmet dependencies:
containerd.io : Conflicts: containerd
Conflicts: runc
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I have tried to reinstall the containerd and runc but didn't solve the problem.
Related
Running on a fresh install of Ubuntu Server 18.04 on Virtualbox, Windows 10 as the host OS. Ran the instructions on the Phusion Passenger site here
This is the error I'm getting:
steve#heartypet-staging:~$ sudo apt-get install -y libnginx-mod-http-passenger
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:
libnginx-mod-http-passenger : Depends: passenger (= 1:5.3.4-1~bionic1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Oddly enough, the exact same instructions work fine on the desktop version.
Get default source list from here
https://askubuntu.com/a/1036749
Replace /etc/apt/source.list with the file in the link above.
Then sudo apt update and sudo apt upgrade
And go ahead...
If you having problems with the previous solution, one option is run this command:
sudo nano /etc/apt/sources.list.d/passenger.list
and comment all the lines in this file, then run the command
sudo apt-get install passenger
I am trying to install the CUDA toolkit on Ubuntu 16.04 with
sudo apt-get install cuda
and keep getting the following 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:
cuda : Depends: cuda-9-2 (>= 9.2.148) but it is not going to be
installed
E: Unable to correct problems, you have held broken packages
any help?
Option 1:
sudo apt-get install cuda-runtime-9-2
sudo apt-get install cuda-9-2
sudo apt-get install cuda
Option 2:
sudo apt-get install aptitude
sudo aptitude install cuda
Installing rmagick on Ubuntu
there are solutions for different versions of ubuntu, but none worked on 17.04 ?
sudo apt-get install libmagickwand-dev gives
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:
libmagickwand-dev : Depends: imagemagick-6-common (= 8:6.9.7.4+dfsg-3ubuntu1) but 8:6.9.7.4+dfsg-3ubuntu1.2 is to be installed
Depends: libmagickwand-6.q16-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Couldn't find any solution for this. Updated to Ubuntu to 17.10, where it works fine.
You can search for any packages in ubuntu doing a sudo apt-cache search libmagickwand-dev and if you find the package you are looking for then install it doing sudo apt-get install libmagickwand-dev,
Installing all the unmet dependencies should fix the problem, and it is always helpful to do the commands below to upgrade any missing packages
sudo apt-get upgrade && sudo apt-get update
You should be able to install rmagick without any issues after this.
I have tried to install Docker CE in my system and it ends with some problem.
I did the below steps:
sudo yum install -y yum-utils – No error
sudo yum-config-manager --add-repo
https://download.docker.com/linux/centos/docker-ce.repo - No error
sudo yum makecache fast – No error
sudo yum -y install docker-ce – Failed with error
Error: Package: docker-ce-17.06.0.ce-1.el7.centos.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2.9
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
Error: Package: docker-ce-17.06.0.ce-1.el7.centos.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2.9
You could try using --skip-broken to work around the problem
Can someone please help me in this?
The container-selinux package is available from the rhel-7-server-extras-rpms channel. You can enable it using:
subscription-manager repos --enable=rhel-7-server-extras-rpms
But if you do not have any subscription for Enterprise Linux, you can use CentOS Extra repo as a workaround. Add the below content into /etc/yum.repos.d/centos.repo
[CentOS-extras]
name=CentOS-7-Extras
mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
while installing the following command I get the error as shown below
parag#parag:~/torch-hdf5$ sudo luarocks make hdf5-0-0.rockspec LIBHDF5_LIBDIR="/usr/lib/x86_64-linux-gnu/"
Missing dependencies for hdf5:
totem
Error: Could not satisfy dependency: totem
Totem is already installed.
parag#parag:~$ sudo apt-get install totem
[sudo] password for parag:
Reading package lists... Done
Building dependency tree
Reading state information... Done
totem is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 102 not upgraded.
parag#parag:~$
What I should do now?
Future someone, the following two lines helped me solve the issue:
wget https://raw.githubusercontent.com/deepmind/torch-totem/master/rocks/totem-0-0.rockspec
sudo luarocks install totem-0-0.rockspec
You may have to restart your system to get it working!