[opensuse] how do use slow remote yast repositry on FTP server?
The subject was a bit unclear: my situation is: There are only two public yast source repository known in China and one of them is broken (trying to reach the responsible person) the other set up by us (ftp://opensuse.realss.cn/opensuse/) I have a SuSE 10.2 installation, remote yast source code repository is set to opensuse.realss.cn. The client and server connection is not fast (5KB/s) but that's the fastest yast source repository this client can reach. Problem: we cannot install any software that has several magebytes. Usually it goes like this: after several hours the software is fully downloaded (progress of download reach 100%) and, I got a message "Curl error for: ftp://opensuse.realss.cn/opensuse/distribution/10.2/repo/oss/suse/i586/python-opengl-2.0.1.09-49.i586.rpm: Error code: Timeout reached Error message: Callback aborted I guess the reason could be, that for ftp there is a control connnection and data connection, perhaps control connection is broken because idle for too long time (to wait for data connection) and when data connection finishes, curl cannot return to control connection, thus this problem. I have no clue on how we can solve it: perhaps we can customize curl to behave differently? perhaps we can adjust vsftpd server, customize it to never drop control connection too easily? I am still digging into documents. But as we are business I don't have that much time RTFM (though I very like to RTFM when I have time). It would be great if some drop some lines of direct helpful message:) -- Zhang Weiwu Real Softservice http://www.realss.com +86 592 2091112 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2007-03-22 at 14:41 +0800, Zhang Weiwu wrote:
Problem: we cannot install any software that has several magebytes. Usually it goes like this: after several hours the software is fully downloaded (progress of download reach 100%) and, I got a message "Curl error for: ftp://opensuse.realss.cn/opensuse/distribution/10.2/repo/oss/suse/i586/python-opengl-2.0.1.09-49.i586.rpm: Error code: Timeout reached Error message: Callback aborted
Now the situation is even worse, the connection constantly broken at 40%, 60% or 80%, it seems the network quality is low and cannot maintain a connection for some 10 minutes. yast2 tries to restart from 0% every time when connection broken, yast2 do not understand how to retry and resume broken download session (e.g. restart download from 40%). Now I have already tried 6 times and I am tried of this. I think most package managers in Linux world do try restart resume download (I have tried: Ubuntu, Debian, Gentoo Linux). Possible to configure yast2 to resume broken connection? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello, Zhang Weiwu napsal(a):
On Thu, 2007-03-22 at 14:41 +0800 ... yast2 tries to restart from 0% every time when connection broken, yast2 do not understand how to retry and resume broken download session (e.g. restart download from 40%). Now I have already tried 6 times and I am tried of this. I think most package managers in Linux world do try restart resume download (I have tried: Ubuntu, Debian, Gentoo Linux).
Possible to configure yast2 to resume broken connection?
No, that's not possible. (Please, report this problem (enhancement request) in bugzilla.novell.com.) As a workaround you can download (mirror) the repository to a local server (or directly to your machine) and use the local copy of the repository. If the repository is huge and you want to install just few packages then copy the metadata (content.*, control.xml, directory.yast, suse/setup/*, suse/repodata/*) and the needed packages from suse/<arch>/ directory. Ladislav -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2007-03-22 at 08:47 +0100, Ladislav Slezak wrote:
Hello,
Zhang Weiwu napsal(a):
On Thu, 2007-03-22 at 14:41 +0800 ... yast2 tries to restart from 0% every time when connection broken, yast2 do not understand how to retry and resume broken download session (e.g. restart download from 40%). Now I have already tried 6 times and I am tried of this. I think most package managers in Linux world do try restart resume download (I have tried: Ubuntu, Debian, Gentoo Linux).
Possible to configure yast2 to resume broken connection?
No, that's not possible. (Please, report this problem (enhancement request) in bugzilla.novell.com.)
As a workaround you can download (mirror) the repository to a local server (or directly to your machine) and use the local copy of the repository.
If the repository is huge and you want to install just few packages then copy the metadata (content.*, control.xml, directory.yast, suse/setup/*, suse/repodata/*) and the needed packages from suse/<arch>/ directory.
Can alternative package management tool help? e.g. smart (or smarty, cannot recall). Can these 3rd party package management tool also support directly using source repositories built for yast2? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Zhang Weiwu <zhangweiwu@realss.com> [03-22-07 04:01]: [...]
Can alternative package management tool help? e.g. smart (or smarty, cannot recall). Can these 3rd party package management tool also support directly using source repositories built for yast2?
yes, smart can install from a local file: smart install /path/to/file.rpm and you can create a local repro by putting the rpm files into a central directory and then running "createrepo ." in that directory. You then add a channel to smart: [<logname>] type = rpm-md baseurl = /path/to/<central-directory> I have done both: [pat] type = rpm-md baseurl = /home/pat/Desktop/Downloads you can get help via: smart --help man smart -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2 OpenSUSE Linux http://en.opensuse.org/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Ladislav Slezak
-
Patrick Shanahan
-
Zhang Weiwu