Score:1

sed: can't read /etc/update-manager/release-upgrades: No such file or directory

tn flag

Version (systeminfo)
Microsoft Windows Version 22H2 (compilation SO 19045.2673)

WSL Version (wsl -l -v)

NAME STATE VERSION
* Ubuntu Running 2

Ubuntu Version
Ubuntu-22.04

Other Software
All normal windows software

Repro Steps
sed: can't read /etc/update-manager/release-upgrades: No such file or directory

Expected Behavior
After opening the terminal or running it, it should be directed to the root directory.

Actual Behavior
enter image description here

Diagnostic Logs
I installed wsl Ubuntu distro using command wsl --install It was workin fine during two days today it is displaying message: sed: can't read /etc/update-manager/release-upgrades: No such file or directory

Score:0
pl flag

The file /etc/update-manager/release-upgrades comes from the package ubuntu-release-upgrader-core, which may be missing on your system, or removed for some reason.

To discover where packaged files come from, you may use dpkg -S, for example:

dpkg -S /etc/update-manager/release-upgrades
ubuntu-release-upgrader-core: /etc/update-manager/release-upgrades

To reinstate that file, simply run:

sudo apt install ubuntu-release-upgrader-core

Byron2017 avatar
tn flag
system does not allow me run command "dpkg -S /etc/update-manager/release-upgrades" the message is: -bash: dpkg: command not found. Remember that in my prompt I have: wslg [ ~ ]$, the same problem with sudo: -bash: sudo: command not found
pl flag
Ok, this is catastrophically broken. Do you have any data in this WSL machine you need? If so, I'd be inclined to copy it out, and destroy the machine and re-create it. While we could try to debug, chances are it's faster to just create a new machine.
Byron2017 avatar
tn flag
inside my home user directory I have some folders, but if I run ls /home, there are only wslg folder but my user folder is not displayed
Score:0
tk flag

(cml) I fixed it by restarting wsl only:

wsl --shutdown

Score:0
gd flag

On your windows system, right click on the Ubuntu terminal then select app settings. Once you are there, click on repair. All should be fine now.

David avatar
cn flag
Some references to how and why this is a fix would be good.
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.