How to restore /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I accidentally overwrote /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko on Ubuntu 14.04. How can I get this back?










share|improve this question

























    up vote
    0
    down vote

    favorite












    I accidentally overwrote /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko on Ubuntu 14.04. How can I get this back?










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I accidentally overwrote /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko on Ubuntu 14.04. How can I get this back?










      share|improve this question













      I accidentally overwrote /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko on Ubuntu 14.04. How can I get this back?







      drivers






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 23 at 1:38









      Elijah Lynn

      2,41721627




      2,41721627




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          Since it doesn't seem like installing is helping I guess you could try to manually download the kernel, extract the files then copy the file over manually.



          Download the kernel to the /tmp directory:



          cd /tmp
          apt download linux-image-extra-4.4.0-116-generic


          Next, extract the files from the downloaded .deb file:



          ar -x linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb


          Now, extract the data.tar.gz contents:



          tar xvf data.tar.gz


          Now you should be able to copy the missing file back to your folder.



          sudo cp /tmp/lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/



          Thank you @Olorin for a cool one string command after you download the kernel file using dpkg-deb to extract the one file and put it in the designation folder:



          dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv ./lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C /



          Then clean up your /tmp folder or a reboot will clean it:



          Hope this helps!






          share|improve this answer






















          • You can use dpkg-deb instead of ar: dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | tar xv ... actually the entire operation can be done in one pipeline: dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C /
            – Olorin
            Mar 23 at 3:49










          • @Olorin I understand that. But I test all commands before I put them in my answers. Unfortunately, that does not work. Even when I try to extract only the file from the tar.bz2 file it tells me file not found, but when I extract all the contents of it, the file is there and I can copy it.
            – Terrance
            Mar 23 at 4:14






          • 1




            @Olorin The command actually needs to be dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv ./lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C / If you list the contents of the bz2 file it shows them with the ./ before the name. Then it extracts fine. I will add that to my answer then.
            – Terrance
            Mar 23 at 4:26






          • 1




            Ah yes. Another instance of xkcd.com/1168
            – Olorin
            Mar 23 at 4:28

















          up vote
          1
          down vote













          Simply reinstall the package that contains the file.



          To find what package contains /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko, run:



          dpkg -S /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko


          This should output (in your case):



          linux-image-4.4.0-116-generic: /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko


          Simply reinstall the package:



          sudo apt-get install --reinstall linux-image-4.4.0-116-generic


          If this does not fix it:



          sudo apt-get purge linux-image-4.4.0-116-generic
          sudo apt-get install linux-image-4.4.0-116-generic





          share|improve this answer






















          • Thanks, I ran the dpkg command but the ../usbserial.ko path doesn't exist. Maybe something else somehow installed it?
            – Elijah Lynn
            Mar 23 at 2:01











          • Oh, I manually entered the path and it did return linux-image-extra-4.4.0-116-generic: /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko as you said. However the --reinstall command completed successfully but the file doesn't exist still. I did delete the file after I overwrote it incorrectly.
            – Elijah Lynn
            Mar 23 at 2:03










          • @ElijahLynn reinstalling linux-image-extra-4.4.0-116-generic didn't bring back the file?
            – Olorin
            Mar 23 at 2:13










          • Correct, it did not bring back the file.
            – Elijah Lynn
            Mar 23 at 2:14










          • What about purging and reinstalling? as i have added to my answer
            – ubashu
            Mar 23 at 4:26










          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f1018420%2fhow-to-restore-lib-modules-4-4-0-116-generic-kernel-drivers-usb-serial-usbseria%23new-answer', 'question_page');

          );

          Post as a guest






























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote













          Since it doesn't seem like installing is helping I guess you could try to manually download the kernel, extract the files then copy the file over manually.



          Download the kernel to the /tmp directory:



          cd /tmp
          apt download linux-image-extra-4.4.0-116-generic


          Next, extract the files from the downloaded .deb file:



          ar -x linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb


          Now, extract the data.tar.gz contents:



          tar xvf data.tar.gz


          Now you should be able to copy the missing file back to your folder.



          sudo cp /tmp/lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/



          Thank you @Olorin for a cool one string command after you download the kernel file using dpkg-deb to extract the one file and put it in the designation folder:



          dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv ./lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C /



          Then clean up your /tmp folder or a reboot will clean it:



          Hope this helps!






          share|improve this answer






















          • You can use dpkg-deb instead of ar: dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | tar xv ... actually the entire operation can be done in one pipeline: dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C /
            – Olorin
            Mar 23 at 3:49










          • @Olorin I understand that. But I test all commands before I put them in my answers. Unfortunately, that does not work. Even when I try to extract only the file from the tar.bz2 file it tells me file not found, but when I extract all the contents of it, the file is there and I can copy it.
            – Terrance
            Mar 23 at 4:14






          • 1




            @Olorin The command actually needs to be dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv ./lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C / If you list the contents of the bz2 file it shows them with the ./ before the name. Then it extracts fine. I will add that to my answer then.
            – Terrance
            Mar 23 at 4:26






          • 1




            Ah yes. Another instance of xkcd.com/1168
            – Olorin
            Mar 23 at 4:28














          up vote
          2
          down vote













          Since it doesn't seem like installing is helping I guess you could try to manually download the kernel, extract the files then copy the file over manually.



          Download the kernel to the /tmp directory:



          cd /tmp
          apt download linux-image-extra-4.4.0-116-generic


          Next, extract the files from the downloaded .deb file:



          ar -x linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb


          Now, extract the data.tar.gz contents:



          tar xvf data.tar.gz


          Now you should be able to copy the missing file back to your folder.



          sudo cp /tmp/lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/



          Thank you @Olorin for a cool one string command after you download the kernel file using dpkg-deb to extract the one file and put it in the designation folder:



          dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv ./lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C /



          Then clean up your /tmp folder or a reboot will clean it:



          Hope this helps!






          share|improve this answer






















          • You can use dpkg-deb instead of ar: dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | tar xv ... actually the entire operation can be done in one pipeline: dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C /
            – Olorin
            Mar 23 at 3:49










          • @Olorin I understand that. But I test all commands before I put them in my answers. Unfortunately, that does not work. Even when I try to extract only the file from the tar.bz2 file it tells me file not found, but when I extract all the contents of it, the file is there and I can copy it.
            – Terrance
            Mar 23 at 4:14






          • 1




            @Olorin The command actually needs to be dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv ./lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C / If you list the contents of the bz2 file it shows them with the ./ before the name. Then it extracts fine. I will add that to my answer then.
            – Terrance
            Mar 23 at 4:26






          • 1




            Ah yes. Another instance of xkcd.com/1168
            – Olorin
            Mar 23 at 4:28












          up vote
          2
          down vote










          up vote
          2
          down vote









          Since it doesn't seem like installing is helping I guess you could try to manually download the kernel, extract the files then copy the file over manually.



          Download the kernel to the /tmp directory:



          cd /tmp
          apt download linux-image-extra-4.4.0-116-generic


          Next, extract the files from the downloaded .deb file:



          ar -x linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb


          Now, extract the data.tar.gz contents:



          tar xvf data.tar.gz


          Now you should be able to copy the missing file back to your folder.



          sudo cp /tmp/lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/



          Thank you @Olorin for a cool one string command after you download the kernel file using dpkg-deb to extract the one file and put it in the designation folder:



          dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv ./lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C /



          Then clean up your /tmp folder or a reboot will clean it:



          Hope this helps!






          share|improve this answer














          Since it doesn't seem like installing is helping I guess you could try to manually download the kernel, extract the files then copy the file over manually.



          Download the kernel to the /tmp directory:



          cd /tmp
          apt download linux-image-extra-4.4.0-116-generic


          Next, extract the files from the downloaded .deb file:



          ar -x linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb


          Now, extract the data.tar.gz contents:



          tar xvf data.tar.gz


          Now you should be able to copy the missing file back to your folder.



          sudo cp /tmp/lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/



          Thank you @Olorin for a cool one string command after you download the kernel file using dpkg-deb to extract the one file and put it in the designation folder:



          dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv ./lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C /



          Then clean up your /tmp folder or a reboot will clean it:



          Hope this helps!







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 23 at 4:31

























          answered Mar 23 at 3:15









          Terrance

          17.3k23784




          17.3k23784











          • You can use dpkg-deb instead of ar: dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | tar xv ... actually the entire operation can be done in one pipeline: dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C /
            – Olorin
            Mar 23 at 3:49










          • @Olorin I understand that. But I test all commands before I put them in my answers. Unfortunately, that does not work. Even when I try to extract only the file from the tar.bz2 file it tells me file not found, but when I extract all the contents of it, the file is there and I can copy it.
            – Terrance
            Mar 23 at 4:14






          • 1




            @Olorin The command actually needs to be dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv ./lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C / If you list the contents of the bz2 file it shows them with the ./ before the name. Then it extracts fine. I will add that to my answer then.
            – Terrance
            Mar 23 at 4:26






          • 1




            Ah yes. Another instance of xkcd.com/1168
            – Olorin
            Mar 23 at 4:28
















          • You can use dpkg-deb instead of ar: dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | tar xv ... actually the entire operation can be done in one pipeline: dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C /
            – Olorin
            Mar 23 at 3:49










          • @Olorin I understand that. But I test all commands before I put them in my answers. Unfortunately, that does not work. Even when I try to extract only the file from the tar.bz2 file it tells me file not found, but when I extract all the contents of it, the file is there and I can copy it.
            – Terrance
            Mar 23 at 4:14






          • 1




            @Olorin The command actually needs to be dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv ./lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C / If you list the contents of the bz2 file it shows them with the ./ before the name. Then it extracts fine. I will add that to my answer then.
            – Terrance
            Mar 23 at 4:26






          • 1




            Ah yes. Another instance of xkcd.com/1168
            – Olorin
            Mar 23 at 4:28















          You can use dpkg-deb instead of ar: dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | tar xv ... actually the entire operation can be done in one pipeline: dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C /
          – Olorin
          Mar 23 at 3:49




          You can use dpkg-deb instead of ar: dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | tar xv ... actually the entire operation can be done in one pipeline: dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C /
          – Olorin
          Mar 23 at 3:49












          @Olorin I understand that. But I test all commands before I put them in my answers. Unfortunately, that does not work. Even when I try to extract only the file from the tar.bz2 file it tells me file not found, but when I extract all the contents of it, the file is there and I can copy it.
          – Terrance
          Mar 23 at 4:14




          @Olorin I understand that. But I test all commands before I put them in my answers. Unfortunately, that does not work. Even when I try to extract only the file from the tar.bz2 file it tells me file not found, but when I extract all the contents of it, the file is there and I can copy it.
          – Terrance
          Mar 23 at 4:14




          1




          1




          @Olorin The command actually needs to be dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv ./lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C / If you list the contents of the bz2 file it shows them with the ./ before the name. Then it extracts fine. I will add that to my answer then.
          – Terrance
          Mar 23 at 4:26




          @Olorin The command actually needs to be dpkg-deb --fsys-tarfile linux-image-extra-4.4.0-116-generic_4.4.0-116.140_amd64.deb | sudo tar xv ./lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko -C / If you list the contents of the bz2 file it shows them with the ./ before the name. Then it extracts fine. I will add that to my answer then.
          – Terrance
          Mar 23 at 4:26




          1




          1




          Ah yes. Another instance of xkcd.com/1168
          – Olorin
          Mar 23 at 4:28




          Ah yes. Another instance of xkcd.com/1168
          – Olorin
          Mar 23 at 4:28












          up vote
          1
          down vote













          Simply reinstall the package that contains the file.



          To find what package contains /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko, run:



          dpkg -S /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko


          This should output (in your case):



          linux-image-4.4.0-116-generic: /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko


          Simply reinstall the package:



          sudo apt-get install --reinstall linux-image-4.4.0-116-generic


          If this does not fix it:



          sudo apt-get purge linux-image-4.4.0-116-generic
          sudo apt-get install linux-image-4.4.0-116-generic





          share|improve this answer






















          • Thanks, I ran the dpkg command but the ../usbserial.ko path doesn't exist. Maybe something else somehow installed it?
            – Elijah Lynn
            Mar 23 at 2:01











          • Oh, I manually entered the path and it did return linux-image-extra-4.4.0-116-generic: /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko as you said. However the --reinstall command completed successfully but the file doesn't exist still. I did delete the file after I overwrote it incorrectly.
            – Elijah Lynn
            Mar 23 at 2:03










          • @ElijahLynn reinstalling linux-image-extra-4.4.0-116-generic didn't bring back the file?
            – Olorin
            Mar 23 at 2:13










          • Correct, it did not bring back the file.
            – Elijah Lynn
            Mar 23 at 2:14










          • What about purging and reinstalling? as i have added to my answer
            – ubashu
            Mar 23 at 4:26














          up vote
          1
          down vote













          Simply reinstall the package that contains the file.



          To find what package contains /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko, run:



          dpkg -S /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko


          This should output (in your case):



          linux-image-4.4.0-116-generic: /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko


          Simply reinstall the package:



          sudo apt-get install --reinstall linux-image-4.4.0-116-generic


          If this does not fix it:



          sudo apt-get purge linux-image-4.4.0-116-generic
          sudo apt-get install linux-image-4.4.0-116-generic





          share|improve this answer






















          • Thanks, I ran the dpkg command but the ../usbserial.ko path doesn't exist. Maybe something else somehow installed it?
            – Elijah Lynn
            Mar 23 at 2:01











          • Oh, I manually entered the path and it did return linux-image-extra-4.4.0-116-generic: /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko as you said. However the --reinstall command completed successfully but the file doesn't exist still. I did delete the file after I overwrote it incorrectly.
            – Elijah Lynn
            Mar 23 at 2:03










          • @ElijahLynn reinstalling linux-image-extra-4.4.0-116-generic didn't bring back the file?
            – Olorin
            Mar 23 at 2:13










          • Correct, it did not bring back the file.
            – Elijah Lynn
            Mar 23 at 2:14










          • What about purging and reinstalling? as i have added to my answer
            – ubashu
            Mar 23 at 4:26












          up vote
          1
          down vote










          up vote
          1
          down vote









          Simply reinstall the package that contains the file.



          To find what package contains /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko, run:



          dpkg -S /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko


          This should output (in your case):



          linux-image-4.4.0-116-generic: /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko


          Simply reinstall the package:



          sudo apt-get install --reinstall linux-image-4.4.0-116-generic


          If this does not fix it:



          sudo apt-get purge linux-image-4.4.0-116-generic
          sudo apt-get install linux-image-4.4.0-116-generic





          share|improve this answer














          Simply reinstall the package that contains the file.



          To find what package contains /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko, run:



          dpkg -S /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko


          This should output (in your case):



          linux-image-4.4.0-116-generic: /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko


          Simply reinstall the package:



          sudo apt-get install --reinstall linux-image-4.4.0-116-generic


          If this does not fix it:



          sudo apt-get purge linux-image-4.4.0-116-generic
          sudo apt-get install linux-image-4.4.0-116-generic






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 23 at 4:25

























          answered Mar 23 at 1:54









          ubashu

          2,24221736




          2,24221736











          • Thanks, I ran the dpkg command but the ../usbserial.ko path doesn't exist. Maybe something else somehow installed it?
            – Elijah Lynn
            Mar 23 at 2:01











          • Oh, I manually entered the path and it did return linux-image-extra-4.4.0-116-generic: /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko as you said. However the --reinstall command completed successfully but the file doesn't exist still. I did delete the file after I overwrote it incorrectly.
            – Elijah Lynn
            Mar 23 at 2:03










          • @ElijahLynn reinstalling linux-image-extra-4.4.0-116-generic didn't bring back the file?
            – Olorin
            Mar 23 at 2:13










          • Correct, it did not bring back the file.
            – Elijah Lynn
            Mar 23 at 2:14










          • What about purging and reinstalling? as i have added to my answer
            – ubashu
            Mar 23 at 4:26
















          • Thanks, I ran the dpkg command but the ../usbserial.ko path doesn't exist. Maybe something else somehow installed it?
            – Elijah Lynn
            Mar 23 at 2:01











          • Oh, I manually entered the path and it did return linux-image-extra-4.4.0-116-generic: /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko as you said. However the --reinstall command completed successfully but the file doesn't exist still. I did delete the file after I overwrote it incorrectly.
            – Elijah Lynn
            Mar 23 at 2:03










          • @ElijahLynn reinstalling linux-image-extra-4.4.0-116-generic didn't bring back the file?
            – Olorin
            Mar 23 at 2:13










          • Correct, it did not bring back the file.
            – Elijah Lynn
            Mar 23 at 2:14










          • What about purging and reinstalling? as i have added to my answer
            – ubashu
            Mar 23 at 4:26















          Thanks, I ran the dpkg command but the ../usbserial.ko path doesn't exist. Maybe something else somehow installed it?
          – Elijah Lynn
          Mar 23 at 2:01





          Thanks, I ran the dpkg command but the ../usbserial.ko path doesn't exist. Maybe something else somehow installed it?
          – Elijah Lynn
          Mar 23 at 2:01













          Oh, I manually entered the path and it did return linux-image-extra-4.4.0-116-generic: /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko as you said. However the --reinstall command completed successfully but the file doesn't exist still. I did delete the file after I overwrote it incorrectly.
          – Elijah Lynn
          Mar 23 at 2:03




          Oh, I manually entered the path and it did return linux-image-extra-4.4.0-116-generic: /lib/modules/4.4.0-116-generic/kernel/drivers/usb/serial/usbserial.ko as you said. However the --reinstall command completed successfully but the file doesn't exist still. I did delete the file after I overwrote it incorrectly.
          – Elijah Lynn
          Mar 23 at 2:03












          @ElijahLynn reinstalling linux-image-extra-4.4.0-116-generic didn't bring back the file?
          – Olorin
          Mar 23 at 2:13




          @ElijahLynn reinstalling linux-image-extra-4.4.0-116-generic didn't bring back the file?
          – Olorin
          Mar 23 at 2:13












          Correct, it did not bring back the file.
          – Elijah Lynn
          Mar 23 at 2:14




          Correct, it did not bring back the file.
          – Elijah Lynn
          Mar 23 at 2:14












          What about purging and reinstalling? as i have added to my answer
          – ubashu
          Mar 23 at 4:26




          What about purging and reinstalling? as i have added to my answer
          – ubashu
          Mar 23 at 4:26

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1018420%2fhow-to-restore-lib-modules-4-4-0-116-generic-kernel-drivers-usb-serial-usbseria%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Which professions warranted travel in Medieval times?

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error