I guess (but I am not sure, I do not have the Source repo enabled) that this is because the package name is patch and does not include a version. This is how it is in the other repos.
Seems to be a mirror problem, same command installs the source rpm just
fine on my 12.1 test system.
Did you try a “zypper ref”.
–
PC: oS 11.4 (dual boot 12.1) 64 bit | Intel Core i7-2600@3.40GHz | KDE
4.6.0 | GeForce GT 420 | 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.7.3 |
nVidia ION | 3GB Ram
Humm … It looks like I have a problem then. Ok, let me describe the situation.
I have always installed everything with zypper, mostly from scripts or command line. I keep the latest versions of the rpms on a fileserver in order not to have to redownload them every time. On each computer /var/cache/zypp/packages is a symlink to a directory on the fileserver.
I use zypper refresh and zypper update on all machines (for years) without problem. I don’t install rpm sources with zypper. So I don’t remember if it ever worked. I usually download sources with wget, install locally with rpm -i or build in OBS.
Today I noticed that hddtemp was missing on the 12.1 I’m setting up. It was in packman for 11.4. Howewer for 12.1, only the source is available. So I decided to download and install the source with this very simple script:
As it didn’t work, I tried zypper source-install directly. Since zypper source-install failed for hddtemp, I tried a simple one like ‘patch’ from oss source repo, then I tried elvis from my repo, with always the same result (see below).
[noparse]$ zypper source-install --no-build-deps hddtemp
Reading installed packages...
Loading repository data...
Resolving package dependencies...
Continue? [y/n/?] (y): y
Installing source package hddtemp-0.3_beta15-13.6
Problem installing source package hddtemp-0.3_beta15-13.6:
[packman|http://ftp.uni-erlangen.de/pub/mirrors/packman/suse/openSUSE_12.1/] Can't provide file './Extra/src/hddtemp-0.3_beta15-13.6.src.rpm' from repository 'packman'
$ zypper source-install --no-build-deps patch
Reading installed packages...
Loading repository data...
Resolving package dependencies...
Continue? [y/n/?] (y): y
Installing source package patch-2.6.1.116-4.1.5
Problem installing source package patch-2.6.1.116-4.1.5:
[repo-source|http://download.opensuse.org/source/distribution/12.1/repo/oss/] Can't provide file './suse/src/patch- 2.6.1.116-4.1.5.src.rpm' from repository 'repo-source'
$ zypper source-install --no-build-deps elvis
Reading installed packages...
Loading repository data...
Resolving package dependencies...
Continue? [y/n/?] (y): y
Installing source package elvis-2.2_0-23.1
Problem installing source package elvis-2.2_0-23.1:
[PTA|http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_12.1/] Can't provide file './src/elvis-2.2_0-23.1.src.rpm' from repository 'PTA'
[/noparse]
What am I doing wrong? lol! I must be doing something wrong.