You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
David Manouchehri (@Manouchehri) Unrelated, but if do "sudo rm /etc/hosts" and restart bash.exe does the sudo: unable to resolve host DESKTOP-3RQO5S5 error message go away?
I did an "strace appstreamcli refresh-index" and saw a permission denied during rename of /var/cache/app-info/xapian/default.
So I did "chmod 777 /var/cache/app-info/xapian/default -R" and that fixed it for me.
Reacted by TaffyMadeThat, Hany alsamman, EdwardLeahy, Philip Branning, Mario Ferreira, Danny van der Knaap, Daniel Santana, n3rd4i, desync0, Christopher Hendra and 37 more
Reacted by Pullyvan Krishnamoorthy, Yan Minari, Ludo Esmanne, a08381, Yihui Li, George, Peter Schmitz, smchughinfo, Joe Pea and Lahiru Jayakody
Reacted by Alan Sánchez Cazarez, David Cohen, duffusmucous, Yihui Li, George, Peter Schmitz, PavaniDasari8, Joe Pea and Yong Hyeon Cho
For others who may come across this thread, you may get "You might need superuser permissions to perform this action." to which you can put "sudo" (spacebar) Aske Færch Christensen (@AskeFC) 's codes.
David Manouchehri (@Manouchehri) Unrelated, but if do "sudo rm /etc/hosts" and restart bash.exe does the sudo: unable to resolve host DESKTOP-3RQO5S5 error message go away?
I think it is better just to add DESKTOP-3RQO5S5 to the line that states: 127.0.0.1 localhost
just make it look like: 127.0.0.1 localhost DESKTOP-3RQO5S5
It should make it work without loosing /etc/hosts (basically we are learning apps that DESKTOP03RQO5S5 is an alias for localhost).
actually it sort of is an answer ... if you bother to look up to my comment made April 13... if you delete Ubuntu completely from your system and remove the windows subsystem for Linux, reboot .. then install the Linux subsystem again reboot once more and go to the store to install Ubuntu ... it works without this issue.
If you want it fixed .. then just delete it and install it from the Windows store as suggested and its fixed .. most likely the reason you are still seeing it is because the original was actually 14.04 ... the 14.04 was probably updated to 16.04 but was not designed to or some leftover stuff from 14.04 is causing issues with 16.04 ... deleting the old "broken" version and reinstalling it with the now "official" version from the Windows store will solve this issue in this thread
And if you look one above that comment you'll see my assertion that I installed 16.04 from the store (around Christmas 2017 on a brand new Surface Book 2) rather than upgrading. Now if there's been some fix since then that involves doing a reinstall that's something else.
I don't have this problem on 18.04 installed from the store, but that doesn't indicate the underlying issue may not still exist on new installs of 16.04 or 18.04 since the underlying issue may not be 100% reliable repro.
I'm now on the April(?) 2018 update of Win 10/ 10.0.17134.
well if you were seeing it with the store version and never installed the original borked version ... then it has to be something with your install or hardware ... or maybe I have been lucky with my two versions of hardware since I reinstalled it and since I upgraded my PC .. once I got rid of the original version that wasn't from the store and reinstalled linux subsystem and then installed the 16.04 from the store ... I have never had the issue again since.
If you don't see this, its borked, If they fixed the package with the "new" version fine, but simply updating Appstream fixes the issue. My comment prior to tara-raj has the whole process on the third party blog.
Agreed. Alright we'll call this tag external. It isn't, really, because Real Linux does not manifest the error reported by paladox in 2016, and nothing has changed in WSL since then with respect to the error. If someone has a link to the PR that addressed the problem with AppStream that would be instructive.
AppStream cache update completed, but some metadata was ignored due to errors.
If the PR fixes our Error while moving old database out of the way woes then party hat 🎉 and I won't look a gift horse in the mouth. I haven't seen the problem lately either, so I can't confirm one way or the other.
The above discussion was helpful for me. I upgraded appstreamcli and I think that the permissions issue has gone away (at version 0.10.6).
I am also having a problem where do-release-upgrade (trying to go from 16.04 to 18.04) is failing wihtout an error. I hoped that this fix would help, but it has not.
What are the correct safe permissions for /var/cache/app-info/xapian/default?
(Or, in other words, if we blindly ran sudo chmod 777 /var/cache/app-info/xapian/default -R, what permissions should we change it (and subfiles) back to? 😆)
My guess is sudo chmod o-w /var/cache/app-info/xapian/default -R. EDIT: Nope, sudo chmod o-w /var/cache/app-info/xapian/default -R resulted in the same Error while moving old database out of the way happening again.
Changing it to 777 fixes it again. 🤔
Obviously if changing it to 777 then applying o-w doesn't work, then it seems that the above sudo chmod g+w /var/cache/app-info/xapian/default -R won't work either, because 777 followed by o-w implies g has w.
Has anyone succeeded in an update from 16.04 to 18.04? Maybe best to start over with a fresh install. Seems that I may be able to copy my files / settings from Windows so that I can restore them on the fresh install, right?
Activity
alexanderwhatley commentedon Jul 11, 2016
I don't believe Ubuntu 16.04 is supported by WSL right now.
Manouchehri commentedon Jul 11, 2016
It's still working fine here.
alexanderwhatley commentedon Jul 11, 2016
David Manouchehri (@Manouchehri) do you get Ubuntu 16.04 when you run lsb_release -a?
benhillis commentedon Jul 11, 2016
David Manouchehri (@Manouchehri) Unrelated, but if do "sudo rm /etc/hosts" and restart bash.exe does the sudo: unable to resolve host DESKTOP-3RQO5S5 error message go away?
Manouchehri commentedon Jul 11, 2016
Manouchehri commentedon Jul 12, 2016
Ben Hillis (@benhillis): Yep, that fixed it as expected. Thanks.
Manouchehri commentedon Jul 12, 2016
Alexander Whatley (@alexanderwhatley):
TaffyMadeThat commentedon Jul 14, 2016
I'm having the same issue, this is what my konsole displays:
Could someone offer any solution?
AskeFC commentedon Jul 14, 2016
I did an "strace appstreamcli refresh-index" and saw a permission denied during rename of /var/cache/app-info/xapian/default.
So I did "chmod 777 /var/cache/app-info/xapian/default -R" and that fixed it for me.
paladox commentedon Jul 14, 2016
Aske Færch Christensen (@AskeFC) hi, thanks that worked.
TaffyMadeThat commentedon Jul 14, 2016
For others who may come across this thread, you may get "You might need superuser permissions to perform this action." to which you can put "
sudo" (spacebar) Aske Færch Christensen (@AskeFC) 's codes.Manouchehri commentedon Jul 14, 2016
Aske Færch Christensen (@AskeFC) 777 permissions are a really bad idea. If you need to run several commands as root, just run
sudo -ito get root.electron0zero commentedon Aug 5, 2016
David Manouchehri (@Manouchehri)
how did you got Ubuntu 16.04 ?, i got WSL with anniversary update.
mine is 14.04, how do i upgrade to 16.04.
electron@DELL-PC:~$ lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 14.04.5 LTSRelease: 14.04Codename: trustyelectron@DELL-PC:~$adamkruszewski commentedon Aug 12, 2016
I think it is better just to add DESKTOP-3RQO5S5 to the line that states:
127.0.0.1 localhost
just make it look like:
127.0.0.1 localhost DESKTOP-3RQO5S5
It should make it work without loosing /etc/hosts (basically we are learning apps that DESKTOP03RQO5S5 is an alias for localhost).
jonstanley commentedon Sep 23, 2016
chmod g+w /var/cache/app-info/xapian/default -R... appears to be the safer fix for this issue, since in WSL you are already root...
34 remaining items
tara-raj commentedon May 29, 2018
Ubuntu 16.04 is now supported in the Microsoft Store. For additional issues with app packages please file a separate issue. Thanks
therealkenc commentedon May 30, 2018
That Ubuntu 16.04 is available in the Store is unrelated to the perennially unaddressed issue of:
Which is almost certainly dupe #1529 as suggested by Ben's post, but we don't have enough specificity to actually mark it as such.
JOrion9999 commentedon May 30, 2018
actually it sort of is an answer ... if you bother to look up to my comment made April 13... if you delete Ubuntu completely from your system and remove the windows subsystem for Linux, reboot .. then install the Linux subsystem again reboot once more and go to the store to install Ubuntu ... it works without this issue.
If you want it fixed .. then just delete it and install it from the Windows store as suggested and its fixed .. most likely the reason you are still seeing it is because the original was actually 14.04 ... the 14.04 was probably updated to 16.04 but was not designed to or some leftover stuff from 14.04 is causing issues with 16.04 ... deleting the old "broken" version and reinstalling it with the now "official" version from the Windows store will solve this issue in this thread
cacsar commentedon May 30, 2018
And if you look one above that comment you'll see my assertion that I installed 16.04 from the store (around Christmas 2017 on a brand new Surface Book 2) rather than upgrading. Now if there's been some fix since then that involves doing a reinstall that's something else.
I don't have this problem on 18.04 installed from the store, but that doesn't indicate the underlying issue may not still exist on new installs of 16.04 or 18.04 since the underlying issue may not be 100% reliable repro.
I'm now on the April(?) 2018 update of Win 10/ 10.0.17134.
JOrion9999 commentedon May 30, 2018
well if you were seeing it with the store version and never installed the original borked version ... then it has to be something with your install or hardware ... or maybe I have been lucky with my two versions of hardware since I reinstalled it and since I upgraded my PC .. once I got rid of the original version that wasn't from the store and reinstalled linux subsystem and then installed the 16.04 from the store ... I have never had the issue again since.
akatangus commentedon May 30, 2018
appstreamcli —version
AppStream CLI tool version: 0.10.1
If you don't see this, its borked, If they fixed the package with the "new" version fine, but simply updating Appstream fixes the issue. My comment prior to tara-raj has the whole process on the third party blog.
therealkenc commentedon May 30, 2018
Agreed. Alright we'll call this tag external. It isn't, really, because Real Linux does not manifest the error reported by paladox in 2016, and nothing has changed in WSL since then with respect to the error. If someone has a link to the PR that addressed the problem with AppStream that would be instructive.
The error cited in the blog is:
If the PR fixes our
Error while moving old database out of the waywoes then party hat 🎉 and I won't look a gift horse in the mouth. I haven't seen the problem lately either, so I can't confirm one way or the other.jiceorange commentedon Feb 6, 2019
The above discussion was helpful for me. I upgraded appstreamcli and I think that the permissions issue has gone away (at version 0.10.6).
I am also having a problem where do-release-upgrade (trying to go from 16.04 to 18.04) is failing wihtout an error. I hoped that this fix would help, but it has not.
See #3489 for a discussion.
trusktr commentedon Feb 17, 2019
What are the correct safe permissions for
/var/cache/app-info/xapian/default?(Or, in other words, if we blindly ran
sudo chmod 777 /var/cache/app-info/xapian/default -R, what permissions should we change it (and subfiles) back to? 😆)My guess is. EDIT: Nope,sudo chmod o-w /var/cache/app-info/xapian/default -Rsudo chmod o-w /var/cache/app-info/xapian/default -Rresulted in the sameError while moving old database out of the wayhappening again.Changing it to
777fixes it again. 🤔Obviously if changing it to
777then applyingo-wdoesn't work, then it seems that the abovesudo chmod g+w /var/cache/app-info/xapian/default -Rwon't work either, because777followed byo-wimpliesghasw.jiceorange commentedon Jul 31, 2019
Has anyone succeeded in an update from 16.04 to 18.04? Maybe best to start over with a fresh install. Seems that I may be able to copy my files / settings from Windows so that I can restore them on the fresh install, right?
IGR2014 commentedon Oct 19, 2021
Was unable to upgrade from 20.04 to 20.10 (WSL2, with WSLg, Windows 11 (22000.194)).
Had to do this to upgrade normaly: #3489 (comment)