Bug 673700 - apt (and synaptic) fail to find needed file: /var/lib/rpm/packages.rpm
Summary: apt (and synaptic) fail to find needed file: /var/lib/rpm/packages.rpm
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: apt
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Panu Matilainen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-29 22:46 UTC by Steven Usdansky
Modified: 2011-05-19 04:44 UTC (History)
3 users (show)

Fixed In Version: apt-0.5.15lorg3.95-0.git522.1.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 04:44:42 UTC
Type: ---


Attachments (Terms of Use)

Description Steven Usdansky 2011-01-29 22:46:45 UTC
Description of problem:
Apt (and synaptic) die with error:

E: Failed to stat /var/lib/rpm/packages.rpm - fstat (2 No such file or directory)
E: The package lists or status file could not be parsed or opened.

Version-Release number of selected component (if applicable):
apt-0.5.15lorg3.95-0.git416.7.fc15.1.x86_64
synaptic-0.57.2-25.fc15.x86_64


How reproducible:
100%

Steps to Reproduce:
1a. sudo apt-get update
or 
1b. open synaptic from a graphical desktop
  
Actual results:
Apt (and synaptic) die with error:

E: Failed to stat /var/lib/rpm/packages.rpm - fstat (2 No such file or directory)
E: The package lists or status file could not be parsed or opened.


Expected results:
apt (and synaptic) do not die or otherwise misbehave

Additional info:
To fix the problem:
/var/lib/rpm# ln -s Packages packages.rpm

Comment 1 JackieBrown 2011-04-07 01:14:24 UTC
I get the same error with synaptic-0.57.2-26.fc15.x86_64

Comment 2 Panu Matilainen 2011-04-13 20:19:54 UTC
You might want to try the latest snapshot from rawhide:
http://koji.fedoraproject.org/koji/taskinfo?taskID=2998410

That has a chance of actually working and a considerably faster too. Synaptic is still woefully broken though :-/

Comment 3 Fedora Update System 2011-05-06 07:08:47 UTC
apt-0.5.15lorg3.95-0.git522.1.fc15,fedora-package-config-apt-15.00-1 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/apt-0.5.15lorg3.95-0.git522.1.fc15,fedora-package-config-apt-15.00-1

Comment 4 Fedora Update System 2011-05-07 15:08:39 UTC
Package apt-0.5.15lorg3.95-0.git522.1.fc15, fedora-package-config-apt-15.00-1:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing apt-0.5.15lorg3.95-0.git522.1.fc15 fedora-package-config-apt-15.00-1'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/apt-0.5.15lorg3.95-0.git522.1.fc15,fedora-package-config-apt-15.00-1
then log in and leave karma (feedback).

Comment 5 JackieBrown 2011-05-07 22:59:38 UTC
I now get this error

[root@davids-computer david]# apt-get update
Ign http://download.fedoraproject.org fedora/linux/releases/15/Everything/x86_64/os/ repomd.xml
Get:1 http://download.fedoraproject.org fedora/linux/updates/15/x86_64/ repomd.xml [2683B]
Fetched 2683B in 1s (2473B/s)    
E: Repository model not found for http://download.fedoraproject.org/pub/ fedora/linux/releases/15/Everything/x86_64/os/


This is using 

Name        : apt
Arch        : x86_64
Version     : 0.5.15lorg3.95
Release     : 0.git522.1.fc15

Comment 6 Panu Matilainen 2011-05-09 06:05:53 UTC
Yup, that's expected, and unrelated to this bug. 

The fedora-package-config-apt update changes the default sources to where F15 will be when released, which is different to what it is now. It's not optimal I know, but the other alternative would require another update before F15 final and since F15 enters freeze today (IIRC) there's no guarantee another update would even make it to the F15 final repo. You'll need to manually edit the main fedora repository sourcelist to make it work while in the pre-release stage. A broken config now is better than having a broken config (including pointing to rawhide by default as has been the case in other releases) in F15 final.

Apt would need to learn about yum's metalink stuff 'n all to avoid this constant repository config silliness. Would be nice of course but I've preciously little time available for apt hacking these days.

Comment 7 Fedora Update System 2011-05-19 04:44:37 UTC
apt-0.5.15lorg3.95-0.git522.1.fc15, fedora-package-config-apt-15.00-1 has been pushed to the Fedora 15 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.