tschoonj / xraylib

A library for X-ray matter interaction cross sections for X-ray fluorescence applications
https://github.com/tschoonj/xraylib/wiki
Other
120 stars 54 forks source link

problem installing xraylib on Ubuntu 20.04 when only using the instructions provided. #188

Closed ninorpereira closed 11 months ago

ninorpereira commented 2 years ago

sudo apt install libxrl11 libxrl11-dev ,,, etc can't find the packages mentioned with only the instructions given (ubuntu 20.04). I'll look for them with Google, but ideally where to find them should be mentioned as part of the instructions.

tschoonj commented 2 years ago

Did you follow the instructions to the letter? You need to import the key first, followed by modifying /etc/apt/sources.list and running sudo apt-get update, before you can install the xraylib packages.

ninorpereira commented 2 years ago

yes, I believe I did. I did not, however, have any way to verify that I did this correctly. Where can I check that I have the right (or, the new) key? When I do sudo apt update, followed by sudo apt upgrade and then by sudo apt install, it didn't work. So, instead, I downloaded the source, untarred it (in one step, not the two that you mention) and this worked: I now have a directory ~/xraylib-4.1.1 (on my one-user system). I haven't yet tried it out, with the TT program that pointed me to your most valued site.

Nino

On Sun, Jan 9, 2022 at 1:51 AM Tom Schoonjans @.***> wrote:

Did you follow the instructions to the letter? You need to import the key first, followed by modifying /etc/apt/sources.list and running sudo apt-get update, before you can install the xraylib packages.

— Reply to this email directly, view it on GitHub https://github.com/tschoonj/xraylib/issues/188#issuecomment-1008241099, or unsubscribe https://github.com/notifications/unsubscribe-auth/AON7G6NCFEW4V74BBR5ZTHLUVEV5PANCNFSM5LP2AERQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Nino R. Pereira 7844 Vervain Ct Springfield, VA 22152 USA 703 623 0099

tschoonj commented 2 years ago

Can you copy paste the output of sudo apt-get update here? It should contain references to my apt repository.

Thanks

ninorpereira commented 2 years ago

FYI I did: sudo apt update > update-8Jan

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

E: The repository 'http://ppa.launchpad.net/elementary-add-team/icons/ubuntu focal Release' does not have a Release file. which gave me the two errors, above. I always get these, why I don't know but they don't seem to affect anything.

The actual output is in cat update-8Jan: yours is hit 4.

Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:3 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:4 http://xmi-apt.tomschoonjans.eu/ubuntu focal InRelease Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Hit:6 https://linux.teamviewer.com/deb stable InRelease Hit:7 http://dl.google.com/linux/chrome/deb stable InRelease Ign:8 http://ppa.launchpad.net/elementary-add-team/icons/ubuntu focal InRelease Hit:9 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal InRelease Err:10 http://ppa.launchpad.net/elementary-add-team/icons/ubuntu focal Release 404 Not Found [IP: 91.189.95.85 80] Reading package lists...

On Sun, Jan 9, 2022 at 11:28 AM Tom Schoonjans @.***> wrote:

Can you copy paste the output of sudo apt-get update here? It should contain references to my apt repository.

Thanks

— Reply to this email directly, view it on GitHub https://github.com/tschoonj/xraylib/issues/188#issuecomment-1008330801, or unsubscribe https://github.com/notifications/unsubscribe-auth/AON7G6L7QYDNXOX4Z4BWOADUVGZRPANCNFSM5LP2AERQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Nino R. Pereira 7844 Vervain Ct Springfield, VA 22152 USA 703 623 0099

tschoonj commented 2 years ago

Try removing that elementary-add-team repo from your /etc/apt/sources.list file, and re-run sudo apt-get update. That should get rid of the error message, and may allow you to install xraylib.

ninorpereira commented 2 years ago

I removed the offending ppa. Now, sudo apt update no longer has an error. Your repository is there, but it still can't find some of the sources: (snip) Hit:8 http://xmi-apt.tomschoonjans.eu/ubuntu focal InRelease Fetched 336 kB in 1s (264 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. @.***:~$ sudo apt install libxrl11 libxrl11-dev Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libxrl11 E: Unable to locate package libxrl11-dev

I didn't remember the other packages, so I just asked for the two in my mail to you.

On Sun, Jan 9, 2022 at 12:23 PM Tom Schoonjans @.***> wrote:

Try removing that elementary-add-team repo from your /etc/apt/sources.list file, and re-run sudo apt-get update. That should get rid of the error message, and may allow you to install xraylib.

— Reply to this email directly, view it on GitHub https://github.com/tschoonj/xraylib/issues/188#issuecomment-1008339741, or unsubscribe https://github.com/notifications/unsubscribe-auth/AON7G6K5HCYBNZWDLINFV7TUVG777ANCNFSM5LP2AERQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Nino R. Pereira 7844 Vervain Ct Springfield, VA 22152 USA 703 623 0099

