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

Installing a package with --install fails because of dependencies #363

Open
FrostyX opened this issue Apr 3, 2020 · 0 comments
Open

Installing a package with --install fails because of dependencies #363

FrostyX opened this issue Apr 3, 2020 · 0 comments
Labels
bug Something is clearly a bug effort/medium Can be done in 1-2 days gain/medium Affects multiple users

Comments

@FrostyX
Copy link
Member

FrostyX commented Apr 3, 2020

When trying to build and install a package via tito

tito build --rpm --test --install

it often fails because of missing dependencies (because of running DNF with --cache-only option)

Error: Some packages have invalid cache, but cannot be downloaded due to "--cacheonly" option


ERROR: Error running command: sudo dnf install -C -y /tmp/tito/noarch/tracer-common-0.7.1-1.git.3.b5f1dab.fc30.noarch.rpm /tmp/tito/noarch/python2-tracer-0.7.1-1.git.3.b5f1dab.fc30.noarch.rpm /tmp/tito/noarch/python3-tracer-0.7.1-1.git.3.b
5f1dab.fc30.noarch.rpm

Status code: 1

Command output: ['Last metadata expiration check: 3:27:57 ago on Thu Apr  2 21:05:10 2020.', 'Dependencies resolved.', '================================================================================', ' Package          Arch     Version 
		    Repository      Size', '================================================================================', 'Installing:', ' python2-tracer   noarch   0.7.1-1.git.3.b5f1dab.fc30      @commandline   112 k', ' python3-
tracer   noarch   0.7.1-1.git.3.b5f1dab.fc30      @commandline    98 k', ' tracer-common    noarch   0.7.1-1.git.3.b5f1dab.fc30      @commandline    20 k', 'Installing dependencies:', ' python2-future   noarch   0.18.2-3.fc30              
updates        807 k', ' python2-psutil   x86_64   5.6.7-1.fc30                    updates        403 k', ' python2-rpm      x86_64   4.14.2.1-5.fc30                 updates         66 k', '', 'Transaction Summary', '=================
===============================================================', 'Install  6 Packages', '', 'Total size: 1.5 M', 'Total download size: 1.2 M', 'Installed size: 6.9 M', 'Downloading Packages:', 'Error opening file for checksum: /var/cache/
dnf/updates-d6521d96a82a4d6a/packages/python2-future-0.18.2-3.fc30.noarch.rpm', 'Package "python2-future-0.18.2-3.fc30.noarch" from repository "updates" has incorrect checksum', 'Error opening file for checksum: /var/cache/dnf/updates-d652
1d96a82a4d6a/packages/python2-psutil-5.6.7-1.fc30.x86_64.rpm', 'Package "python2-psutil-5.6.7-1.fc30.x86_64" from repository "updates" has incorrect checksum', 'Error opening file for checksum: /var/cache/dnf/updates-d6521d96a82a4d6a/packa
ges/python2-rpm-4.14.2.1-5.fc30.x86_64.rpm', 'Package "python2-rpm-4.14.2.1-5.fc30.x86_64" from repository "updates" has incorrect checksum', 'Error: Some packages have invalid cache, but cannot be downloaded due to "--cacheonly" option']

I guess a simple reproducer for any tito package should be cleaning dnf cache with

dnf clean all
@FrostyX FrostyX added the bug Something is clearly a bug label Apr 3, 2020
FrostyX added a commit to FrostyX/tito that referenced this issue Aug 6, 2023
Fix rpm-software-management#466
See rpm-software-management#363

Actually, it still doesn't work completely but this particular issue
is fixed. I am now getting:

    Auto-installing packages:
    sudo dnf install -y /tmp/tito/noarch/tito-0.6.24-1.git.0.2a15b8c.fc39.noarch.rpm
    ...
    Failed to resolve the transaction:
    Problem: problem with installed package
      - cannot install both tito-0.6.24-1.git.0.2a15b8c.fc39.noarch and tito-0.6.24-2.fc39.noarch
      - conflicting requests

Which seems to be fixed in the dnf5 main branch:
rpm-software-management/dnf5#722
FrostyX added a commit to FrostyX/tito that referenced this issue Aug 6, 2023
Fix rpm-software-management#466
See rpm-software-management#363

Actually, it still doesn't work completely but this particular issue
is fixed. I am now getting:

    Auto-installing packages:
    sudo dnf install -y /tmp/tito/noarch/tito-0.6.24-1.git.0.2a15b8c.fc39.noarch.rpm
    ...
    Failed to resolve the transaction:
    Problem: problem with installed package
      - cannot install both tito-0.6.24-1.git.0.2a15b8c.fc39.noarch and tito-0.6.24-2.fc39.noarch
      - conflicting requests

Which seems to be fixed in the dnf5 main branch:
rpm-software-management/dnf5#722
FrostyX added a commit that referenced this issue Aug 14, 2023
Fix #466
See #363

Actually, it still doesn't work completely but this particular issue
is fixed. I am now getting:

    Auto-installing packages:
    sudo dnf install -y /tmp/tito/noarch/tito-0.6.24-1.git.0.2a15b8c.fc39.noarch.rpm
    ...
    Failed to resolve the transaction:
    Problem: problem with installed package
      - cannot install both tito-0.6.24-1.git.0.2a15b8c.fc39.noarch and tito-0.6.24-2.fc39.noarch
      - conflicting requests

Which seems to be fixed in the dnf5 main branch:
rpm-software-management/dnf5#722
@FrostyX FrostyX added effort/medium Can be done in 1-2 days gain/medium Affects multiple users labels Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is clearly a bug effort/medium Can be done in 1-2 days gain/medium Affects multiple users
Projects
None yet
Development

No branches or pull requests

1 participant