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

fedora packages doesn't work anymore #101

Closed
gucio321 opened this issue Nov 2, 2022 · 7 comments
Closed

fedora packages doesn't work anymore #101

gucio321 opened this issue Nov 2, 2022 · 7 comments

Comments

@gucio321
Copy link

gucio321 commented Nov 2, 2022

Describe the bug
I'm unable to succeed in any provided installation method:

  • curl/dnf:
Detected operating system as fedora/37.
Checking for curl...
Detected curl...
Downloading repository file: https://packagecloud.io/install/repositories/danstiner/softu2f/config_file.repo?os=fedora&dist=37&source=script
curl: (22) The requested URL returned error: 404


Unable to download repo config from: https://packagecloud.io/install/repositories/danstiner/softu2f/config_file.repo?os=fedora&dist=37&source=script

This usually happens if your operating system is not supported by 
packagecloud.io, or this script's OS detection failed.

You can override the OS detection by setting os= and dist= prior to running this script.
You can find a list of supported OSes and distributions on our website: https://packagecloud.io/docs#os_distro_version

For example, to force CentOS 6: os=el dist=6 ./script.sh

If you are running a supported OS, please email [email protected] and report this.

I've also tried to enforce older fedora (36) since 37 is a bit new and could be unsupported yet, but now, DNF complained that there is no package named softu2f

  • I've tried to run ./package.sh. it has built several RPMs but dnf didn't manage to install any of them (these from x86_64/ complained about "nothing provides softu2f-system-daemon-selinux needed by softu2f-system-daemon-0.4.2-1.fc36.x86_64")
  • I've some problems with cargo-built binaries (probably I haven't set them up correctly) but I'd really like to use rpms...
@danstiner
Copy link
Owner

danstiner commented Nov 3, 2022

I was still on Fedora 35 so I just hadn't build new packages yet, this is a good reminder for me to upgrade haha

New packages for 36 are published to packagecloud.io. I couldn't do 37 yet as packagecloud hasn't added the option yet, they should soon.

Had to tweak the openssl dependency to get it building: https://github.com/danstiner/rust-u2f/tree/release-v0.4.2

P.S. the dnf install issue is that you need to install all four packages at once, two are under noarch and two under x86_64

@gucio321
Copy link
Author

gucio321 commented Nov 3, 2022

Thank you!
So i should be able to install fc36 version on my fedora now?

@gucio321
Copy link
Author

gucio321 commented Nov 3, 2022

Now I'm getting the following dnf error:

[~ (0) ]$ sudo dnf install softu2f.noarch
danstiner_softu2f                           767  B/s | 1.8 kB     00:02    
Dependencies resolved.
============================================================================
 Package                       Arch   Version       Repository         Size
============================================================================
Installing:
 softu2f                       noarch 0.4.2-1.fc36  danstiner_softu2f 6.1 k
Installing dependencies:
 softu2f-system-daemon         x86_64 0.4.2-1.fc36  danstiner_softu2f 378 k
 softu2f-system-daemon-selinux noarch 0.1.0-1.fc36  danstiner_softu2f  20 k
 softu2f-user-daemon           x86_64 0.4.2-1.fc36  danstiner_softu2f 644 k

Transaction Summary
============================================================================
Install  4 Packages

Total download size: 1.0 M
Installed size: 2.7 M
Is this ok [y/N]: y
Downloading Packages:
[MIRROR] softu2f-0.4.2-1.fc36.noarch.rpm: Status code: 404 for https://packagecloud.io/danstiner/softu2f/fedora/36/x86_64/softu2f-0.4.2-1.fc36.noarch.rpm (IP: 52.53.39.61)
[MIRROR] softu2f-system-daemon-selinux-0.1.0-1.fc36.noarch.rpm: Status code: 404 for https://packagecloud.io/danstiner/softu2f/fedora/36/x86_64/softu2f-system-daemon-selinux-0.1.0-1.fc36.noarch.rpm (IP: 52.53.39.61)
[MIRROR] softu2f-0.4.2-1.fc36.noarch.rpm: Status code: 404 for https://packagecloud.io/danstiner/softu2f/fedora/36/x86_64/softu2f-0.4.2-1.fc36.noarch.rpm (IP: 52.53.39.61)
[MIRROR] softu2f-system-daemon-selinux-0.1.0-1.fc36.noarch.rpm: Status code: 404 for https://packagecloud.io/danstiner/softu2f/fedora/36/x86_64/softu2f-system-daemon-selinux-0.1.0-1.fc36.noarch.rpm (IP: 52.53.39.61)
[FAILED] softu2f-system-daemon-selinux-0.1.0-1.fc36.noarch.rpm: No more mirrors to try - All mirrors were already tried without success
(2-3/4): softu2f-0  1% [                  ]  75 MB/s |  20 kB     00:00 ETA
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Error downloading packages:
  softu2f-system-daemon-selinux-0.1.0-1.fc36.noarch: Cannot download, all mirrors were already tried without success
[~ (1) ]$ 

@danstiner
Copy link
Owner

danstiner commented Nov 4, 2022

Weird, packagecloud.io seems to have changed how it handles noarch rpm's. Made the packages all arch dependent.

sudo dnf install softu2f should work now for fedora 36 (as in I built a fresh VM and actually tested it this time)

@gucio321
Copy link
Author

gucio321 commented Nov 4, 2022

it works now and is awesome 😄
looking forward to seeing fedora 37 version ;-)

@gucio321 gucio321 closed this as completed Nov 4, 2022
@gucio321
Copy link
Author

gucio321 commented Nov 4, 2022

@danstiner it seems that packagecloud now supports fc37 ;-)

@gucio321 gucio321 reopened this Nov 4, 2022
@gucio321
Copy link
Author

I have just installed on fc39 and everything is ok with installation

However I experience #120.

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

No branches or pull requests

2 participants