Posts Tagged ‘opensuse’
Installing gbrainy with zypper (compiled with libzypp + metalink support)
Written by Gerard on 1 01UTC July 01UTC 2008 – 16:08 -Right now, with libzypp hacked version than I have in my laptop, I can do this:
./zypper install gbrainy
Reading installed packages…The following NEW package is going to be installed:
gbrainyOverall download size: 127,0 K. After the operation, additional 472,0 K will be used.
Continue? [YES/no]: YES
Downloading package gbrainy-0.61-31.1.noarch (1/1), 127,0 K (472,0 K unpacked)——————–
getFile ( /media.1/media )
doGetMetalinkFileCopy –> http://download.opensuse.org/distribution/11.0/repo/oss/media.1/media.metalink
\ Downloading: media.metalink [starting]Metalink file exists – We can parse it
We have 69 mirrors for this file
Downloading from http://mirror.switch.ch/ftp/mirror/opensuse/distribution/11.0/repo/oss/media.1/media
HTTP response: 200
done: /var/adm/mount/AP_0×00000003/media.1/media{- 0644 0/0 size 42}——————–
getFile ( ./suse/noarch/gbrainy-0.61-31.1.noarch.rpm )
doGetMetalinkFileCopy –> http://download.opensuse.org/distribution/11.0/repo/oss/suse/noarch/gbrainy-0.61-31.1.noarch.rpm.metalink
| Downloading: gbrainy-0.61-31.1.noarch.rpm.metalink [starting]Metalink file exists – We can parse it
We have 69 mirrors for this file
Downloading from http://mirror.switch.ch/ftp/mirror/opensuse/distribution/11.0/repo/oss/suse/noarch/gbrainy-0.61-31.1.noarch.rpm
/ Downloading: gbrainy-0.61-31.1.noarch.rpm [starting]HTTP response: 200
done: /var/adm/mount/AP_0×00000003/suse/noarch/gbrainy-0.61-31.1.noarch.rpm{- 0644 0/0 size 129095}
Downloading: [done]
Installing: gbrainy-0.61-31.1 [done]
All seems well and correct but… right now begins a new problem
If the server responds with HTTP code 304, I get this error message:
Can’t provide ./suse/noarch/gbrainy-0.61-31.1.noarch.rpm : Can’t copy /var/adm/mount/AP_0×00000003/suse/noarch/gbrainy-0.61-31.1.noarch.rpm to /var/cache/zypp/packages/repo-oss
Repository ‘repo-oss’ is out of date. Running ‘zypper refresh’ might help.
Really, this error is caused because this file (/var/adm/mount/AP_0×00000003/suse/noarch/gbrainy-0.61-31.1.noarch.rpm{does not exist}) NOT exists
Post updated 02/07: In effect, we receive 304 response code because we send “If-Modified-Since: Thu, 01 Jan 1970 00:00:00 GMT” in the header.
GET /distribution/11.0/repo/oss/media.1/media HTTP/1.1
User-Agent: ZYpp 5.0.0 (MediaMetalink – with curl 7.18.1 & libmetalink )
Host: opensuse.mirror.solnet.ch
Accept: */*
If-Modified-Since: Thu, 01 Jan 1970 00:00:00 GMTHTTP/1.1 304 Not Modified
Content-Type: text/plain
Accept-Ranges: bytes
ETag: “3592996126″
Last-Modified: Wed, 02 Jul 2008 02:42:38 GMT
Date: Wed, 02 Jul 2008 13:31:06 GMT
Server: httpd/1.4.x
I’m thinking in this actions:
- Disable “If-Modified-Since” in our petition via libcurl, or,
- Try the next mirror when libzypp receives 304 HTTP code response.
Updated: We can disable “If-Modified-Since” header in our petition, simply commenting these lines:
curl_easy_setopt(_curl, CURLOPT_TIMECONDITION, CURL_TIMECOND_IFMODSINCE);
curl_easy_setopt(_curl, CURLOPT_TIMEVALUE, PathInfo(target).mtime());
Good solution
?
OpenSUSE 10.3 in my old (and dusty) laptop
Written by Gerard on 13 13UTC June 13UTC 2008 – 20:46 -Finally, summer is here
And, after a lot of rainy days and some exams, my head is thinking in something most appropriated to this time, like:
Go to the beach (21-25 june)
, go to Renens (Switzerland) (chez mon frere
(28 June – 6 July) ), and, of course, hack libzypp to try to add Metalink support
For these reasons today I have spent some hours in backup some files and remove (forever) Windows partition in my old (and dusty
) laptop, and install OpenSUSE 10.3 in this free place. Also I’ve installed all the needed software (= my new friends ) : gcc compiler, cmake, subversion client, etc..- I must remember, however, upgrade to OpenSUSE_11.0 new week
So, now, I can tell than I’m ready to travel and to enjoy this Google Summer of Code
Renens, this days (picture taken from http://www.renens.ch/):


