You are not logged in.

#1 2011-09-09 23:15:36

paulchain
Member
Registered: 2011-08-22
Posts: 7

ABS Linux Kernel - Failure While Downloading

I'm trying to patch my 3.0.4 kernel so I downloaded the ABS but the PKGBUILD that comes with the linux kernel is giving an error....


[paul@ArchAttack abs]$ makepkg -s
==> Making package: linux 3.0.4-1 (Fri Sep  9 18:08:17 CDT 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading linux-3.0.tar.bz2...
--2011-09-09 18:08:17--  ftp://ftp.kernel.org/pub/linux/kernel/v … .0.tar.bz2
           => `linux-3.0.tar.bz2.part'
Resolving ftp.kernel.org... failed: Name or service not known.
wget: unable to resolve host address `ftp.kernel.org'
==> ERROR: Failure while downloading linux-3.0.tar.bz2
    Aborting...

I think the PKGBUILD for the linux kernel in ABS needs updating or something, I'm not an expert at Arch linux so I dont really know what to do to fix it.

Offline

#2 2011-09-09 23:21:27

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: ABS Linux Kernel - Failure While Downloading

Navigate to http://kernel.org and you will see the problem.

Offline

#3 2011-09-09 23:51:53

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: ABS Linux Kernel - Failure While Downloading

As lucke explained, it's related to https://bbs.archlinux.org/viewtopic.php?id=125666

Last edited by karol (2011-09-09 23:52:15)

Offline

#4 2011-09-10 14:05:58

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: ABS Linux Kernel - Failure While Downloading

http://www.h-online.com/open/news/item/ … 36692.html

Change the source array and it will work.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2011-09-10 14:35:29

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: ABS Linux Kernel - Failure While Downloading

Yes, the main kernel.org servers are down, but you can use a mirror, for example, any of the following will do:

http://www.af.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.al.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.aq.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ar.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.at.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.au.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ax.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.az.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ba.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.be.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.bg.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.bm.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.br.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.by.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ca.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ch.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ck.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.cl.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.cn.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.co.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.cr.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.cy.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.cz.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.de.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.dk.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ec.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ee.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.eh.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.es.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.fi.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.fo.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.fr.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.gf.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.gi.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.gl.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.gr.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.hr.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ht.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.hu.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.id.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ie.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.il.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.in.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.io.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.is.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.it.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.jm.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.jp.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.kg.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.kr.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.kz.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.li.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.lt.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.lu.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.lv.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.mc.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.md.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.me.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.mk.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.mx.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.my.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.nl.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.no.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.nz.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.pa.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.pe.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ph.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.pl.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.pr.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.pt.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.py.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ro.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.rs.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ru.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.se.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.sg.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.si.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.sj.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.sk.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.sm.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.sr.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.th.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.tm.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.tw.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ua.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.uk.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.us.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.uy.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.va.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.ve.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.vg.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.vi.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2
http://www.za.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.bz2

Edit: Nevermind, they seem all dead now (all working yesterday).

Last edited by lolilolicon (2011-09-10 14:41:20)


This silver ladybug at line 28...

Offline

#6 2011-09-20 23:15:16

pocm
Member
Registered: 2010-08-02
Posts: 15

Re: ABS Linux Kernel - Failure While Downloading

Mr.Elendig wrote:

http://www.h-online.com/open/news/item/ … 36692.html

Change the source array and it will work.

AFAICT github doesn't offer tarballs, and makepkg does not understand git repositories. So it seems like fixing a PKGBUILD is actually not so trivial - you'd have to do a "git clone" inside build(). Or am I missing something?

Offline

#7 2011-09-21 04:49:57

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: ABS Linux Kernel - Failure While Downloading

pocm wrote:

AFAICT github doesn't offer tarballs, and makepkg does not understand git repositories. So it seems like fixing a PKGBUILD is actually not so trivial - you'd have to do a "git clone" inside build(). Or am I missing something?

Github generates a tarball for each tag of a repo:
https://github.com/torvalds/linux/downloads

Last edited by lolilolicon (2011-09-21 04:50:27)


This silver ladybug at line 28...

Offline

#8 2011-09-21 05:08:53

pocm
Member
Registered: 2010-08-02
Posts: 15

Re: ABS Linux Kernel - Failure While Downloading

It seems the problem is worse than that - apparently Linus does not maintain the stable patches (which the Arch package uses and most users should want) - which means they are NOT available in the github repo. We have to rely on 3rd-party mirrors for now. This link was suggested on IRC: http://ftp.nluug.nl/pub/os/Linux/system/kernel/v3.0/

Offline

#9 2011-09-21 10:59:56

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,094

Re: ABS Linux Kernel - Failure While Downloading

pocm wrote:
Mr.Elendig wrote:

http://www.h-online.com/open/news/item/ … 36692.html

Change the source array and it will work.

AFAICT github doesn't offer tarballs, and makepkg does not understand git repositories. So it seems like fixing a PKGBUILD is actually not so trivial - you'd have to do a "git clone" inside build(). Or am I missing something?

You are totally missing something. Github does indeed offer tarballs, see what happens when you click the Dowload button...

Or you can always pull a tag/branch directly using git.

Last edited by Mr.Elendig (2011-09-21 11:00:41)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#10 2011-10-01 18:02:10

R3V0LV3R
Member
Registered: 2011-10-01
Posts: 4

Re: ABS Linux Kernel - Failure While Downloading

pocm wrote:

It seems the problem is worse than that - apparently Linus does not maintain the stable patches (which the Arch package uses and most users should want) - which means they are NOT available in the github repo. We have to rely on 3rd-party mirrors for now. This link was suggested on IRC: http://ftp.nluug.nl/pub/os/Linux/system/kernel/v3.0/

How do you change the mirror?

Just change the PKGBUILD file for this particular package?


In the original the source is ftp://ftp.kernel.org/pub/linux/libs/aio/libaio-$pkgver.tar.bz2

So I tried to replace ftp://ftp.kernel.org/pub/linux/ with http://ftp.nluug.nl/pub/os/Linux/system/kernel/v3.0/ -

http://ftp.nluug.nl/pub/os/Linux/system … er.tar.bz2


But I get a 404 error.

Offline

#11 2011-10-01 18:04:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: ABS Linux Kernel - Failure While Downloading

R3V0LV3R wrote:
pocm wrote:

It seems the problem is worse than that - apparently Linus does not maintain the stable patches (which the Arch package uses and most users should want) - which means they are NOT available in the github repo. We have to rely on 3rd-party mirrors for now. This link was suggested on IRC: http://ftp.nluug.nl/pub/os/Linux/system/kernel/v3.0/

How do you change the mirror?

Just change the PKGBUILD file for this particular package?


In the original the source is ftp://ftp.kernel.org/pub/linux/libs/aio/libaio-$pkgver.tar.bz2

So I tried to replace ftp://ftp.kernel.org/pub/linux/ with http://ftp.nluug.nl/pub/os/Linux/system/kernel/v3.0/ -

http://ftp.nluug.nl/pub/os/Linux/system … er.tar.bz2


But I get a 404 error.

There's no 'libs' directory on the nluug link.

Offline

#12 2011-10-01 18:07:27

R3V0LV3R
Member
Registered: 2011-10-01
Posts: 4

Re: ABS Linux Kernel - Failure While Downloading

karol wrote:
R3V0LV3R wrote:
pocm wrote:

It seems the problem is worse than that - apparently Linus does not maintain the stable patches (which the Arch package uses and most users should want) - which means they are NOT available in the github repo. We have to rely on 3rd-party mirrors for now. This link was suggested on IRC: http://ftp.nluug.nl/pub/os/Linux/system/kernel/v3.0/

How do you change the mirror?

Just change the PKGBUILD file for this particular package?


In the original the source is ftp://ftp.kernel.org/pub/linux/libs/aio/libaio-$pkgver.tar.bz2

So I tried to replace ftp://ftp.kernel.org/pub/linux/ with http://ftp.nluug.nl/pub/os/Linux/system/kernel/v3.0/ -

http://ftp.nluug.nl/pub/os/Linux/system … er.tar.bz2


But I get a 404 error.

There's no 'libs' directory on the nluug link.


Haha, yeah - duh. I was just looking at that directory.

But I still don't know what the hell to do so I'm searching through the tar files. My method is very much a "shot in the dark" at this point, just installed Arch about 3 weeks ago.

Offline

#13 2011-10-01 18:52:02

stoat
Member
Registered: 2011-08-07
Posts: 12

Re: ABS Linux Kernel - Failure While Downloading

"R3V0LV3R' wrote:

But I get a 404 error.

You also can manually download (by your favorite method) the linux-3.0 tarball and the version patch gzip from anywhere you can find them (they're still out there in some mirrors). Put the two files in the working directory with PKGBUILD. Edit the source= section of PKGBUILD to just the filenames for the kernel and the patch. Proceed. It will work as usual including verifying the md5sum of your downloads against the original PKGBUILD's hashes (which made me feel better since I don't even remember where I got the kernel and patch from).

source=("linux-3.0.tar.bz2"
        "patch-3.0.4.gz"
        # the main kernel config files
        'config' 'config.x86_64'
        # standard config files for mkinitcpio ramdisk
        "${pkgname}.preset"
        'fix-i915.patch'
        'change-default-console-loglevel.patch')
md5sums=('398e95866794def22b12dfbc15ce89c0'
         'd9f025a0d5fc5dc94d99d8e81291b939'
         '835480a3ed395ce2aad101c08dbcad3c'
         'fd5a1712ddea696eee5255de2d854218'
         'eb14dcfd80c00852ef81ded6e826826a'
         '263725f20c0b9eb9c353040792d644e5'
         '9d3c56a4b999c8bfbd4018089a62f662')

A minor point, but it may help some while we're having to hunt down these files in the meantime. It helped me anyway. The GitHub files are offered as zip and tar.gz files. I continued looking until I found the kernel as tar.bz2 and the patch as a gz. I wanted to be able to verify the downloads against the hashes in the original PKGBUILD file.

Last edited by stoat (2011-10-04 12:39:09)

Offline

#14 2011-10-01 18:52:41

pocm
Member
Registered: 2010-08-02
Posts: 15

Re: ABS Linux Kernel - Failure While Downloading

R3V0LV3R wrote:

But I still don't know what the hell to do so I'm searching through the tar files. My method is very much a "shot in the dark" at this point, just installed Arch about 3 weeks ago.

What I recall from the last time I tried this (a week or two ago), is in order to make the official PKGBUILD work you have to:

  1. Replace the first source file with: http://ftp.nluug.nl/pub/os/Linux/system … .4.tar.bz2

  2. Remove the SECOND source file AND its corresponding md5sum hash

  3. Replace the FIRST md5sum hash with: dff86c657cabe813bda84c72bfb93ae8

  4. Comment out the first 'patch' command in build()

Normally kernel.org offered two files - a bare 3.0 build, and a patch file which turns 3.0 into 3.0.4 - whereas this alternative server offers a single tarball with 3.0.4. That's why you have to do all four steps.

Hopefully I haven't forgotten any other details ...

EDIT: forgot to mention replacing the md5sum!

Last edited by pocm (2011-10-01 18:54:39)

Offline

#15 2011-10-01 20:20:27

R3V0LV3R
Member
Registered: 2011-10-01
Posts: 4

Re: ABS Linux Kernel - Failure While Downloading

Thanks, gentlemen, for the helpful advice.

Unfortunately, neither option worked for me, at least the way I did them.

stoat -

   - I put linux-3.0.tar.gz & patch-3.0.gz in .../builds/lib32-libaio (same directory as PKGBUILD)
   - changed the "source= " and md5sum as specified in your post

This gives me an error, something to the effect of 'not a URL and not a valid build file'.


pocm - the file http://ftp.nluug.nl/pub/os/Linux/system … .4.tar.bz2 is downloaded successfully but doesn't build the directory structure as the build process expects it to.

This is secondary and not really relevant to the topic at hand, but my original goal was to set up a mysql server in /usr/local, because the normal set-up instructions for mysql haven't permitted me to grant access to user "mysql" successfully.


Have the kernel.org mirrors been down for a full month now?

Last edited by R3V0LV3R (2011-10-02 01:36:23)

Offline

#16 2011-10-02 03:25:56

stoat
Member
Registered: 2011-08-07
Posts: 12

Re: ABS Linux Kernel - Failure While Downloading

R3V0LV3R wrote:

   - I put linux-3.0.tar.gz & patch-3.0.gz in .../builds/lib32-libaio (same directory as PKGBUILD)
   - changed the "source= " and md5sum as specified in your post

This gives me an error, something to the effect of 'not a URL and not a valid build file'.

You're working with a tar.gz file. I used the tar.bz2. If the specified file is not found in the working directory, makepkg will attempt to download it. Then, it needs to have a valid URL as a source in PKGBUILD. I only mentioned the idea to change the URL to the filename in PKGBUILD because I thought you were struggling with the wording of the URL in PKGBUILD. The idea was to get the file by any means possible (e.g. Firefox & Google, whatever), stick it in the abs working directory, and go. That's all. Otherwise, the same thing happens with the usual URL in source in PKGBUILD. If the file is already there, it skips the download and takes off.

R3V0LV3R wrote:

Have the kernel.org mirrors been down for a full month now?

Yes, about that for the kernel.org machines. The intrusion occurred not later than August 12th. It was discovered on August 29th. The chatter suggests kernel.org's return is "imminent".

Last edited by stoat (2011-10-02 03:28:12)

Offline

Board footer

Powered by FluxBB