Score:1

File policy-rc.d in WSL1 not found

bm flag
Ron

I am trying to resolve the udev issue in my WSL, and I am following the "Apt-get upgrade errors" troubleshooting steps in the WSL docs.

To fix issues related to udev, follow the following steps:

  1. Write the following to /usr/sbin/policy-rc.d and save your changes.

    #!/bin/sh
    exit 101
    
  2. Add execute permissions to /usr/sbin/policy-rc.d:

    chmod +x /usr/sbin/policy-rc.d
    
  3. Run the following commands:

    dpkg-divert --local --rename --add /sbin/initctl
    ln -s /bin/true /sbin/initctl
    

However it seems that the file policy-rc.d does not exist yet?

Is it missing or do I need to create it? As this is not complete clear for me from the documentation? I use Ubuntu 20.04.

Score:3
us flag

If the file doesn't exist, just create it. Note that the steps include adding execute permission to the file, but an existing script file in /usr/sbin would likely already have execute permissions, so the presence of that step implies that the file probably wouldn't already exist.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.