Bug 858632 - traceback: Downloaded package xxx, but it was invalid
Summary: traceback: Downloaded package xxx, but it was invalid
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Packaging Toolset Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-19 09:25 UTC by Kamil Páral
Modified: 2014-01-21 23:23 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-19 02:23:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kamil Páral 2012-09-19 09:25:21 UTC
Description of problem:

This is what I received. Richard Hughes asked me to report it against yum.
<hughsie> PK is asking yum to download a file, but all yum says is "invalid"
<hughsie> which isn't really helpful


[kparal@localhost ~]$ pkcon --only-download --background update
Getting updates               [=========================]         
Waiting in queue              [=========================]         
Starting                      [=========================]         
Getting information           [=========================]         
Updating packages             [=========================]         
Waiting in queue              [=========================]         
Starting                      [=========================]         
Running                       [=========================]         
Resolving dependencies        [=========================]         
Downloading packages          [=========================]         
Fatal error: Error Type: <class 'yum.Errors.RepoError'>
Error Value: Downloaded package gstreamer1-0.11.94-1.fc18.i686, from updates-testing, but it was invalid.
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3588, in <module>
    main()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3585, in main
    backend.dispatcher(sys.argv[1:])
  File : /usr/lib/python2.7/site-packages/packagekit/backend.py, line 760, in dispatcher
    self.dispatch_command(args[0], args[1:])
  File : /usr/lib/python2.7/site-packages/packagekit/backend.py, line 721, in dispatch_command
    self.update_packages(transaction_flags, package_ids)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2294, in update_packages
    self._runYumTransaction(transaction_flags, allow_skip_broken=True)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2378, in _runYumTransaction
    path = repo.getPackage(txmbr.po)
  File : /usr/lib/python2.7/site-packages/yum/yumRepo.py, line 990, in getPackage
    raise Errors.RepoError, msg


Version-Release number of selected component (if applicable):
yum-3.4.3-42.fc18.noarch
PackageKit-0.8.3-4.fc19.i686

How reproducible:
I don't know, it's possible that the file download got corrupted. When I rebooted and tried again it worked.

Comment 1 Zdeněk Pavlas 2012-09-19 14:35:36 UTC
Yes, package was downloaded and the checksum failed.  This should have been detected earlier and downloaded again from next mirror, but due to a Yum bug the checkfunc callback was essentially ignored.  Fixed upstream.

Comment 2 Fedora Update System 2012-11-12 14:49:14 UTC
yum-3.4.3-30.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/yum-3.4.3-30.fc17

Comment 3 Fedora Update System 2012-11-13 00:55:53 UTC
Package yum-3.4.3-30.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-3.4.3-30.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-18062/yum-3.4.3-30.fc17
then log in and leave karma (feedback).

Comment 4 Kevin 2012-11-16 23:28:44 UTC
I have something similar, at least in the error message:

Error Downloading Packages:
  xless-1.7-12kc_0tek_fc17.x86_64: [Errno 256] No more mirrors to try.
  xless-1.7-12kc_0tek_fc17.x86_64: Downloaded package xless-1.7-12kc_0tek_fc17.x86_64, from homebrew-fedora-17, but it was invalid.

I packaged xless myself, and

xless-1.7-12kc_0tek_fc17.x86_64.rpm: (sha1) dsa sha1 md5 gpg OK

::::::::::::::
/etc/yum.repos.d/homebrew-fedora-17.repo
::::::::::::::
[homebrew-fedora-17]
name=Home Brewed Software for Fedora 17
baseurl=file:///home/local/src/homebrew/fedora/17/executable/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-homebrew-fedora-17


-rw-r----- 2 user group 30433 Nov 15 23:32 /home/local/src/homebrew/fedora/17/executable/xless-1.7-12kc_0tek_fc17.x86_64.rpm

I created the repo with

createrepo --database /home/local/src/homebrew/fedora/17/executable

I wonder if the forthcoming update will help me.  For now I'm installing with rpm.

Thanks....

Comment 5 Fedora Update System 2012-11-19 02:23:22 UTC
yum-3.4.3-30.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.