As mentioned in: https://howtoinstall.co/en/python-pypy.sandbox
I tried the following code:
sudo apt-get update and then
sudo apt-get install python-pypy.sandbox
This gives me the following output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-pypy.sandbox is already the newest version (5.1.2+dfsg-1~16.04).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-pypy.sandbox : Depends: pypy-lib (= 5.1.2+dfsg-1~16.04) but it is not going to be installed
Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Related
installing pyqt5 on ubuntu gives the following error messages:
sudo apt-get install python3-pyqt5
...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libpython3.10 : Depends: libpython3.10-stdlib (= 3.10.4-1+focal2) but 3.10.3-1+focal1 is to be installed
libpython3.10-dev : Depends: libpython3.10-stdlib (= 3.10.4-1+focal2) but 3.10.3-1+focal1 is to be installed
python3-pyqt5 : Depends: libqt5core5a (>= 5.12.4) but it is not going to be installed
Depends: ....
python3.10 : Depends: libpython3.10-stdlib (= 3.10.4-1+focal2) but 3.10.3-1+focal1 is to be installed
python3.10-minimal : Depends: libpython3.10-minimal (= 3.10.4-1+focal2) but 3.10.3-1+focal1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
I tried to solve the issue with the following code that shows the results.
sudo apt --fix-broken install
...
The following additional packages will be installed:
libpython3.10-minimal libpython3.10-stdlib
The following packages will be upgraded:
libpython3.10-minimal libpython3.10-stdlib
2 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.
8 not fully installed or removed.
Do you want to continue? [Y/n] y
(Reading database ... 109785 files and directories currently installed.)
Preparing to unpack .../libpython3.10-stdlib_3.10.4-1+focal2_amd64.deb ...
Unpacking libpython3.10-stdlib:amd64 (3.10.4-1+focal2) over (3.10.3-1+focal1) ...
dpkg: error processing archive /var/cache/apt/archives/libpython3.10-stdlib_3.10.4-1+focal2_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python3.10/_sysconfigdata__linux_x86_64-linux-gnu.py', which is also in package libpython3.10-minimal:amd64 3.10.3-1+focal1
Preparing to unpack .../libpython3.10-minimal_3.10.4-1+focal2_amd64.deb ...
Unpacking libpython3.10-minimal:amd64 (3.10.4-1+focal2) over (3.10.3-1+focal1) ...
dpkg: error processing archive /var/cache/apt/archives/libpython3.10-minimal_3.10.4-1+focal2_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python3.10/typing.py', which is also in package libpython3.10-stdlib:amd64 3.10.3-1+focal1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libpython3.10-stdlib_3.10.4-1+focal2_amd64.deb
/var/cache/apt/archives/libpython3.10-minimal_3.10.4-1+focal2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run the below commands to clear any issues then try again.
apt-get check
apt-get --fix-broken install
dpkg --configure -a
apt-get autoremove -y
apt-get autoclean
apt-get clean
Then remove the broken python files
sudo dpkg --remove --force-all libpython3.10-minimal libpython3.10-stdlib
sudo apt install libpython3.10-minimal libpython3.10-stdlib
sudo apt-get install python3-pyqt5
I need to install the Chrome driver - Selenium, I'm following the commands in this file: https://gist.github.com/ziadoz/3e8ab7e944d02fe872c3454d17af31a5
Configuration:
SO - Ubuntu 16
Python 3.4
But I'm not making progress
sudo apt-get -f install -y unzip openjdk-8-jre-headless xvfb libxi6
libgconf-2-4
output
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxi6 is already the newest version (2:1.7.6-1).
libxi6 set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libgconf-2-4 : Depends: gconf2-common (= 3.2.6-3ubuntu6) but it is not going to be installed
Recommends: gconf-service but it is not going to be installed
openjdk-8-jre-headless : Depends: ca-certificates-java but it is not going to be installed
Depends: java-common (>= 0.28) but it is not going to be installed
Depends: libcups2 but it is not going to be installed
Depends: liblcms2-2 (>= 2.2+git20110628) but it is not going to be installed
Depends: libnss3 (>= 2:3.17.1) but it is not going to be installed
Depends: libpcsclite1 (>= 1.3.0) but it is not going to be installed
perl : Depends: libperl5.22 (= 5.22.1-9ubuntu0.9) but 5.22.1-9ubuntu0.6 is to be installed
xvfb : Depends: xserver-common (>= 2:1.18.4-0ubuntu0.12) but it is not going to be installed
Depends: libxfont1 (>= 1:1.4.2) but it is not going to be installed
Depends: x11-xkb-utils but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
how can I solve?
I managed to solve with the commands:
sudo apt-get install -f
sudo apt-get autoremove
This is what i got after sudo apt-get install --reinstall python
$ sudo apt-get install --reinstall python
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:
python : PreDepends: python-minimal (= 2.7.15~rc1-1) but it is not going to be installed
Depends: python2.7 (>= 2.7.15~rc1-1~) but it is not going to be installed
Depends: libpython-stdlib (= 2.7.15~rc1-1) but it is not going to be installed
python3-gi-cairo : Depends: python3-gi (= 3.26.1-2ubuntu1) but 3.26.1-2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
I have tried to run "sudo apt-get upgrade" in my ubuntu system .but I get the log below. It's annoying as I searched google and no results.
sudo apt-get upgrade
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:
python-twisted-conch : Depends: python-twisted-core (>= 13.2.0-1ubuntu1.2) but 13.2.0-1ubuntu1 is installed
python-twisted-mail : Depends: python-twisted-core (>= 13.2.0-1ubuntu1.2) but 13.2.0-1ubuntu1 is installed
python-twisted-names : Depends: python-twisted-core (>= 13.2.0-1ubuntu1.2) but 13.2.0-1ubuntu1 is installed
E: Unmet dependencies. Try using -f.
My system version is as follows ,
cat /proc/version
Linux version 3.19.0-33-generic (buildd#lgw01-49) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #38~14.04.1-Ubuntu SMP Fri Nov 6 18:17:28 UTC 2015
I tried to follow the instruction of the error info but still get the same error .
sudo apt-get install -f python-twisted-conch
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:
python-twisted-mail : Depends: python-twisted-core (>= 13.2.0-1ubuntu1.2) but 13.2.0-1ubuntu1 is to be installed
python-twisted-names : Depends: python-twisted-core (>= 13.2.0-1ubuntu1.2) but 13.2.0-1ubuntu1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
As be mentioned above, I tried to install python-pip and python-dev with command:
sudo apt-get install python-pip python-dev
then I get:
sudo apt-get install python-pip python-dev
[sudo] password for tailongnguyen:
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-dev : Depends: python (= 2.7.11-1) but 2.7.12-1 is to be installed
python-pip : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
Recommends: python-all-dev (>= 2.6) but it is not going to be installed
Recommends: python-setuptools but it is not going to be installed
Recommends: python-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
What I need to do now?
I tried
sudo apt-get update
sudo apt-get upgrade
but it didn't help
See this link. This resolved this issue, though I got similar issue with apache2.2-common after fixing this.
https://askubuntu.com/questions/275861/problem-installing-python-dev