Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repositories not downloading on Ubuntu 16.04 #19

Open
VictorSeven opened this issue Feb 25, 2021 · 5 comments
Open

Repositories not downloading on Ubuntu 16.04 #19

VictorSeven opened this issue Feb 25, 2021 · 5 comments
Assignees
Labels

Comments

@VictorSeven
Copy link

Hello,

I am trying to get CubeGet to work. My setup is the following: an offline Ubuntu 20.04, and an online Ubuntu 16.04. I have been able to get the package list on my offline place. But in my online computer I am not able to Download repositories. It always says "0 bytes", and throwing the following error aftewards:

/home/myuser/cube-get/cube-system/data/bin/axel: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

I guess that I do not have the libssl correctly updated. So I run sudo apt-get update and sudo apt-get install openssl to ensure I have newest version. However, even when that, locate libssl returns

/home/victor/anaconda3/lib/libssl.a
/home/victor/anaconda3/lib/libssl.so
/home/victor/anaconda3/lib/libssl.so.1.1
/home/victor/anaconda3/lib/pkgconfig/libssl.pc
/home/victor/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0/lib/libssl.a
/home/victor/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0/lib/libssl.so
/home/victor/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0/lib/libssl.so.1.1
/home/victor/anaconda3/pkgs/openssl-1.1.1h-h7b6447c_0/lib/pkgconfig/libssl.pc
/lib/i386-linux-gnu/libssl.so.1.0.0
/lib/x86_64-linux-gnu/libssl.so.1.0.0
/opt/ardour/lib/libssl3.so
/usr/lib/firefox/libssl3.so
/usr/lib/thunderbird/libssl3.so
/usr/lib/x86_64-linux-gnu/libssl3.so
/usr/share/doc/libssl1.0.0
/usr/share/doc/libssl1.0.0/changelog.Debian.gz
/usr/share/doc/libssl1.0.0/copyright
/var/lib/dpkg/info/libssl1.0.0:amd64.list
/var/lib/dpkg/info/libssl1.0.0:amd64.md5sums
/var/lib/dpkg/info/libssl1.0.0:amd64.postinst
/var/lib/dpkg/info/libssl1.0.0:amd64.postrm
/var/lib/dpkg/info/libssl1.0.0:amd64.shlibs
/var/lib/dpkg/info/libssl1.0.0:amd64.symbols
/var/lib/dpkg/info/libssl1.0.0:amd64.templates
/var/lib/dpkg/info/libssl1.0.0:amd64.triggers
/var/lib/dpkg/info/libssl1.0.0:i386.list
/var/lib/dpkg/info/libssl1.0.0:i386.md5sums
/var/lib/dpkg/info/libssl1.0.0:i386.postinst
/var/lib/dpkg/info/libssl1.0.0:i386.postrm
/var/lib/dpkg/info/libssl1.0.0:i386.shlibs
/var/lib/dpkg/info/libssl1.0.0:i386.symbols
/var/lib/dpkg/info/libssl1.0.0:i386.templates
/var/lib/dpkg/info/libssl1.0.0:i386.triggers

So although I have a "correct" version of libssl, the 1.1.0, it is locally at my Python Anaconda instalation, of course CubeGet cannot get it. Is there any way to point CubeGet to this libssl, maybe from axel arguments? If not, how do I update this library? Thank you very much in advance

@camicri camicri self-assigned this Feb 25, 2021
@camicri
Copy link
Owner

camicri commented Feb 25, 2021

Hi, thank you for submitting an issue.

My initial assumption here is that, the libssl of 16.04 is incompatible with the axel downloader currently packaged together with CubeGet.

For the meantime, could you rename /home/myuser/cube-get/cube-system/data/bin/axel into axel2, install a compatible axel by running sudo apt-get install axel then try downloading repositories again?

Also, you can try to use the other downloader aria2c. You can change that in the cube settings.

Really sorry for the inconvenience here. I will try to replicate and have it fixed.

@camicri camicri added the bug label Feb 25, 2021
@camicri
Copy link
Owner

camicri commented Feb 25, 2021

Btw, you are also right with the version issue.

Is there any way to point CubeGet to this libssl, maybe from axel arguments?

To answer your question, CubeGet checks first the library files under cube-get/cube-system/data/lib folder, or possibly cube-get/cube-system/data/bin folder where axel binary resides. You can try to put /home/victor/anaconda3/lib/libssl.so.1.1 there and test if it will work.

@camicri
Copy link
Owner

camicri commented Feb 25, 2021

Follow up: So I tried adding the latest libssl 1.1 but it causes further library dependency issues. It just conflicts with other older libraries. The best thing you can do is install a compatible axel manually (As I shared above).

If apt-get can't find axel, you can download the deb manually here and install it by running sudo dpkg -i axel_2.5-2_amd64.deb

Please let me know if didn't work or if you have questions. I'm eager to help :)

@VictorSeven
Copy link
Author

Hi @camicri, thank you for your suggestions.

As you suggested, I saw there was a folder cube-system/lib that had some libraries inside. I copied libssl.so.1.1 (as well as libcrypto, which was also required) from my anaconda3 installation into this folder. It solved the problem, but I guess I was just lucky to have the "correct" version of the libraries into my anaconda installation.
I wonder if it might be actually a good idea to pack it inside CubeGet, if the license allows it, being these libraries difficult to be changed/updated.

@camicri
Copy link
Owner

camicri commented Feb 27, 2021

@VictorSeven good to hear that! Yup, I should include those libraries, or make those included applications (axel, aria2c) more portable and less dependent on external libraries. Thank you for your inputs, really appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants