Bug 432930

Summary: zypper install foo ...
Product: [openSUSE] openSUSE 11.1 Reporter: Michael Meeks <mmeeks>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michael Meeks 2008-10-07 08:52:42 UTC
So, I'm not sure if this is intended to work - though the dependency resolution makes it look like it ought to - and I'd love it if it did :-)

michael@linux-6guf:~> ls
bin      Documents  libdrm-2.4.0-1.6.i586.rpm        public_html
Desktop  gtk        libdrm-devel-2.4.0-1.6.i586.rpm  xorg-x11-driver-video-7.4-1.2.i586.rpm
michael@linux-6guf:~> sudo zypper in *.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following packages are going to be downgraded:
  libdrm xorg-x11-driver-video 


The following NEW package is going to be installed:
  libdrm-devel 


After the operation, 5.9 M will be freed.
Continue? [YES/no]: yes     
Retrieving package xorg-x11-driver-video-7.4-1.2.i586 (1/3), 0 B (0 B unpacked)
Path '/var/cache/zypper/RPMS' on medium 'dir:///var/cache/zypper/RPMS' is not a file.

Abort, retry, ignore? [A/r/i]: a
Problem retrieving the package file from the repository:
Can't provide  : Media Exception
Repository '_tmpRPMcache_' is out of date. Running 'zypper refresh' might help.
michael@linux-6guf:~> sudo zypper refresh
Repository 'factory' is up to date.
All repositories have been refreshed.
michael@linux-6guf:~> sudo zypper in *.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following packages are going to be downgraded:
  libdrm xorg-x11-driver-video 


The following NEW package is going to be installed:
  libdrm-devel 


After the operation, 5.9 M will be freed.
Continue? [YES/no]: yes
Retrieving package xorg-x11-driver-video-7.4-1.2.i586 (1/3), 0 B (0 B unpacked)
Path '/var/cache/zypper/RPMS' on medium 'dir:///var/cache/zypper/RPMS' is not a file.

Abort, retry, ignore? [A/r/i]: a
Problem retrieving the package file from the repository:
Can't provide  : Media Exception
Repository '_tmpRPMcache_' is out of date. Running 'zypper refresh' might help.
michael@linux-6guf:~> 

Of course - I assumed my cache is in fact corrupted; and binned it & refreshed - but to no avail:

michael@linux-6guf:~> sudo mv /var/cache/zypp* /tmp
michael@linux-6guf:~> sudo zypper refresh
Retrieving repository 'factory' metadata [done]
Building repository 'factory' cache [done]
All repositories have been refreshed.
michael@linux-6guf:~> sudo zypper in *.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following packages are going to be downgraded:
  libdrm xorg-x11-driver-video 


The following NEW package is going to be installed:
  libdrm-devel 


After the operation, 5.9 M will be freed.
Continue? [YES/no]: yes 
Retrieving package xorg-x11-driver-video-7.4-1.2.i586 (1/3), 0 B (0 B unpacked)
Path '/var/cache/zypper/RPMS' on medium 'dir:///var/cache/zypper/RPMS' is not a file.

Abort, retry, ignore? [A/r/i]: a
Problem retrieving the package file from the repository:
Can't provide  : Media Exception
Repository '_tmpRPMcache_' is out of date. Running 'zypper refresh' might help.
Comment 1 Jan Kupec 2008-10-07 12:09:44 UTC
yes this should work

*** This bug has been marked as a duplicate of bug 420044 ***