How to repair unmet dependencies in Ubuntu on Windows Subsystem for Linux












0















I'm having trouble upgrading packages in my WSL Ubuntu on Windows 10 Pro. I've been using this particular machine and installation of Ubuntu for 3 months, and would like to figure out how to avoid re-installing my environment if at all possible, but I'm really at a loss here. Any suggestions?



When I run sudo apt upgrade, I get the following output:



Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libnss-systemd : Depends: systemd (= 237-3ubuntu10.15) but 237-3ubuntu10.13 is installed
libpam-systemd : Depends: systemd (= 237-3ubuntu10.15) but 237-3ubuntu10.13 is installed
systemd : Depends: libsystemd0 (= 237-3ubuntu10.13) but 237-3ubuntu10.15 is installed
udev : Depends: libudev1 (= 237-3ubuntu10.13) but 237-3ubuntu10.15 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


When I run sudo apt install -f, I get the following output:



Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
systemd udev
Suggested packages:
systemd-container
The following packages will be upgraded:
systemd udev
2 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
5 not fully installed or removed.
Need to get 0 B/3999 kB of archives.
After this operation, 8192 B of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 29950 files and directories currently installed.)
Preparing to unpack .../systemd_237-3ubuntu10.15_amd64.deb ...
Unpacking systemd (237-3ubuntu10.15) over (237-3ubuntu10.13) ...
dpkg: error processing archive /var/cache/apt/archives/systemd_237-3ubuntu10.15_amd64.deb (--unpack):
unable to clean up mess surrounding './bin/loginctl' before installing another version: Invalid argument
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../udev_237-3ubuntu10.15_amd64.deb ...
Unpacking udev (237-3ubuntu10.15) over (237-3ubuntu10.13) ...
dpkg: error processing archive /var/cache/apt/archives/udev_237-3ubuntu10.15_amd64.deb (--unpack):
unable to clean up mess surrounding './bin/udevadm' before installing another version: Invalid argument
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/systemd_237-3ubuntu10.15_amd64.deb
/var/cache/apt/archives/udev_237-3ubuntu10.15_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I've tried everything I can think of short of using --force-remote-reinstreq down the chain of packages dependent on systemd and udev as per this answer: How to delete broken packages in ubuntu.



I have also tried the solution presented in How to fix unmet dependencies for udev:amd64 error on Ubuntu 18.04?.










