Please help me to solve sudo apt-get upgrade error
Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
sumit ~ # apt-get install python-minimal=2.7.11-1
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 : Depends: libpython-stdlib (= 2.7.11-1) but 2.7.12-1~16.04 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
sumit ~ # apt-get install python=2.7.11-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version (2.7.11-1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
python : PreDepends: python-minimal (= 2.7.11-1) but 2.7.12-1~16.04 is to be installed
Depends: libpython-stdlib (= 2.7.11-1) but 2.7.12-1~16.04 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
You should be able to view your sources.list via the terminal:-
Code:
cat /etc/apt/sources.list
If you changed your sources list it would help to post it for us to view it.
Only replace your sources list when it's necessary; namely when you have a polluted list with wrong or defective sources in it. Don't do it for any other reason. https://sites.google.com/site/easyli...ject/reserve-8
sumit ~ # apt-get install python=2.7.12-1~16.04
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
python-doc python-tk
The following packages will be upgraded:
python
1 upgraded, 0 newly installed, 0 to remove and 181 not upgraded.
1 not fully installed or removed.
Need to get 0 B/137 kB of archives.
After this operation, 0 B of additional disk space will be used.
Setting up python-minimal (2.7.12-1~16.04) ...
Bus error (core dumped)
dpkg: error processing package python-minimal (--configure):
subprocess installed post-installation script returned error exit status 135
Errors were encountered while processing:
python-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
sumit ~ # inxi -r instead
Repos: Active apt sources in file: /etc/apt/sources.list.d/google-chrome.list
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
Active apt sources in file: /etc/apt/sources.list.d/graphics-drivers-ppa-xenial.list
deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial main
Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com sylvia main upstream import backport #id:linuxmint_main
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ xenial partner
Setting up python-minimal (2.7.12-1~16.04) ...
Bus error (core dumped)
dpkg: error processing package python-minimal (--configure):
Here is the problem.
You don't have any hardware errors reported in dmesg or such?
Maybe it's caused by the mismatched python components (IIRC apt uses python).
You might try to use dpkg directly to install the correct python's (maybe with --force-depends or such - see man dpkg).
If that don't work, a reinstall will.
As to how you got yourself into this mess might be something to reflect on...
Here is the problem.
You don't have any hardware errors reported in dmesg or such?
Maybe it's caused by the mismatched python components (IIRC apt uses python).
You might try to use dpkg directly to install the correct python's (maybe with --force-depends or such - see man dpkg).
If that don't work, a reinstall will.
As to how you got yourself into this mess might be something to reflect on...
you need to download package, for example instead of: apt-get install package=version use apt-get download package=version.
next dpkg -i <downloaded packages>.
But I suggest you to download both python and python-minimal and install them "in one", so enter: dpkg -i package1.deb package2.deb
Let we see what's happening.
you need to download package, for example instead of: apt-get install package=version use apt-get download package=version.
next dpkg -i <downloaded packages>.
But I suggest you to download both python and python-minimal and install them "in one", so enter: dpkg -i package1.deb package2.deb
Let we see what's happening.
Thanks, installing python manually and then using 'sudo apt -f install' has worked for now. Let's hope I will not face any other problem now.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.