LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 02-28-2018, 05:35 AM   #16
sumit_48
LQ Newbie
 
Registered: Feb 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled

Code:
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).
 
Old 02-28-2018, 07:07 AM   #17
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,881

Rep: Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250
yes, you may need to do the same with python:
Code:
apt-get install python=2.7.11-1
 
Old 02-28-2018, 07:55 AM   #18
sumit_48
LQ Newbie
 
Registered: Feb 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Code:
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).
 
Old 02-28-2018, 01:39 PM   #19
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,764

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
Code:
apt-get install python=2.7.12-1~16.04
 
Old 02-28-2018, 05:13 PM   #20
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163
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
 
Old 02-28-2018, 05:44 PM   #21
sumit_48
LQ Newbie
 
Registered: Feb 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Code:
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)
 
Old 02-28-2018, 05:47 PM   #22
sumit_48
LQ Newbie
 
Registered: Feb 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
There is no sources.list at mentioned location
 
Old 02-28-2018, 07:17 PM   #23
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2913Reputation: 2913Reputation: 2913Reputation: 2913Reputation: 2913Reputation: 2913Reputation: 2913Reputation: 2913Reputation: 2913Reputation: 2913Reputation: 2913
Quote:
Originally Posted by sumit_48 View Post
There is no sources.list at mentioned location
Post the output from inxi -r instead.
 
Old 02-28-2018, 11:18 PM   #24
sumit_48
LQ Newbie
 
Registered: Feb 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Post the output from inxi -r instead.
Code:
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
 
Old 03-01-2018, 12:48 AM   #25
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,764

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
Quote:
Originally Posted by sumit_48 View Post
Code:
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...
 
Old 03-01-2018, 01:03 AM   #26
sumit_48
LQ Newbie
 
Registered: Feb 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by descendant_command View Post
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...
How I can install python directly using dpkg.
 
Old 03-01-2018, 01:17 AM   #27
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,881

Rep: Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250
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.
 
1 members found this post helpful.
Old 03-01-2018, 02:04 AM   #28
sumit_48
LQ Newbie
 
Registered: Feb 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
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.
 
Old 03-01-2018, 02:52 AM   #29
sumit_48
LQ Newbie
 
Registered: Feb 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
But after everything am getting this error at the end of every installation
Code:
Errors were encountered while processing:
 mate-menus
 mozo
 python-apt
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 03-01-2018, 02:53 AM   #30
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,881

Rep: Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250Reputation: 5250
that is great! Please mark the thread solved if you think your problem is solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Getting error while using sudo apt-get upgrade "The following packages have unmet dependencies:" aruneshdutta Linux - Newbie 2 06-25-2017 12:08 PM
Error while executing sudo apt-get upgrade Sammehta Linux - Newbie 1 02-18-2016 07:15 AM
sudo apt-get upgrade not working 14.04 ubuntu zeeshanayub Linux - Newbie 1 10-21-2014 09:15 PM
sudo apt-get update && sudo apt-get upgrade hallve_revera Linux - Newbie 6 01-10-2009 10:37 AM
sudo apt-get upgrade CMXILies Linux - Newbie 3 01-09-2009 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 12:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration