Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15205 - How to fetch files from a http mirror?
Summary: How to fetch files from a http mirror?
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-06 06:22 UTC by Klaus-J. Wolf
Modified: 2011-10-30 22:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus-J. Wolf 2003-02-06 06:22:41 UTC
My "emerge -u portage" lead to a:

!!! portage-2.0.46-r11.tar.bz2: message digests do not match!
!!! portage-2.0.46-r11.tar.bz2 is corrupt or incomplete.
>>> our recorded digest: 87ac1e6e09f548f1c1c181ed83167e2b
>>>  your file's digest: 2c7b3e1c51f95468e36737544aa3ee08
>>> Please delete /usr/portage/distfiles/portage-2.0.46-r11.tar.bz2 and refetch.

Then I did a:

# emerge -f portage

Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/portage-2.0.46-r11 to /
>>> Downloading
http://ftp.tu-clausthal.de/pub/linux/gentoo/distfiles/portage-2.0.46-r11.tar.bz2
--12:17:50-- 
http://ftp.tu-clausthal.de/pub/linux/gentoo/distfiles/portage-2.0.46-r11.tar.bz2
           => `/usr/portage/distfiles/portage-2.0.46-r11.tar.bz2'
Resolving ftp.tu-clausthal.de... done.
Connecting to ftp.tu-clausthal.de[139.174.2.36]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

    [ <=>                                 ] 907          885.74K/s             

12:17:50 (885.74 KB/s) - `/usr/portage/distfiles/portage-2.0.46-r11.tar.bz2'
saved [907]

# strings /usr/portage/distfiles/portage-2.0.46-r11.tar.bz2

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><LINK REV="made" HREF="mailto:ftpadm@rz.tu-clausthal.de">
<TITLE>Error: File not found</TITLE></HEAD><BODY BGCOLOR="#C0C0C0"
BACKGROUND="/icons/backgnd.gif">
<ADDRESS><A HREF="http://www.rz.tu-clausthal.de/">Rechenzentrum</A> der <A
HREF="http://www.tu-clausthal.de/">TU Clausthal</A></ADDRESS>
<IMG SRC="/icons/rzHR.gif" ALT="" WIDTH="576" HEIGHT="23">
<H1>Error: File not found</H1>
<P>The requested file does not exist on this server:<BR>
<CODE>http://ftp.tu-clausthal.de/pub/linux/gentoo/distfiles/portage-2.0.46-r11.tar.bz2</CODE>
<P><A HREF="/pub">Go to the root directory of the server.</A>
<HR><ADDRESS>Generated by <A HREF="http://www.apache.org/">Apache/1.3.26
(Unix)</A> at <A HREF="/">ftp.tu-clausthal.de</A>, 20,  
<BR>maintained by <A
HREF="mailto:ftpadm@rz.tu-clausthal.de">ftpadm@rz.tu-clausthal.de</A>.
</ADDRESS></BODY></HTML>

Is there any automated way to handle these fetch failures?
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-02-06 08:47:44 UTC
In portage-2.0.46-r11... It autodetects bad 404 mirrors...
Comment 2 Klaus-J. Wolf 2003-02-10 06:05:58 UTC
Sorry to say that, but even with portage-2.0.46-r12 it doesn't work:

# emerge -u glib pango atk gtk+ imagemagick

Calculating dependencies ...done!
>>> emerge (1 of 5) dev-libs/glib-2.2.1 to /
>>> Downloading http://ftp.tu-clausthal.de/pub/linux/gentoo/distfiles/glib-2.2.1.tar.bz2
--11:58:33--  http://ftp.tu-clausthal.de/pub/linux/gentoo/distfiles/glib-2.2.1.tar.bz2
           => `/usr/portage/distfiles/glib-2.2.1.tar.bz2'
Resolving ftp.tu-clausthal.de... done.
Connecting to ftp.tu-clausthal.de[139.174.2.36]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

    [ <=>                                 ] 899          877.93K/s             

11:58:34 (877.93 KB/s) - `/usr/portage/distfiles/glib-2.2.1.tar.bz2' saved [899]


!!! glib-2.2.1.tar.bz2: message digests do not match!
!!! glib-2.2.1.tar.bz2 is corrupt or incomplete.
>>> our recorded digest: 42406a17819080326e105f8333963b97
>>>  your file's digest: f07e85fb955cf40b5493e6721a93eddc
>>> Please delete /usr/portage/distfiles/glib-2.2.1.tar.bz2 and refetch.

# file /usr/portage/distfiles/glib-2.2.1.tar.bz2

/usr/portage/distfiles/glib-2.2.1.tar.bz2: HTML document text

# strings /usr/portage/distfiles/glib-2.2.1.tar.bz2

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><LINK REV="made" HREF="mailto:ftpadm@rz.tu-clausthal.de">
<TITLE>Error: File not found</TITLE></HEAD><BODY BGCOLOR="#C0C0C0" BACKGROUND="/icons/backgnd.gif">
<ADDRESS><A HREF="http://www.rz.tu-clausthal.de/">Rechenzentrum</A> der <A HREF="http://www.tu-clausthal.de/">TU Clausthal</A></ADDRESS>
<IMG SRC="/icons/rzHR.gif" ALT="" WIDTH="576" HEIGHT="23">
<H1>Error: File not found</H1>
<P>The requested file does not exist on this server:<BR>
<CODE>http://ftp.tu-clausthal.de/pub/linux/gentoo/distfiles/glib-2.2.1.tar.bz2</CODE>
<P><A HREF="/pub">Go to the root directory of the server.</A>
<HR><ADDRESS>Generated by <A HREF="http://www.apache.org/">Apache/1.3.26 (Unix)</A> at <A HREF="/">ftp.tu-clausthal.de</A>, 20,  
<BR>maintained by <A HREF="mailto:ftpadm@rz.tu-clausthal.de">ftpadm@rz.tu-clausthal.de</A>.
</ADDRESS></BODY></HTML>
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2003-02-10 06:33:10 UTC
cyber, please take care of the faulty mirror?
Comment 4 Klaus-J. Wolf 2003-02-21 18:00:40 UTC
http://ftp.tu-clausthal.de/ doesn't work yet... Either somebody has a look on the software, or kicks its admin, or...

I've taken that mirror out of my personal list...
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2003-02-22 09:26:00 UTC
That's a bad 404 redirect.

Just as a note... Portage >=2.0.47-r2 autohandles that.
Comment 6 Klaus-J. Wolf 2003-02-22 19:45:07 UTC
Sorry, I need to say that 2.0.47-r2 produces the same problem at least with http://ftp.tu-clausthal.de.
Comment 7 Klaus-J. Wolf 2003-02-26 17:08:10 UTC
Fine, 2.0.47-r4 finally works, at least with that slightly selfish ftp.tu-clausthal.de. ;-)
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2003-02-26 23:00:09 UTC
fixed :)