reinstall broken python3 in ubuntu 18.4 - python-3.6

I tried to uninstall python3 in ubuntu 18.4. after that I give the broken dependencies in every install command.
I even have this problem with 'sudo apt upgrade'.
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
dh-python : Depends: python3-distutils but it is not installed
python3 : PreDepends: python3-minimal (= 3.6.7-1~18.04) but it is not installed
Depends: python3.6 (>= 3.6.7-1~) but it is not installed
python3-keyring : Depends: python3-secretstorage but it is not installed
python3-pip : Depends: python3-distutils but it is not installed
Depends: python-pip-whl (= 9.0.1-2.3~ubuntu1.18.04.5) but it is not installed
Recommends: python3-dev (>= 3.2) but it is not installed
python3-setuptools : Depends: python3-distutils but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Is there any solution?

The solution command is: sudo apt --fix-broken install

Related

R 4.2.2 on Ubuntu Server 22.10

I try to install R 4.2.2 but it is able to install only 4.2.1.
The following packages have unmet dependencies: r-base-core :
Depends: libicu70 (>= 70.1-1~) but it is not installable
Recommends: r-doc-html but it is not going to be installed E: Unable to correct problems, you have held broken
packages.
I have
libicu-dev is already the newest version (71.1-3ubuntu1).
Could be that is not yet supported for 22.10? or is there any turnaround to install it?
Thanks
I am running ubuntu 22.10 and had the same problem. I have solved it via:
wget http://ftp.osuosl.org/pub/ubuntu/pool/main/i/icu/libicu70_70.1-2_amd64.deb
sudo dpkg -i libicu70_70.1-2_amd64.deb
then this will work:
sudo apt-get install r-base-core

Package dependencies cannot be resolved error while installing r-base from Ubuntu Software center

The message says:-
This error could be caused by required additional software packages which are missing or not installable.
Furthermore, there could be a conflict between software packages which are not allowed to be installed at the same time.
Details:-
The following packages have unmet dependencies:-
r-base: Depends: r-base-core (>= 3.4.3-1trusty0) but 3.4.3-1trusty0 is to be installed
Depends: r-recommended (= 3.4.3-1trusty0) but 3.4.3-1trusty0 is to be installed
I have also tried the code:-
sudo apt-add-repository -y ppa:texlive-backports/ppa
sudo apt-get update
I cannot understand how to instal R in Ubuntu 14.04.

Errors when trying to install qtbase5-dev in Ubuntu

I'm trying to install the qt5 development libraries using sudo apt-get install qtbase5-dev, but I'm getting an 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:
qtbase5-dev : Depends: libgles2-mesa-dev or
libgles2-dev but it is not installable
Depends: libqt5gui5 (= 5.2.1+dfsg-1ubuntu14.3) but it is not going to be installed
Depends: libqt5printsupport5 (= 5.2.1+dfsg-1ubuntu14.3) but it is not going to be installed
Depends: libqt5widgets5 (= 5.2.1+dfsg-1ubuntu14.3) but it is not going to be installed
Recommends: libqt5opengl5-dev (= 5.2.1+dfsg-1ubuntu14.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The problem is I don't have held packages - I checked using dpkg --get-selections | grep hold, but it showed nothing.
For me, this was caused by the oibaf graphics PPA being installed.
sudo apt-get install ppa-purge
sudo ppa-purge ppa:oibaf/graphics-drivers
will revert to stock graphics libs.
Manually installing libgles2-mesa-dev and then qtbase5-dev worked. I had to ran it in separate commands though:
sudo apt-get install libgles2-mesa-dev
sudo apt-get install qtbase5-dev

sqldf doesn't install on Ubuntu 14.04

I'm trying to install sqldf package in an Ubuntu 14.04 machine, but I'm getting the following error:
Warning in install.packages :
package ‘sqldf’ is not available (for R version 3.0.2)
I tried to install the library libpq-dev as suggested from other post, but I still receive the message.
UPDATE
I'm trying to update R, but I'm getting the following message:
The following packages have unmet dependencies:
r-base : Depends: r-base-core (>= 3.1.2-1precise0) but it is not going to be installed
Depends: r-recommended (= 3.1.2-1precise0) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I tried the solutions in this topic, but none worked
Look at the package page:
Depends: R (≥ 3.1.0), gsubfn (≥ 0.6), proto, RSQLite (≥ 1.0.0)
As the error message clearly states, you are using an older R 3.0.2 which is less than the required 3.1.0.
The fix is easy: read the Ubuntu-specific README, make the adjustment to install (current !!) R binaries as .deb package via apt-get from CRAN -- and you will have R 3.1.2 in no time.
Which will permit you to install the current sqldf as well.
I followed these instructions and everything worked!
sudo add-apt-repository ppa:marutter/rrutter
sudo apt-get update
sudo apt-get install r-base r-base-dev
You can find this resolved with this try this out:
# Install function for packages
packages<-function(x) {
x<-as.character(match.call()[[2]])
if (!require(x,character.only=TRUE)) {
install.packages(pkgs=x,repos="http://cran.r-project.org")
require(x,character.only=TRUE)
}
}
packages(ggplot2)
packages(reshape2)
packages(plyr)
# etc ...other packages
that's all enjoy..!!

r-base-core build on ubuntu 10.04 failing because of missing libjpeg8 package

So the libjpeg8 package on 10.04 has reached EOL.
Is there a way to locate and install the legacy package for this?
$ sudo apt-get install r-base-core
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:
r-base-core: Depends: libc6 (>= 2.15) but 2.11.1-0ubuntu7.13 is to be installed
Depends: libjpeg8 (>= 8c) but it is not installable
Depends: liblzma5 (>= 5.1.1alpha+20110809) but it is not installable
Depends: libpcre3 (>= 8.10) but 7.8-3build1 is to be installed
Recommends: r-recommended but it is not going to be installed
E: Broken packages
You can try the following commands.
sudo apt-get install -f
This would install any dependencies that your previous installs missed.
If that doesn't help, please refer to the following link:
https://askubuntu.com/questions/140246/how-do-i-resolve-unmet-dependencies

Resources