tschoonj commented 2 years ago

Bizarre, just tried this on a fresh focal VM and seems to work fine for me:

$ sudo apt-get install libxrl11
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  libxrl11
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 4638 kB of archives.
After this operation, 17.0 MB of additional disk space will be used.
Get:1 http://xmi-apt.tomschoonjans.eu/ubuntu focal/stable amd64 libxrl11 amd64 4.1.0-1+focal [4638 kB]
Fetched 4638 kB in 1s (4698 kB/s)   
Selecting previously unselected package libxrl11.
(Reading database ... 68942 files and directories currently installed.)
Preparing to unpack .../libxrl11_4.1.0-1+focal_amd64.deb ...
Unpacking libxrl11 (4.1.0-1+focal) ...
Setting up libxrl11 (4.1.0-1+focal) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
ninorpereira commented 2 years ago

Ja, knettergek. Ik weet het ook niet verder. Nogmaals,

sudo apt-get install libxrl11 [sudo] password for pereira: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libxrl11

On Sun, Jan 9, 2022 at 2:25 PM Tom Schoonjans @.***> wrote:

Bizarre, just tried this on a fresh focal VM and seems to work fine for me:

$ sudo apt-get install libxrl11 Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libxrl11 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 4638 kB of archives. After this operation, 17.0 MB of additional disk space will be used. Get:1 http://xmi-apt.tomschoonjans.eu/ubuntu focal/stable amd64 libxrl11 amd64 4.1.0-1+focal [4638 kB] Fetched 4638 kB in 1s (4698 kB/s) Selecting previously unselected package libxrl11. (Reading database ... 68942 files and directories currently installed.) Preparing to unpack .../libxrl11_4.1.0-1+focal_amd64.deb ... Unpacking libxrl11 (4.1.0-1+focal) ... Setting up libxrl11 (4.1.0-1+focal) ... Processing triggers for libc-bin (2.31-0ubuntu9.2) ...

— Reply to this email directly, view it on GitHub https://github.com/tschoonj/xraylib/issues/188#issuecomment-1008359091, or unsubscribe https://github.com/notifications/unsubscribe-auth/AON7G6PC2352QWP4LIN246DUVHOMPANCNFSM5LP2AERQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Nino R. Pereira 7844 Vervain Ct Springfield, VA 22152 USA 703 623 0099

ninorpereira commented 2 years ago

When I google the package, I get back to your page.

in your protocol, I see Get:1 http://xmi-apt.tomschoonjans.eu/ubuntu focal/stable amd64 libxrl11 amd64 4.1.0-1+focal [4638 kB]

but I have: Hit:8 http://xmi-apt.tomschoonjans.eu/ubuntu focal InRelease I assume that "InRelease" implies "/stable amd64", and "amd... "; is that so, or is something missing in my sources.list?

On Sun, Jan 9, 2022 at 3:15 PM Nino Pereira @.***> wrote:

Ja, knettergek. Ik weet het ook niet verder. Nogmaals,

sudo apt-get install libxrl11 [sudo] password for pereira: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libxrl11

On Sun, Jan 9, 2022 at 2:25 PM Tom Schoonjans @.***> wrote:

Bizarre, just tried this on a fresh focal VM and seems to work fine for me:

$ sudo apt-get install libxrl11 Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: libxrl11 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 4638 kB of archives. After this operation, 17.0 MB of additional disk space will be used. Get:1 http://xmi-apt.tomschoonjans.eu/ubuntu focal/stable amd64 libxrl11 amd64 4.1.0-1+focal [4638 kB] Fetched 4638 kB in 1s (4698 kB/s) Selecting previously unselected package libxrl11. (Reading database ... 68942 files and directories currently installed.) Preparing to unpack .../libxrl11_4.1.0-1+focal_amd64.deb ... Unpacking libxrl11 (4.1.0-1+focal) ... Setting up libxrl11 (4.1.0-1+focal) ... Processing triggers for libc-bin (2.31-0ubuntu9.2) ...

— Reply to this email directly, view it on GitHub https://github.com/tschoonj/xraylib/issues/188#issuecomment-1008359091, or unsubscribe https://github.com/notifications/unsubscribe-auth/AON7G6PC2352QWP4LIN246DUVHOMPANCNFSM5LP2AERQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Nino R. Pereira 7844 Vervain Ct Springfield, VA 22152 USA 703 623 0099

-- Nino R. Pereira 7844 Vervain Ct Springfield, VA 22152 USA 703 623 0099

tschoonj commented 11 months ago

These packages are now officially deprecated, as I will not be building any DEB and RPM packages going forward. I am currently still hosting the existing ones, but I expect to take these down in the not too distant future.