DEV Community

Discussion on: Install Fedora 37 or earlier on Windows Subsystem for Linux (WSL)

Collapse
 
duvjones profile image
duvjones

Hi, I seem to be having an issue with /etc/resolv.conf
I am running Fedora 36 as instructed here but for some reason I can't unlink to said file because it doesn't exist in the rootfs. If I attempt to write it myself, upon my next access to fedora through wsl, it's just gone... I have to rewrite the file any time that I want use dnf or anything else internet related (which is alot in linux). Can you help me solve this?

Collapse
 
bowmanjd profile image
Jonathan Bowman

Thanks for trying to work through this! First question: do you need to edit /etc/resolv.conf? Have you tried it without making changes?

Collapse
 
duvjones profile image
duvjones

That is the thing, I don't need to edit /etc/resolv.conf. I need to create it. The file doesn't exist on boot, and every reboot of my system pulls the file system to the default state. So on every reboot, the file doesn't exist... my problem with that is DNF needs the access to the internet and without /etc/resolv.conf their isn't anything, and I tend to do things in steps... so having access to the net on boot is useful.

Thread Thread
 
bowmanjd profile image
Jonathan Bowman

So, can you confirm: you had no Internet access before you tried changing /etc/resolv.conf?

Also, in /etc/wsl.conf, what is the current generateResolvConf set to? True or false?

Hopefully we can figure this out!

Thread Thread
 
duvjones profile image
duvjones

Well that solved it, it was originally false.... setting it to true corrects things

Thread Thread
 
duvjones profile image
duvjones

Thank you for the help

Thread Thread
 
bowmanjd profile image
Jonathan Bowman

Excellent!

Thread Thread
 
duvjones profile image
duvjones

Ok, then maybe you can solve another question that I have.... I also seem to be having trouble with mounting a physical partition on my extra SSD. Keeps tossing out a error, with every attempt to mount it.
Would you have any ideas?

Thread Thread
 
bowmanjd profile image
Jonathan Bowman

Hmmm... I have not tried to do that. What is the error?

Thread Thread
 
duvjones profile image
duvjones

It is tossing out error code -22 when I attempt to use

Thread Thread
 
bowmanjd profile image
Jonathan Bowman

I can't say I am familiar with that message. It only gives a code and not a complete message? That is odd. Sorry I am not of more help.