LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-01-2018, 01:55 AM   #31
sumit_48
LQ Newbie
 
Registered: Feb 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by pan64 View Post
that is great! Please mark the thread solved if you think your problem is solved.
What should I do about this?
Quote:
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:08 AM   #32
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
would be nice to know the command you tried to execute and the full output
 
Old 03-01-2018, 02:09 AM   #33
sumit_48
LQ Newbie
 
Registered: Feb 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Code:
sumit@sumit ~ $ sudo apt-get install gnuplot
[sudo] password for sumit: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  aglfn gnuplot-tex gnuplot5-data gnuplot5-qt liblua5.1-0
Suggested packages:
  feedgnuplot gnuplot-doc libgnuplot-iostream-dev python-gnuplot gnuplot5-doc
The following NEW packages will be installed:
  aglfn gnuplot gnuplot-tex gnuplot5-data gnuplot5-qt liblua5.1-0
0 upgraded, 6 newly installed, 0 to remove and 42 not upgraded.
3 not fully installed or removed.
Need to get 1,159 kB/1,459 kB of archives.
After this operation, 3,692 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 aglfn all 1.7-3 [29.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial/universe amd64 gnuplot-tex all 4.6.6-3 [10.1 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial/universe amd64 gnuplot5-data all 5.0.3+dfsg2-1 [59.3 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial/main amd64 liblua5.1-0 amd64 5.1.5-8ubuntu1 [102 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/universe amd64 gnuplot5-qt amd64 5.0.3+dfsg2-1 [951 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/universe amd64 gnuplot all 4.6.6-3 [6,970 B]
Fetched 1,159 kB in 4s (260 kB/s)   
Selecting previously unselected package aglfn.
(Reading database ... 204807 files and directories currently installed.)
Preparing to unpack .../archives/aglfn_1.7-3_all.deb ...
Unpacking aglfn (1.7-3) ...
Selecting previously unselected package gnuplot-tex.
Preparing to unpack .../gnuplot-tex_4.6.6-3_all.deb ...
Unpacking gnuplot-tex (4.6.6-3) ...
Selecting previously unselected package gnuplot5-data.
Preparing to unpack .../gnuplot5-data_5.0.3+dfsg2-1_all.deb ...
Unpacking gnuplot5-data (5.0.3+dfsg2-1) ...
Selecting previously unselected package liblua5.1-0:amd64.
Preparing to unpack .../liblua5.1-0_5.1.5-8ubuntu1_amd64.deb ...
Unpacking liblua5.1-0:amd64 (5.1.5-8ubuntu1) ...
Selecting previously unselected package gnuplot5-qt.
Preparing to unpack .../gnuplot5-qt_5.0.3+dfsg2-1_amd64.deb ...
Unpacking gnuplot5-qt (5.0.3+dfsg2-1) ...
Selecting previously unselected package gnuplot.
Preparing to unpack .../gnuplot_4.6.6-3_all.deb ...
Unpacking gnuplot (4.6.6-3) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
dpkg: error processing package mate-menus (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of mozo:
 mozo depends on mate-menus; however:
  Package mate-menus is not configured yet.

dpkg: error processing package mozo (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing package python-apt (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Setting up aglfn (1.7-3) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          Setting up gnuplot-tex (4.6.6-3) ...
Setting up gnuplot5-data (5.0.3+dfsg2-1) ...
Setting up liblua5.1-0:amd64 (5.1.5-8ubuntu1) ...
Setting up gnuplot5-qt (5.0.3+dfsg2-1) ...
update-alternatives: using /usr/bin/gnuplot5-qt to provide /usr/bin/gnuplot (gnuplot) in auto mode
update-alternatives: using /usr/bin/gnuplot5-qt to provide /usr/bin/gnuplot5 (gnuplot5) in auto mode
Setting up gnuplot (4.6.6-3) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
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:20 AM   #34
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
so do what was suggested:
Code:
dpkg: error processing package python-apt (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
 
Old 03-02-2018, 11:42 AM   #35
sumit_48
LQ Newbie
 
Registered: Feb 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
so do what was suggested:
Code:
dpkg: error processing package python-apt (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
I am not able to figure out what to do. I am also not able to open system setting graphical interface,
 
Old 03-03-2018, 03:39 AM   #36
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
you should reinstall it.
That is: apt-get install --reinstall python-apt
 
Old 03-03-2018, 05:28 AM   #37
sumit_48
LQ Newbie
 
Registered: Feb 2018
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
you should reinstall it.
That is: apt-get install --reinstall python-apt
Am getting this:
Code:
sumit@sumit ~ $ sudo apt-get install --reinstall python-apt
[sudo] password for sumit: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  python-apt-dbg python-apt-doc
The following packages will be upgraded:
  python-apt
1 upgraded, 0 newly installed, 0 to remove and 51 not upgraded.
3 not fully installed or removed.
Need to get 0 B/300 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
(Reading database ... 204908 files and directories currently installed.)
Preparing to unpack .../python-apt_1.1.0~beta1ubuntu0.16.04.1_amd64.deb ...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
dpkg: error processing archive /var/cache/apt/archives/python-apt_1.1.0~beta1ubuntu0.16.04.1_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/python-apt_1.1.0~beta1ubuntu0.16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 03-03-2018, 05:47 AM   #38
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
I'll have to be honest with you, sumit 48. Usually when I see people with a problem such as yours, they go around in circles trying to solve it and eventually have to reinstall. Something has gone very awry with your Python setup. It probably is resolvable, but it could take a lot of nitty gritty complicated work to resolve it. Far easier to back up all your data to an external device and then reinstall the operating system.

Mint supports a great application called TimeShift which can be configured to take automatic snapshots of your system and allow you to roll back to a previous snapshot if things go wrong. I would advise you strongly to install this if you resolve the problem or reinstall Mint, and use it to minimise the damage if anything like this happens again.
 
1 members found this post helpful.
Old 03-16-2018, 02:59 PM   #39
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,987
Blog Entries: 33

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Thumbs up

hydrurga,

Timeshift delivers system snapshots.

Well that's a new one on me.

I see it is installed by default in Linux Mint 18.3 and complements the Backup Tool:
https://linuxmint.com/rel_sylvia_mate_whatsnew.php

Thanks.
 
Old 03-16-2018, 03:49 PM   #40
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by beachboy2 View Post
hydrurga,

Timeshift delivers system snapshots.

Well that's a new one on me.

I see it is installed by default in Linux Mint 18.3 and complements the Backup Tool:
https://linuxmint.com/rel_sylvia_mate_whatsnew.php

Thanks.
It's a great wee tool, BB, acting much like System Restore in Windows. Here's hoping more people make use of it!
 
Old 03-16-2018, 06:28 PM   #41
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,987
Blog Entries: 33

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Thumbs up

hydrurga,

Quote:
Originally Posted by hydrurga View Post
It's a great wee tool, BB, acting much like System Restore in Windows. Here's hoping more people make use of it!
Personally I now never rely on any of Microsoft's Windows Restore systems. One failure is one too many for me.

I always use Macrium Reflect Free, which is very reliable and also a lot faster:

https://www.macrium.com/reflectfree

The Home Edition of Macrium (one-off payment) has some useful additional features but for most people the free version is usually adequate.

Macrium Home Edition:
https://www.macrium.com/products/home

Macrium tutorial:
https://www.tenforums.com/tutorials/...m-reflect.html

Last edited by beachboy2; 03-16-2018 at 06:34 PM.
 
1 members found this post helpful.
Old 03-23-2018, 09:49 AM   #42
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,987
Blog Entries: 33

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
Smile

hydrurga,

I have just installed Linux Mint 18.3 MATE and had a closer look at TimeShift.

I appreciate that it only backs up your Linux system. All personal data must be backed up separately.

Personally for a system image snapshot I would use Redo Backup (or Clonezilla):

http://redobackup.org/

Isn't having choice a wonderful thing?
 
Old 03-23-2018, 11:04 AM   #43
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by beachboy2 View Post
hydrurga,

I have just installed Linux Mint 18.3 MATE and had a closer look at TimeShift.

I appreciate that it only backs up your Linux system. All personal data must be backed up separately.

Personally for a system image snapshot I would use Redo Backup (or Clonezilla):

http://redobackup.org/

Isn't having choice a wonderful thing?
It is indeed.

You can set TimeShift up to backup your home directory (and presumably its subdirectories too): Settings->Users.
 
1 members found this post helpful.
  


Reply



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 11:08 AM
Error while executing sudo apt-get upgrade Sammehta Linux - Newbie 1 02-18-2016 06:15 AM
sudo apt-get upgrade not working 14.04 ubuntu zeeshanayub Linux - Newbie 1 10-21-2014 08:15 PM
sudo apt-get update && sudo apt-get upgrade hallve_revera Linux - Newbie 6 01-10-2009 09:37 AM
sudo apt-get upgrade CMXILies Linux - Newbie 3 01-09-2009 07:59 PM

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

All times are GMT -5. The time now is 03:38 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