0

By mistake I ran

sudo apt-get purge 7.0.*  

instead of

sudo apt-get purge PHP 7.0.*

Now my system is not opening. What to do now?

I updated the system but still no progress.

Zanna
  • 72,312

2 Answers2

1

I made the same mistake a few months ago. The best option you have is to use a bootable USB drive and take a backup of your data. Then you can try to restore Ubuntu.

  1. Boot using live bootable usb
  2. Make a backup of your data (in case something goes wrong)
  3. Try to re-install Ubuntu
  4. If re-installation doesn't work
  5. Delete all directories from Ubuntu root except /etc/ and /home/ then install Ubuntu
  6. While entering username and password, enter the same username and password same as the old ones
  7. Reboot and see if it works
  8. If steps 5-6 don't work, then re-install completely and restore from backup
Zanna
  • 72,312
Alok Yadav
  • 111
  • 6
0

(if you mean it won't boot by not opening) There's probably a more efficient solution than this (that I don't know, of course), but I would boot it from a live USB, back up all of your files onto another USB if you haven't already backed your files up, and reinstall Ubuntu.