fix ubuntu after inadvertently uninstalling a lot of things (base programs)












2















I'm on Ubuntu 16.04 and I wanted to upgrade my boost from 1.58 to the latest version because one of the programs I was planning to use requires it. One thread suggested that I need to uninstall the older version first before installing a the newer version. So I did using:



sudo apt-get remove 'libboost-.*'


Little did I know that hitting enter and yes was the stupidest thing to do. I'm not unfamiliar with removing programs so I did not read what is on the terminal (which programs were to be removed) and my fingers were really faster than my eyes. So when I noticed that the programs in my dashboard (e.g. libreoffice) started to disappear I thought I had to stop the run, which I did. However, the damage has been done. Upon restarting my computer, it's been stuck on the ubuntu splash page with the five dots still changing their colors. It's like that for almost 2 hours now. I'm stupid and I badly need help. Oh, my poor data.



Thank you.










share|improve this question





























    2















    I'm on Ubuntu 16.04 and I wanted to upgrade my boost from 1.58 to the latest version because one of the programs I was planning to use requires it. One thread suggested that I need to uninstall the older version first before installing a the newer version. So I did using:



    sudo apt-get remove 'libboost-.*'


    Little did I know that hitting enter and yes was the stupidest thing to do. I'm not unfamiliar with removing programs so I did not read what is on the terminal (which programs were to be removed) and my fingers were really faster than my eyes. So when I noticed that the programs in my dashboard (e.g. libreoffice) started to disappear I thought I had to stop the run, which I did. However, the damage has been done. Upon restarting my computer, it's been stuck on the ubuntu splash page with the five dots still changing their colors. It's like that for almost 2 hours now. I'm stupid and I badly need help. Oh, my poor data.



    Thank you.










    share|improve this question



























      2












      2








      2








      I'm on Ubuntu 16.04 and I wanted to upgrade my boost from 1.58 to the latest version because one of the programs I was planning to use requires it. One thread suggested that I need to uninstall the older version first before installing a the newer version. So I did using:



      sudo apt-get remove 'libboost-.*'


      Little did I know that hitting enter and yes was the stupidest thing to do. I'm not unfamiliar with removing programs so I did not read what is on the terminal (which programs were to be removed) and my fingers were really faster than my eyes. So when I noticed that the programs in my dashboard (e.g. libreoffice) started to disappear I thought I had to stop the run, which I did. However, the damage has been done. Upon restarting my computer, it's been stuck on the ubuntu splash page with the five dots still changing their colors. It's like that for almost 2 hours now. I'm stupid and I badly need help. Oh, my poor data.



      Thank you.










      share|improve this question
















      I'm on Ubuntu 16.04 and I wanted to upgrade my boost from 1.58 to the latest version because one of the programs I was planning to use requires it. One thread suggested that I need to uninstall the older version first before installing a the newer version. So I did using:



      sudo apt-get remove 'libboost-.*'


      Little did I know that hitting enter and yes was the stupidest thing to do. I'm not unfamiliar with removing programs so I did not read what is on the terminal (which programs were to be removed) and my fingers were really faster than my eyes. So when I noticed that the programs in my dashboard (e.g. libreoffice) started to disappear I thought I had to stop the run, which I did. However, the damage has been done. Upon restarting my computer, it's been stuck on the ubuntu splash page with the five dots still changing their colors. It's like that for almost 2 hours now. I'm stupid and I badly need help. Oh, my poor data.



      Thank you.







      libreoffice






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 27 at 7:50







      jfo

















      asked Jan 27 at 7:10









      jfojfo

      133




      133






















          1 Answer
          1






          active

          oldest

          votes


















          1















          1. Switch to a virtual terminal so you can execute commands by pressing Ctrl + Alt + F2


          2. Become root by running sudo -s


          3. Reinstall the ubuntu-desktop package using apt install ubuntu-desktop --reinstall


          4. If nothing happens and apt says it's already installed, remove the package using apt remove ubuntu-desktop and run the reinstall command (step 3) again.


          5. Once done reboot the system by typing reboot







          share|improve this answer
























          • Hi Mr. Ives, I could not access the virtual terminal by pressing Ctrl + Alt + F2 on the splash screen.

            – jfo
            Jan 27 at 7:26











          • Try other F1, F2, F3, etc. keys.

            – Kristopher Ives
            Jan 27 at 7:48











          • You can also hold Shift while booting and enter into a recovery (root) terminal.

            – Kristopher Ives
            Jan 27 at 7:48






          • 1





            I went to the advanced options for ubuntu in the boot menu then went to recovery mode. I enabled the network first then drop to root. I encountered temporary resolved issues which was addressed here (askubuntu.com/a/91595/918207). Then, I did what you suggested and everything is now okay. Thank you!

            – jfo
            Jan 27 at 9:03











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1113212%2ffix-ubuntu-after-inadvertently-uninstalling-a-lot-of-things-base-programs%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1















          1. Switch to a virtual terminal so you can execute commands by pressing Ctrl + Alt + F2


          2. Become root by running sudo -s


          3. Reinstall the ubuntu-desktop package using apt install ubuntu-desktop --reinstall


          4. If nothing happens and apt says it's already installed, remove the package using apt remove ubuntu-desktop and run the reinstall command (step 3) again.


          5. Once done reboot the system by typing reboot







          share|improve this answer
























          • Hi Mr. Ives, I could not access the virtual terminal by pressing Ctrl + Alt + F2 on the splash screen.

            – jfo
            Jan 27 at 7:26











          • Try other F1, F2, F3, etc. keys.

            – Kristopher Ives
            Jan 27 at 7:48











          • You can also hold Shift while booting and enter into a recovery (root) terminal.

            – Kristopher Ives
            Jan 27 at 7:48






          • 1





            I went to the advanced options for ubuntu in the boot menu then went to recovery mode. I enabled the network first then drop to root. I encountered temporary resolved issues which was addressed here (askubuntu.com/a/91595/918207). Then, I did what you suggested and everything is now okay. Thank you!

            – jfo
            Jan 27 at 9:03
















          1















          1. Switch to a virtual terminal so you can execute commands by pressing Ctrl + Alt + F2


          2. Become root by running sudo -s


          3. Reinstall the ubuntu-desktop package using apt install ubuntu-desktop --reinstall


          4. If nothing happens and apt says it's already installed, remove the package using apt remove ubuntu-desktop and run the reinstall command (step 3) again.


          5. Once done reboot the system by typing reboot







          share|improve this answer
























          • Hi Mr. Ives, I could not access the virtual terminal by pressing Ctrl + Alt + F2 on the splash screen.

            – jfo
            Jan 27 at 7:26











          • Try other F1, F2, F3, etc. keys.

            – Kristopher Ives
            Jan 27 at 7:48











          • You can also hold Shift while booting and enter into a recovery (root) terminal.

            – Kristopher Ives
            Jan 27 at 7:48






          • 1





            I went to the advanced options for ubuntu in the boot menu then went to recovery mode. I enabled the network first then drop to root. I encountered temporary resolved issues which was addressed here (askubuntu.com/a/91595/918207). Then, I did what you suggested and everything is now okay. Thank you!

            – jfo
            Jan 27 at 9:03














          1












          1








          1








          1. Switch to a virtual terminal so you can execute commands by pressing Ctrl + Alt + F2


          2. Become root by running sudo -s


          3. Reinstall the ubuntu-desktop package using apt install ubuntu-desktop --reinstall


          4. If nothing happens and apt says it's already installed, remove the package using apt remove ubuntu-desktop and run the reinstall command (step 3) again.


          5. Once done reboot the system by typing reboot







          share|improve this answer














          1. Switch to a virtual terminal so you can execute commands by pressing Ctrl + Alt + F2


          2. Become root by running sudo -s


          3. Reinstall the ubuntu-desktop package using apt install ubuntu-desktop --reinstall


          4. If nothing happens and apt says it's already installed, remove the package using apt remove ubuntu-desktop and run the reinstall command (step 3) again.


          5. Once done reboot the system by typing reboot








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 27 at 7:14









          Kristopher IvesKristopher Ives

          2,83211525




          2,83211525













          • Hi Mr. Ives, I could not access the virtual terminal by pressing Ctrl + Alt + F2 on the splash screen.

            – jfo
            Jan 27 at 7:26











          • Try other F1, F2, F3, etc. keys.

            – Kristopher Ives
            Jan 27 at 7:48











          • You can also hold Shift while booting and enter into a recovery (root) terminal.

            – Kristopher Ives
            Jan 27 at 7:48






          • 1





            I went to the advanced options for ubuntu in the boot menu then went to recovery mode. I enabled the network first then drop to root. I encountered temporary resolved issues which was addressed here (askubuntu.com/a/91595/918207). Then, I did what you suggested and everything is now okay. Thank you!

            – jfo
            Jan 27 at 9:03



















          • Hi Mr. Ives, I could not access the virtual terminal by pressing Ctrl + Alt + F2 on the splash screen.

            – jfo
            Jan 27 at 7:26











          • Try other F1, F2, F3, etc. keys.

            – Kristopher Ives
            Jan 27 at 7:48











          • You can also hold Shift while booting and enter into a recovery (root) terminal.

            – Kristopher Ives
            Jan 27 at 7:48






          • 1





            I went to the advanced options for ubuntu in the boot menu then went to recovery mode. I enabled the network first then drop to root. I encountered temporary resolved issues which was addressed here (askubuntu.com/a/91595/918207). Then, I did what you suggested and everything is now okay. Thank you!

            – jfo
            Jan 27 at 9:03

















          Hi Mr. Ives, I could not access the virtual terminal by pressing Ctrl + Alt + F2 on the splash screen.

          – jfo
          Jan 27 at 7:26





          Hi Mr. Ives, I could not access the virtual terminal by pressing Ctrl + Alt + F2 on the splash screen.

          – jfo
          Jan 27 at 7:26













          Try other F1, F2, F3, etc. keys.

          – Kristopher Ives
          Jan 27 at 7:48





          Try other F1, F2, F3, etc. keys.

          – Kristopher Ives
          Jan 27 at 7:48













          You can also hold Shift while booting and enter into a recovery (root) terminal.

          – Kristopher Ives
          Jan 27 at 7:48





          You can also hold Shift while booting and enter into a recovery (root) terminal.

          – Kristopher Ives
          Jan 27 at 7:48




          1




          1





          I went to the advanced options for ubuntu in the boot menu then went to recovery mode. I enabled the network first then drop to root. I encountered temporary resolved issues which was addressed here (askubuntu.com/a/91595/918207). Then, I did what you suggested and everything is now okay. Thank you!

          – jfo
          Jan 27 at 9:03





          I went to the advanced options for ubuntu in the boot menu then went to recovery mode. I enabled the network first then drop to root. I encountered temporary resolved issues which was addressed here (askubuntu.com/a/91595/918207). Then, I did what you suggested and everything is now okay. Thank you!

          – jfo
          Jan 27 at 9:03


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1113212%2ffix-ubuntu-after-inadvertently-uninstalling-a-lot-of-things-base-programs%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Human spaceflight

          Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

          張江高科駅