On Mon, Nov 07, 2005 at 01:05:19AM +0000, Albretch Mueller wrote:
> // __
> Your (Peter's) instructions broke at 4) 2.4 "apt-get update" and 5) because
> of the previous problem
I'm not sure I understand what you mean, but perhaps it would be possible to
download the java package directly and install it with dpkg? Everything else
should
then work without changes.
hth Peter
>
> 4) 2.4 Run apt-get update
> >apt-get update
> to update the lists of the available packages.
>
> // __
> sh-3.00# apt-get update
> E: Type 'non-free' is not known on line 40 in source list
> /etc/apt/sources.list
>
> * thing is that part of the statement wrap to the enext line. A one-liner
> fixed the problem
>
> // __
> sh-3.00# apt-get update
> Get:1 http://kanotix.com ./ Packages [42.4kB]
> Get:2 http://ftp.us.debian.org unstable/main Packages [3708kB]
> Err http://non-us.debian.org unstable/non-US/main Packages 404 Not Found
> Ign http://non-us.debian.org unstable/non-US/main Release
> Get:3 http://security.debian.org stable/updates/main Packages [139kB]
> Hit http://ndiswrapper.sourceforge.net ./ Packages
> Err http://non-us.debian.org unstable/non-US/contrib Packages 404 Not Found
> Ign http://non-us.debian.org unstable/non-US/contrib Release
> Err http://non-us.debian.org unstable/non-US/non-free Packages 404 Not
> Found
> Ign http://non-us.debian.org unstable/non-US/non-free Release
> Hit http://ftp.de.debian.org stable/main Packages
> Hit http://ftp.de.debian.org stable/main Release
> Ign http://ndiswrapper.sourceforge.net ./ Release
> Hit http://ftp.de.debian.org stable/contrib Packages
> Hit http://ftp.de.debian.org stable/contrib Release
> Hit http://ftp.de.debian.org stable/non-free Packages
> Hit http://ftp.de.debian.org stable/non-free Release
> Get:4 http://ftp.de.debian.org testing/main Packages [3410kB]
> Get:5 http://kanotix.com ./ Release [7964B]
> Get:6 http://security.debian.org stable/updates/main Release [110B]
> Hit http://security.debian.org stable/updates/contrib Packages
> Get:7 http://security.debian.org stable/updates/contrib Release [113B]
> Hit http://security.debian.org stable/updates/non-free Packages
> Get:8 http://security.debian.org stable/updates/non-free Release [114B]
> Hit http://security.debian.org testing/updates/main Packages
> Get:9 http://security.debian.org testing/updates/main Release [111B]
> Hit http://security.debian.org testing/updates/contrib Packages
> Get:10 http://security.debian.org testing/updates/contrib Release [114B]
> Hit http://security.debian.org testing/updates/non-free Packages
> Get:11 http://security.debian.org testing/updates/non-free Release [115B]
> Get:12 http://ftp.us.debian.org unstable/main Release [82B]
> Get:13 http://ftp.us.debian.org unstable/contrib Packages [60.3kB]
> Get:14 http://ftp.us.debian.org unstable/contrib Release [85B]
> Get:15 http://ftp.us.debian.org unstable/non-free Packages [67.6kB]
> Get:16 http://ftp.us.debian.org unstable/non-free Release [86B]
> Get:17 http://ftp.de.debian.org testing/main Release [81B]
> Get:18 http://ftp.de.debian.org testing/contrib Packages [48.8kB]
> Get:19 http://ftp.de.debian.org testing/contrib Release [84B]
> Get:20 http://ftp.de.debian.org testing/non-free Packages [56.0kB]
> Get:21 http://ftp.de.debian.org testing/non-free Release [85B]
> Get:22 http://ftp.de.debian.org unstable/main Packages [3708kB]
> Get:23 http://ftp.de.debian.org unstable/main Release [82B]
> Get:24 http://ftp.de.debian.org unstable/contrib Packages [60.3kB]
> Get:25 http://ftp.de.debian.org unstable/contrib Release [85B]
> Get:26 http://ftp.de.debian.org unstable/non-free Packages [67.6kB]
> Get:27 http://ftp.de.debian.org unstable/non-free Release [86B]
> Get:28 http://ftp.de.debian.org ../project/experimental/main Packages
> [218kB]
> Get:29 http://ftp.de.debian.org ../project/experimental/main Release [104B]
> Get:30 http://ftp.de.debian.org ../project/experimental/contrib Packages
> [1177B]
> Get:31 http://ftp.de.debian.org ../project/experimental/contrib Release
> [107B]
> Hit http://ftp.de.debian.org ../project/experimental/non-free Packages
> Get:32 http://ftp.de.debian.org ../project/experimental/non-free Release
> [108B]
> Fetched 11.6MB in 1m22s (140kB/s)
> Failed to fetch
> http://non-us.debian.org/debian-non-US/dists/unstable/non-US/main/binary-i386/Packages.gz
>
> 404 Not Found
> Failed to fetch
> http://non-us.debian.org/debian-non-US/dists/unstable/non-US/contrib/binary-i386/Packages.gz
>
> 404 Not Found
> Failed to fetch
> http://non-us.debian.org/debian-non-US/dists/unstable/non-US/non-free/binary-i386/Packages.gz
>
> 404 Not Found
> Reading Package Lists... Done
> E: Some index files failed to download, they have been ignored, or old ones
> used instead.
>
> // __
> 5) Install necessary packages
> It is now time to install the packages that allows for the creation of the
> deb archive of the Java installation file. And also fakeroot if one wishes
> to create deb archive as a regular user. Execute
>
> apt-get install java-package fakeroot
>
> // __
> sh-3.00# apt-get install java-package fakeroot
> Reading Package Lists... Done
> W: Couldn't stat source package list http://non-us.debian.org
> unstable/non-US/main Packages
> (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_unstable_non-US_main_binary-i386_Packages)
>
> - stat (2 No such file or directory)
> W: Couldn't stat source package list http://non-us.debian.org
> unstable/non-US/contrib Packages
> (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_unstable_non-US_contrib_binary-i386_Packages)
>
> - stat (2 No such file or directory)
> W: Couldn't stat source package list http://non-us.debian.org
> unstable/non-US/non-free Packages
> (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_unstable_non-US_non-free_binary-i386_Packages)
>
> - stat (2 No such file or directory)
> W: You may want to run apt-get update to correct these problems
> E: Invalid record in the preferences file, no Package header
>
> >From: [EMAIL PROTECTED]
> >To: debian-user@lists.debian.org
> >Subject: Re: symlink errors while installing java (Sun's jdk)
> >Date: Sun, 6 Nov 2005 20:52:36 +0100
> >MIME-Version: 1.0
> >Received: from murphy.debian.org ([146.82.138.6]) by mc9-f36.hotmail.com
> >with Microsoft SMTPSVC(6.0.3790.211); Sun, 6 Nov 2005 11:53:49 -0800
> >Received: from localhost (localhost [127.0.0.1])by murphy.debian.org
> >(Postfix) with QMQPid E6A542E20F; Sun, 6 Nov 2005 13:52:40 -0600 (CST)
> >Received: from mailout07.sul.t-online.com (mailout07.sul.t-online.com
> >[194.25.134.83])by murphy.debian.org (Postfix) with ESMTP id 6A0792DF04for
> ><debian-user@lists.debian.org>; Sun, 6 Nov 2005 13:52:38 -0600 (CST)
> >Received: from fwd34.aul.t-online.de by mailout07.sul.t-online.com with
> >smtp id 1EYqZC-0006r1-01; Sun, 06 Nov 2005 20:52:38 +0100
> >Received: from localhost.localdomain
> >([EMAIL PROTECTED])
> >by fwd34.sul.t-online.dewith esmtp id 1EYqZ9-0d8AVc0; Sun, 6 Nov 2005
> >20:52:35 +0100
> >Received: from peter by localhost.localdomain with local (Exim 4.54)id
> >1EYqZA-0001dN-DJfor debian-user@lists.debian.org; Sun, 06 Nov 2005
> >20:52:36 +0100
> >X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
> >Old-Return-Path: <[EMAIL PROTECTED]>
> >X-Original-To: debian-user@lists.debian.org
> >References: <[EMAIL PROTECTED]>
> >User-Agent: Mutt/1.5.11
> >X-ID: Vmy6CEZQreDtYskxnC7GUX3K2neCB4PxgbGVvrGiC-e9Lpt8zQg2rm
> >X-TOI-MSGID: f7ceaf24-b203-4de9-8295-639dc2ed48c9
> >X-Rc-Virus: 2005-08-24_01
> >X-Rc-Spam: 2005-09-11_01
> >X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on
> >murphy.debian.org
> >X-Spam-Level: X-Spam-Status: No, score=-2.8 required=4.0
> >tests=AWL,IMPRONONCABLE_2,LDOSUBSCRIBER,NO_REAL_NAME,URIBL_SBL
> >autolearn=no version=3.0.3
> >Resent-Message-ID: <[EMAIL PROTECTED]>
> >Resent-From: debian-user@lists.debian.org
> >X-Mailing-List: <debian-user@lists.debian.org> archive/latest/416244
> >X-Loop: debian-user@lists.debian.org
> >List-Id: <debian-user.lists.debian.org>
> >List-Post: <mailto:debian-user@lists.debian.org>
> >List-Help: <mailto:[EMAIL PROTECTED]>
> >List-Subscribe:
> ><mailto:[EMAIL PROTECTED]>
> >List-Unsubscribe:
> ><mailto:[EMAIL PROTECTED]>
> >Precedence: list
> >Resent-Sender: [EMAIL PROTECTED]
> >Resent-Date: Sun, 6 Nov 2005 13:52:40 -0600 (CST)
> >Return-Path: [EMAIL PROTECTED]
> >X-OriginalArrivalTime: 06 Nov 2005 19:53:49.0740 (UTC)
> >FILETIME=[CE6E2EC0:01C5E30B]
> >
> >On Sun, Nov 06, 2005 at 04:20:36PM +0000, Albretch Mueller wrote:
> >> Hi *,
> >>
> >> while installing java on an external drive using knoppix I got symlink
> >> errors each time a symlink was tried out:
> >>
> >> ./jdk-1_5_0_05-linux-i586.bin > file 2>&1
> >>
> >> after spacing out of the License Agreement and starting the installation
> >I
> >> got a total of actually 4 symlink errors, each and every time the
> >> compilation tried linking a file or directory
> >>
> >> I have tried so far comp.lang.java.programmer (search the newsgroup for:
> >> "symlink errors while installing java . . . "), and knoppix.net
> >> (http://www.knoppix.net/forum/viewtopic.php?t=21924) and no one has
> >> explained to me why this happens and how to troubleshoot this problem
> >>
> >> Also I find quite strange that when I search for these types of errors,
> >> namely "symlink error: Operation not permitted", (using google) I don't
> >> find anything other than my own post.
> >>
> >> What does this error actually mean?
> >>
> >> Why do these symlink errors happen?
> >>
> >> How do you fix them?
> >>
> >
> >These instructions are available somewhere on the web but seem to be hard
> >to find. In any case, they have worked great for me
> >and java installation goes without problems:
> >
> >1) Download the J2SE JDK from sun
> > Download the option under Linux Platform that says self-extracting file
> >(the one whose filename ends in .bin), not the RPM one.
> >
> > 2) 2.1 Add deb sources for unstable
> >
> > Add the following lines to your /etc/apt/sources.list file. You should
> >already have similar entries for testing there.
> >
> > # Unstable
> > deb http://ftp.us.debian.org/debian unstable main contrib non-free
> > deb http://non-us.debian.org/debian-non-US unstable/non-US main contrib
> >non-free
> >
> > 3) 2.2 Edit APT preferences file
> >
> > Edit the /etc/apt/preferences file. If you don't have that file, just
> >create a new one.
> >
> > Package: *
> > Pin: release a=testing
> > Pin-Priority: 650
> >
> > Package: *
> > Pin: release a=unstable
> > Pin-Priority: 600
> >
> > Pay attention to the priority values. The higher number the higher
> >priority.
> >
> > 4) 2.4 Run apt-get update
> > >apt-get update
> > to update the lists of the available packages.
> >
> >
> > 5) Install necessary packages
> >
> > It is now time to install the packages that allows for the creation of
> >the deb archive of the Java installation file. And also fakeroot if one
> >wishes to create deb archive as a regular user. Execute
> >
> > apt-get install java-package fakeroot
> >
> > 6) Create the Java deb package
> >
> > Then create the deb package of the Sun's Java installer by using
> >make-jpkg In this example the Java 1.5.0 JRE is used.
> > make-jpkg jre-1_5_0-linux-i586.bin (Works better as root)
> >
> > 7) If you are unsure, you can check your version of java-package by
> >issuing the following command
> >
> > apt-cache policy java-package | grep Installed
> >
> > Note: VErsion 0.17 of java-package is minimum required.
> >
> > 8) Install the Java deb package
> >
> > Install the just created deb package. Example:
> >
> > dpkg -i sun-j2sdk1.5_1.5.0+final_i386.deb
> >
> > Note: Name of JDK is sun-j2sdk1.5
> >
> >
> > 9) Now install package with Debian-specific things that corresponds to
> >the .deb created. Example:
> >
> > apt-get install sun-j2sdk1.5debian
> >
> >
> > 10)
> > Some dependency problem error messages
> >
> > If you get some error that says something about dependency problems
> >during the above commands, ignore them for now and just proceed with both
> >of the above commands.
> >
> > And after both above commands, execute
> >
> > apt-get -f install
> >
> > that should solve any dependency issues left.
> >
> > 11) Setup path etc
> >
> > in .bashrc
> > export
> >JAVA_HOME=/usr/lib/j2sdk1.5-sun/[EMAIL PROTECTED]:/usr/lib/j2sdk1.5-sun/bin$
> >
> >export PATH=$PATH:$JAVA_HOME
> >
> >
> >
> > HTH,
> > Peter
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >> // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> >> sh-3.00# whoami
> >> root
> >>
> >> sh-3.00# gcc --version
> >> gcc (GCC) 3.3.6 (Debian 1:3.3.6-7)
> >> Copyright (C) 2003 Free Software Foundation, Inc.
> >> This is free software; see the source for copying conditions. There is
> >NO
> >> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> >PURPOSE.
> >>
> >> sh-3.00# dmesg | grep -i 'linux version'
> >> Linux version 2.6.12 ([EMAIL PROTECTED]) (gcc-Version 3.3.6 (Debian
> >1:3.3.6-7))
> >> #2 SMP Tue Aug 9 23:20:52 CEST 2005
> >>
> >> Is there anyoher piece of info you need from me?
> >>
> >> ...
> >> creating: jdk1.5.0_05/jre/lib/i386/server/
> >> inflating: jdk1.5.0_05/jre/lib/i386/server/libjvm.so
> >> inflating: jdk1.5.0_05/jre/lib/i386/server/Xusage.txt
> >> linking: jdk1.5.0_05/jre/lib/i386/server/libjsig.so ->
> >> ../libjsig.so symlink error: Operation not permitted
> >>
> >> creating: jdk1.5.0_05/jre/lib/i386/client/
> >> inflating: jdk1.5.0_05/jre/lib/i386/client/libjvm.so
> >> inflating: jdk1.5.0_05/jre/lib/i386/client/Xusage.txt
> >> linking: jdk1.5.0_05/jre/lib/i386/client/libjsig.so ->
> >> ../libjsig.so symlink error: Operation not permitted
> >> ...
> >> creating: jdk1.5.0_05/jre/javaws/
> >> linking: jdk1.5.0_05/jre/javaws/javaws -> ../bin/javaws symlink
> >> error: Operation not permitted
> >> ...
> >> linking: jdk1.5.0_05/man/ja -> ja_JP.eucJP symlink error:
> >> Operation not permitted
> >> // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> >>
> >>
> >>
> >> --
> >> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> >> with a subject of "unsubscribe". Trouble? Contact
> >> [EMAIL PROTECTED]
> >>
> >
> >
> >--
> >To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> >with a subject of "unsubscribe". Trouble? Contact
> >[EMAIL PROTECTED]
> >
>
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
>
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]