OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

[Bug]: Package 'libasound2' has no installation candidate

Open super-dainiu opened this issue 1 year ago • 5 comments

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.

image

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

super-dainiu avatar May 22 '24 16:05 super-dainiu

Run apt-get update

What does "Package has no installation candidate" mean?

This is not working. However, I found this solution.

https://github.com/microsoft/playwright/issues/30368#issuecomment-2106186786

image

super-dainiu avatar May 22 '24 16:05 super-dainiu

But is the playwright worked without its dependencies?

SmartManoj avatar May 22 '24 17:05 SmartManoj

I think so. At least the installation was successful.

super-dainiu avatar May 22 '24 17:05 super-dainiu

You installed the playwright node package and not the python package.

SmartManoj avatar May 23 '24 03:05 SmartManoj

You are right! I did not install playwright successfully. It may not be working on Ubuntu 24.04.

super-dainiu avatar May 24 '24 17:05 super-dainiu

@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.

mamoodi avatar Jun 08 '24 18:06 mamoodi

Seems it's for NodeJS only. https://github.com/microsoft/playwright/issues/30368#issuecomment-2157619258

SmartManoj avatar Jun 22 '24 04:06 SmartManoj

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.

tobitege avatar Jun 22 '24 05:06 tobitege

@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?

khushvind avatar Jun 22 '24 06:06 khushvind

@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

tobitege avatar Jun 22 '24 06:06 tobitege

I again get an error. image

I used both of them to install. Still didn't work.

khushvind avatar Jun 22 '24 07:06 khushvind

The libasound2 package exists

Could you provide the log for sudo apt install liboss4-salsa-asound2?

SmartManoj avatar Jun 22 '24 07:06 SmartManoj

I looked at that package, too, but that on my Ubuntu would've uninstalled half my KDE apps

tobitege avatar Jun 22 '24 07:06 tobitege

The libasound2 package exists

It doesn't exist as self-installable package, that is the problem

tobitege avatar Jun 22 '24 07:06 tobitege

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.

khushvind avatar Jun 22 '24 09:06 khushvind

Problem solved. Close it.

yufansong avatar Jul 11 '24 05:07 yufansong

@khushvind Could you check libasound2-plugins? https://github.com/OpenDevin/OpenDevin/issues/2931#issue-2407783997

SmartManoj avatar Jul 22 '24 13:07 SmartManoj

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.

khushvind avatar Jul 28 '24 19:07 khushvind

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.

anaser-fts avatar Sep 26 '24 11:09 anaser-fts