share|improve this question





























    0















    I'm having trouble upgrading packages in my WSL Ubuntu on Windows 10 Pro. I've been using this particular machine and installation of Ubuntu for 3 months, and would like to figure out how to avoid re-installing my environment if at all possible, but I'm really at a loss here. Any suggestions?



    When I run sudo apt upgrade, I get the following output:



    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
    libnss-systemd : Depends: systemd (= 237-3ubuntu10.15) but 237-3ubuntu10.13 is installed
    libpam-systemd : Depends: systemd (= 237-3ubuntu10.15) but 237-3ubuntu10.13 is installed
    systemd : Depends: libsystemd0 (= 237-3ubuntu10.13) but 237-3ubuntu10.15 is installed
    udev : Depends: libudev1 (= 237-3ubuntu10.13) but 237-3ubuntu10.15 is installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


    When I run sudo apt install -f, I get the following output:



    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    The following additional packages will be installed:
    systemd udev
    Suggested packages:
    systemd-container
    The following packages will be upgraded:
    systemd udev
    2 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
    5 not fully installed or removed.
    Need to get 0 B/3999 kB of archives.
    After this operation, 8192 B of additional disk space will be used.
    Do you want to continue? [Y/n]
    (Reading database ... 29950 files and directories currently installed.)
    Preparing to unpack .../systemd_237-3ubuntu10.15_amd64.deb ...
    Unpacking systemd (237-3ubuntu10.15) over (237-3ubuntu10.13) ...
    dpkg: error processing archive /var/cache/apt/archives/systemd_237-3ubuntu10.15_amd64.deb (--unpack):
    unable to clean up mess surrounding './bin/loginctl' before installing another version: Invalid argument
    dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
    Preparing to unpack .../udev_237-3ubuntu10.15_amd64.deb ...
    Unpacking udev (237-3ubuntu10.15) over (237-3ubuntu10.13) ...
    dpkg: error processing archive /var/cache/apt/archives/udev_237-3ubuntu10.15_amd64.deb (--unpack):
    unable to clean up mess surrounding './bin/udevadm' before installing another version: Invalid argument
    dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
    Errors were encountered while processing:
    /var/cache/apt/archives/systemd_237-3ubuntu10.15_amd64.deb
    /var/cache/apt/archives/udev_237-3ubuntu10.15_amd64.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    I've tried everything I can think of short of using --force-remote-reinstreq down the chain of packages dependent on systemd and udev as per this answer: How to delete broken packages in ubuntu.



    I have also tried the solution presented in How to fix unmet dependencies for udev:amd64 error on Ubuntu 18.04?.










    share|improve this question



























      0












      0








      0








      I'm having trouble upgrading packages in my WSL Ubuntu on Windows 10 Pro. I've been using this particular machine and installation of Ubuntu for 3 months, and would like to figure out how to avoid re-installing my environment if at all possible, but I'm really at a loss here. Any suggestions?



      When I run sudo apt upgrade, I get the following output:



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      You might want to run 'apt --fix-broken install' to correct these.
      The following packages have unmet dependencies:
      libnss-systemd : Depends: systemd (= 237-3ubuntu10.15) but 237-3ubuntu10.13 is installed
      libpam-systemd : Depends: systemd (= 237-3ubuntu10.15) but 237-3ubuntu10.13 is installed
      systemd : Depends: libsystemd0 (= 237-3ubuntu10.13) but 237-3ubuntu10.15 is installed
      udev : Depends: libudev1 (= 237-3ubuntu10.13) but 237-3ubuntu10.15 is installed
      E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


      When I run sudo apt install -f, I get the following output:



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Correcting dependencies... Done
      The following additional packages will be installed:
      systemd udev
      Suggested packages:
      systemd-container
      The following packages will be upgraded:
      systemd udev
      2 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
      5 not fully installed or removed.
      Need to get 0 B/3999 kB of archives.
      After this operation, 8192 B of additional disk space will be used.
      Do you want to continue? [Y/n]
      (Reading database ... 29950 files and directories currently installed.)
      Preparing to unpack .../systemd_237-3ubuntu10.15_amd64.deb ...
      Unpacking systemd (237-3ubuntu10.15) over (237-3ubuntu10.13) ...
      dpkg: error processing archive /var/cache/apt/archives/systemd_237-3ubuntu10.15_amd64.deb (--unpack):
      unable to clean up mess surrounding './bin/loginctl' before installing another version: Invalid argument
      dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
      Preparing to unpack .../udev_237-3ubuntu10.15_amd64.deb ...
      Unpacking udev (237-3ubuntu10.15) over (237-3ubuntu10.13) ...
      dpkg: error processing archive /var/cache/apt/archives/udev_237-3ubuntu10.15_amd64.deb (--unpack):
      unable to clean up mess surrounding './bin/udevadm' before installing another version: Invalid argument
      dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
      Errors were encountered while processing:
      /var/cache/apt/archives/systemd_237-3ubuntu10.15_amd64.deb
      /var/cache/apt/archives/udev_237-3ubuntu10.15_amd64.deb
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      I've tried everything I can think of short of using --force-remote-reinstreq down the chain of packages dependent on systemd and udev as per this answer: How to delete broken packages in ubuntu.



      I have also tried the solution presented in How to fix unmet dependencies for udev:amd64 error on Ubuntu 18.04?.










      share|improve this question
















      I'm having trouble upgrading packages in my WSL Ubuntu on Windows 10 Pro. I've been using this particular machine and installation of Ubuntu for 3 months, and would like to figure out how to avoid re-installing my environment if at all possible, but I'm really at a loss here. Any suggestions?



      When I run sudo apt upgrade, I get the following output:



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      You might want to run 'apt --fix-broken install' to correct these.
      The following packages have unmet dependencies:
      libnss-systemd : Depends: systemd (= 237-3ubuntu10.15) but 237-3ubuntu10.13 is installed
      libpam-systemd : Depends: systemd (= 237-3ubuntu10.15) but 237-3ubuntu10.13 is installed
      systemd : Depends: libsystemd0 (= 237-3ubuntu10.13) but 237-3ubuntu10.15 is installed
      udev : Depends: libudev1 (= 237-3ubuntu10.13) but 237-3ubuntu10.15 is installed
      E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


      When I run sudo apt install -f, I get the following output:



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Correcting dependencies... Done
      The following additional packages will be installed:
      systemd udev
      Suggested packages:
      systemd-container
      The following packages will be upgraded:
      systemd udev
      2 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
      5 not fully installed or removed.
      Need to get 0 B/3999 kB of archives.
      After this operation, 8192 B of additional disk space will be used.
      Do you want to continue? [Y/n]
      (Reading database ... 29950 files and directories currently installed.)
      Preparing to unpack .../systemd_237-3ubuntu10.15_amd64.deb ...
      Unpacking systemd (237-3ubuntu10.15) over (237-3ubuntu10.13) ...
      dpkg: error processing archive /var/cache/apt/archives/systemd_237-3ubuntu10.15_amd64.deb (--unpack):
      unable to clean up mess surrounding './bin/loginctl' before installing another version: Invalid argument
      dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
      Preparing to unpack .../udev_237-3ubuntu10.15_amd64.deb ...
      Unpacking udev (237-3ubuntu10.15) over (237-3ubuntu10.13) ...
      dpkg: error processing archive /var/cache/apt/archives/udev_237-3ubuntu10.15_amd64.deb (--unpack):
      unable to clean up mess surrounding './bin/udevadm' before installing another version: Invalid argument
      dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
      Errors were encountered while processing:
      /var/cache/apt/archives/systemd_237-3ubuntu10.15_amd64.deb
      /var/cache/apt/archives/udev_237-3ubuntu10.15_amd64.deb
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      I've tried everything I can think of short of using --force-remote-reinstreq down the chain of packages dependent on systemd and udev as per this answer: How to delete broken packages in ubuntu.



      I have also tried the solution presented in How to fix unmet dependencies for udev:amd64 error on Ubuntu 18.04?.







      apt package-management upgrade dpkg dependencies






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 14 at 17:15







      Adil Asif

















      asked Mar 14 at 15:02









      Adil AsifAdil Asif

      14




      14






















          0






          active

          oldest

          votes











          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%2f1125641%2fhow-to-repair-unmet-dependencies-in-ubuntu-on-windows-subsystem-for-linux%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f1125641%2fhow-to-repair-unmet-dependencies-in-ubuntu-on-windows-subsystem-for-linux%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

          Category:香港粉麵

          List *all* the tuples!

          Channel [V]