MilchRatchet / PAL

Polytime Algorithm Libraries
zlib License
0 stars 0 forks source link

failed to install libsdl2 #5

Closed Mathemalsky closed 3 years ago

Mathemalsky commented 3 years ago

Bildschirmfoto von 2021-06-25 22-32-25 I couldn't install the library and all my tries to google it are lacking success.

MilchRatchet commented 3 years ago

Did you try commands like sudo apt-get -f install yet? Alternatively you could simply install the dependencies first. From what I have read it could also be that your local package database is too old and you need to upgrade using

sudo apt-get update && sudo apt-get full-upgrade

I think there is something weird with your package manager since you also could not install CUDA. You could try using aptitude which is apparently better at resolving dependency issues.

Mathemalsky commented 3 years ago

Yes I tried sudo apt-get -f install yesterday. Manually installing the dependencies first does not work since the packages are not installable as printed out to the terminal. Yes also also tried the update and upgrade commands but they do not change anything. I also suspect the cuda drivers to be the root of the package trouble.

Is there a way to reset the complete installed packgages without reinstalling the system (configuring takes too much time)?

MilchRatchet commented 3 years ago

I don't know what you mean with "reset the complete installed packgages".

I just realized that the error given is that you have held back packages. You can do apt-mark showhold to display them and then unhold them by sudo apt-mark unhold [name of package]. If that does not work, you should try aptitude, many people say that they fixed this issue by installing it that way.

Mathemalsky commented 3 years ago

Oh yes I forgot to mention that I also tried aptitude and it gave the same output as apt-get. See the attached screenshot. I'm not sure about choosing an option there. The List displayed by apt-mark showhold is empty. grafik

MilchRatchet commented 3 years ago

It seems to be an issue with the repository where apt searches. With cat /etc/apt/sources.list /etc/apt/sources.list.d/* you can view the repository list. Any line starting with deb indicates a repository it uses. I seem to use the groovy distribution of the default ubuntu repository.

Mathemalsky commented 3 years ago

What is your suggestion to deal with that?