LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-25-2016, 08:27 PM   #1
Nickwit
LQ Newbie
 
Registered: Dec 2016
Posts: 11

Rep: Reputation: Disabled
How to recover from Python disaster


Hi all


I'm using Ubuntu-Studio for the first time... all was good, apart from bluetooth clashing with wifi (which has been going on for years now, across multiple versions, laptops etc)...

... and (more pertinently), Inkscape not being able to export PLT... which I need for work.

On a thread elsewhere, someone suggested I "try a complete reinstall of Python" - so I did

sudo apt-get remove python2.7

in the hope of then doing

sudo apt-get install python3.5

and it deleted half of the applications completely (including inkscape), and a lot more (eg: Jack) appear to no longer work.


Is there an easy way to recover from this or do I have to reinstall my operating system completely?
 
Old 12-25-2016, 09:46 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
If you do not have the list of what was uninstalled, in /var/log there should be several logs of the package activities. None of them are particularly suitable for copying and pasting, but using them you can find out exactly what to reinstall. Use the command line to reinstall everything that was removed and you'll be fine.

/var/log/apt/history.log
/var/log/apt/term.log
/var/log/dpkg.log


Let this be a lesson for you to read and think before pressing Y.
 
Old 12-25-2016, 10:59 PM   #3
Nickwit
LQ Newbie
 
Registered: Dec 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hiya - thanks for that.


There seems to be about 130 packages, most of which I don't recognise... which may or may not be dependencies.

I guess I just re-install the applications I do actually use... which is a pity, because Ubuntu-Studio had included a whole load of stuff I might have found interesting.


I don't know what the lesson is here - with respect, I did "read and think" for about a week - getting nowhere, and then asking on forums. You do kindof depend on forums for help, rather than advice that will wind up trashing your system.

I don't know if it's just me, but I've been using Ubuntu for about 10 years now I think - and it's getting more and more difficult to get working properly each time. It' almost like software gets to a certain level of complexity, and then after that a kind of entropy kicks in.
 
Old 12-26-2016, 12:30 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
If they maintain their own repos, package re-install should work and retain any config changes they have merged. Cross-package dependencies they may have introduced - hmmm, maybe.

For a special spin like that a re-install might be a better option. Make sure you have /home as a separate partition first - you can mount that during install and not format it and all you user specific config files will be retained and used on reboot of the new system.
Back when I did use Ubuntu, this worked successfully over a period of years.
 
Old 12-26-2016, 01:32 AM   #5
Nickwit
LQ Newbie
 
Registered: Dec 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Yea - it's looking like a new install
 
Old 12-26-2016, 09:20 AM   #6
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,777

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by Nickwit View Post
I don't know what the lesson is here
The lesson is that when apt-get displays a huge list of packages that will be removed, you don't respond "y" without reviewing the list and making sure it doesn't include things you want to keep.

And FYI, python-3 is not backward compatible with python-2. Programs written to work with one will not run with the other. If you want python-3, it can be installed along with python-2. They are different packages, not just different versions of the same package.
 
  


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
how to recover 64-bit linux mint 17 after nvidia driver install disaster? maxreason Linux Mint 15 01-09-2015 02:42 AM
Oracle Disaster Recover Walman General 1 06-03-2014 05:20 AM
Disaster Recover and a Change of Architecture yilez Solaris / OpenSolaris 6 03-11-2008 04:31 AM
Can I recover /var/log/packages after a disaster? Randux Slackware 10 04-06-2007 05:40 AM
Disaster Recover (preventative) SDA failing rvicker Linux - Hardware 4 03-04-2007 09:46 PM

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

All times are GMT -5. The time now is 04:53 AM.

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