OpenHands
OpenHands copied to clipboard
[Bug]: Package 'libasound2' has no installation candidate
Is there an existing issue for the same bug?
- [X] I have checked the troubleshooting document at https://opendevin.github.io/OpenDevin/modules/usage/troubleshooting
- [X] I have checked the existing issues.
Describe the bug
I encountered the following issue when I was trying to build OpenDevin from the source.
Current Version
Latest git version
Installation and Configuration
I am currently using Ubuntu 24.04
Model and Agent
No response
Reproduction Steps
No response
Logs, Errors, Screenshots, and Additional Context
No response
Run
apt-get update
This is not working. However, I found this solution.
https://github.com/microsoft/playwright/issues/30368#issuecomment-2106186786
But is the playwright worked without its dependencies?
I think so. At least the installation was successful.
You installed the playwright node package and not the python package.
You are right! I did not install playwright successfully. It may not be working on Ubuntu 24.04.
@super-dainiu can you check if this is still an issue with the latest main? When I ran the development mode, had to install python 3.11, otherwise it did not work.
Seems it's for NodeJS only. https://github.com/microsoft/playwright/issues/30368#issuecomment-2157619258
I had similar trouble recently related to installing playwright.
If one tries to manually install it, you get a newer version, that has different dependencies, is my understanding. OpenDevin's poetry has a specific restriction for that: playwright = ">=1.32,<1.40"
If manually installed, uninstall it completely, including folder references or whatever exists. Then I think running poetry install should install playwright with the correct version.
I'm not a Linux guy, so bear with me if I'm mixing something up here, I don't remember all the loops to jump through till it was fixed.
@SmartManoj Any idea how it'll work?
I am facing the same error. I am using Ubuntu-24.04, do I need to redo the whole setup using Ubuntu-22.04?
@SmartManoj Any idea how it'll work? I am facing the same error. I am using Ubuntu-24.04, do I need to redo the whole setup using Ubuntu-22.04?
what happens if you try this? IF it installs it, try make build again:
sudo apt install libasound2
I again get an error.
I used both of them to install. Still didn't work.
I looked at that package, too, but that on my Ubuntu would've uninstalled half my KDE apps
I searched the internet, and it seems like this is a very common issue on Ubuntu-24.04. Didn't get any simple workaround. Anyway, I did the whole setup process again on Ubuntu-22.04, and it worked fine without any issues.
For now, I think Development.md should suggest newcomers who use WSL to do setup on Ubuntu-22.04, until the above problem gets solved.
Problem solved. Close it.
@khushvind Could you check libasound2-plugins? https://github.com/OpenDevin/OpenDevin/issues/2931#issue-2407783997
Hey @SmartManoj, Sorry for the delayed response, was facing other issues with WSL Ubuntu24.04.
The issue with libasound2-plugins seems fixed now. Not getting any such error now.
I'm on Ubuntu 24.04 and I get the same error
> sudo apt install libasound2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libasound2 is a virtual package provided by:
liboss4-salsa-asound2 4.2-build2020-1ubuntu3
libasound2t64 1.2.11-1build2 (= 1.2.11-1build2)
You should explicitly select one to install.
E: Package 'libasound2' has no installation candidate
I ran sudo apt upgrade before trying to install the package but it didn't help.