How to recover completely broken Ubuntu 18.04

My upgrade from 16.04 ro 18.04 went super good..with below command $sudo update $sudo upgrade $sudo do-release-upgrade After this you have to bunch of Y's to continue clean install (sorry for putting short cut process here). As i faced crazy issue after that.. I tried to install another toolkit in Ubuntu 18.04 and in process somehow it deleted some systemfiles as part of python3 removeal process... This step made me to spend almost 6-8hrs of non-stop hard hitting to fix 1. First my KeyBoard and Mouse stopped working after restart 2. Had to reboot and during BIOS coming up - I had to hit "Esc" key to go to GRUB GUI 3. I selected "recovery-mode" Linux image 4. Then selected "root" shell and try to install "sudo apt-get install ubuntu-desktop" and it failed crazy because Wifi not connected at this point and "$sudo update" failed 5. then I have to use "nmcli" commands to connect to my wifi (google nmcli commands) 6. After sucessfully connecting to wifi - i was able to run "sudo apr-get update && sudo apt-get upgrade" and still "sudo apt-get install ubuntu-desktop" was failing 7. But, keyboard started working (Hope I am not missing something b/n Step 6 & 7 - w.r.t isntalling gonme package with apt-get) 8. BIGGEST challenge was "Fail to start session" when trying to login to system (THIS WAS THE MOST TIME TAKEN HARD PROBLEM) 9. I had to so much of circus to fix this - this time once I got to login screen - I entered command promopt/terminal with "CTRL + ALT + F2" 10. First tried to install "sudo apt-get install ubuntu-package" - it said I dont know what are you talking about "ubunut-package" not found 11. Then I tried to install python3 (which is the main culprit for all this hassle) - started throwing dpgk: error not able to proceed (subprocess dpkg failed etc. something like that) 12. Even "sudo dpkg --configure -a" was not working 13. Then I installed "sudo apt-get intall aptitude" 14. sudo aptitude install python3-pip 15. sudo aptitude install python3-dev (not 100% sure of this - nothing harm to in reinstalling) 16. and etc. packages - all the once which are through error by "sudo apt-get install ubuntu-desktop" in previous steps 17. During 14, 15 and 16 steps - it will ask you to give your decision on what each step/command is going to do (if you feel all looks good- you can hit 'y' or Enter) Now you should not see any dpkg errors and reboot your system and you can happily login and recover all your hard work put in this silly life so far.. Have fun....!!!! with lot of bugs and blockers - which have simple fixs.... Kudos to Communities trying to help each other....

Related Posts

Twitter Updates

Random Posts

share this post
Bookmark and Share
| More
Share/Save/Bookmark Share