pvbrowser / pvb

HMI and SCADA
http://pvbrowser.org
Other
268 stars 152 forks source link

Linux Installaion issues #34

Open AnushaDevi-Embedded opened 1 year ago

AnushaDevi-Embedded commented 1 year ago

Please help me with this:

You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: pvbrowser-devel : Depends: qt5-default but it is not installable Depends: xterm Depends: ffmpeg Depends: libavcodec-dev but it is not going to be installed Depends: libavcodec58 Depends: libqt5multimedia5 but it is not going to be installed Depends: libqt5help5 but it is not going to be installed Depends: libqt5webenginecore5 but it is not going to be installed Depends: libqt5multimediawidgets5 but it is not going to be installed Depends: libqt5webengine5 but it is not going to be installed Depends: libqt5webenginewidgets5 but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

gentooza commented 1 year ago

Hi @AnushaDevi-Embedded!

which distro are you using? version? which package are you trying to install?

cheers

AnushaDevi-Embedded commented 1 year ago

Hi @gentooza

Thanks for the response.

I have tried installing the package for Ubuntu 22.04. I tried installing both from the repository and the binaries as well Reference followed: https://software.opensuse.org/download/package.iframe?project=home:pvbrowser:pvbrowser5&package=pvbrowser-devel

gentooza commented 1 year ago

Years ago, I already had problems with the packaged .deb (see #29 ) under ubuntu 16.04 and QT4 version.

Problem seems to be that QT packages naming and philosophy change a lot between ubuntu versions! and who is taking care of packaging pvbrowser in .deb seems not to be spending enough love doing this :-/

the wrong dependencies are:

qt5-default -> it does not exist anymore qt5-base -> it's now qtbase5-dev

You'll have to fix this dependencies manually in the .deb to get it working, by unpackaging it and overwrite it's control file. A good guide is this: https://coderwall.com/p/hes3ha/change-the-dependencies-of-a-deb-package

Some steps change as it's not compressed under gz anymore, it's using zstd, so: step 2 changes to:

tar --use-compress-program=unzstd -xvf control.tar.zst

step 4 changes to:

tar c md5sums control | zstd -c > control.tar.zst

and step 5 changes to:

ar rcs pvbrowser_fix.deb debian-binary control.tar.zst data.tar.zst

(perhaps you have to install some packages to have zstd, ar for packaging, etc. working, I already have them :-/)

I've done this, installed pvbrower, and at least pvdevelop seems to work for now

I provide the fixed .deb also, if you trust me :-D (it's a zip file with the .deb inside, github does not let you upload .deb files)

pvbrowser.zip

cheers

AnushaDevi-Embedded commented 1 year ago

Great !! it's working. Thanks @gentooza. Really appreciate your help :)

pvbrowser commented 1 year ago

Comment:

Here I'm not able to test every configuration that is possible.

For Linux Distributions i build the packages on the Open-Suse-Buildservice

The Buildservice told me that the Ubuntu Version was build.

When downloading here from my local machine i go these steps:

https://pvbrowser.de/pvbrowser/index.php?lang=en&menu=6&left=2 https://software.opensuse.org/download/package.iframe?project=home:pvbrowser:pvbrowser5&package=pvbrowser-devel

Am 14.05.23 um 13:31 schrieb AnushaDevi-Embedded:

Great !! it's working. Thanks @gentooza https://github.com/gentooza. Really appreciate your help :)

— Reply to this email directly, view it on GitHub https://github.com/pvbrowser/pvb/issues/34#issuecomment-1546877688, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHANAVNPZPQLEPFY7EPHG3XGC67PANCNFSM6AAAAAAXSRHD74. You are receiving this because you are subscribed to this thread.Message ID: @.***>

gentooza commented 1 year ago

Hi @pvbrowser

I'm really sorry if I was rude, I'm sure you have lot work to do, and options and configurations are wide.

The guide for adding the repository failed to me under ubuntu 22.04:

echo 'deb http://download.opensuse.org/repositories/home:/pvbrowser:/pvbrowser5/xUbuntu_22.04/ /' | sudo tee /etc/apt/sources.list.d/home:pvbrowser:pvbrowser5.list
curl -fsSL https://download.opensuse.org/repositories/home:pvbrowser:pvbrowser5/xUbuntu_22.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_pvbrowser_pvbrowser5.gpg > /dev/null
sudo apt update
sudo apt install pvbrowser-devel

fails to me with GPG key error (spanish):

W: Error de GPG: http://download.opensuse.org/repositories/home:/pvbrowser:/pvbrowser5/xUbuntu_22.04  InRelease: Las siguientes firmas no fueron válidas: EXPKEYSIG 298D698D0AD5FE1F home:pvbrowser OBS Project <home:pvbrowser@build.opensuse.org> 95768D5660C620BC9B1B23CB298D698D0AD5FE1F
E: El repositorio «http://download.opensuse.org/repositories/home:/pvbrowser:/pvbrowser5/xUbuntu_22.04  InRelease» no está firmado.

Also, installing manually the .deb continues giving me a dependencies error:

 pvbrowser-devel : Depende: qt5-default pero no es instalable

as qt5-default doesn't exist anynore under ubuntu 22.04

cheers, and thanks for the efforts