PDA

View Full Version : From Knoppix to pure debian !



nicoDVD2
01-24-2008, 08:15 PM
Hi, I'm running Knoppix in an old PC, 486/Celeron.

I have no mayor problems that I couldn't resolve, with help of many people.( :D )

But I read a post that tells me that Knoppix is not the BEST choice for a HD installation.

Is there any way to "convert" Knoppix in pure debain machine ??

I try to install , before knoppix, Debian , but NetInst and CDInst, causes an error when trying to setup the kernel, I never could pass "install base system" phase.
But knoppix , run and works fine.

I'm doing apt-get update, and apg-get upgrade every time.

Maybe, I just have to change some lines in sources.list ?

Can someone give me clue?
Best Regards
Nicolas from Argentina.

rusty
01-25-2008, 12:39 AM
It sounds as if you've already installed to HDD and successfully upgraded to the latest versions of the packages. If that's been working, I would leave it as it is. It is essentially Debian at this point.

You might try using aptitude instead of apt-get for package management. It can spot conflicts and recommends solutions. To install it type: apt-get install aptitude. If you plan on using Debian , a basic knowledge of the versioning and packaging system is good to have.

nicoDVD2
01-25-2008, 02:56 AM
Thanks rusty, but...

When, folowing your advice, try to install aptitude, I get this:


Setting up apt (0.7.9) ...
/usr/bin/apt-key: line 16: 4769 Segmentation fault $GPG_CMD --quiet --batch --keyring $ARCHIVE_KEYRING --export
4770 | $GPG --ignore-time-conflict --import
dpkg: error processing apt (--configure):
subprocess post-installation script returned error exit status 139
Errors were encountered while processing:
apt
E: Sub-process /usr/bin/dpkg returned an error code (1)


Is the first time a saw an error like this ....

what about this?
http://code.google.com/p/hakix/

Regards-

rusty
01-25-2008, 03:01 PM
Hmm, a little more info on your setup might help. You mentioned you were running on a 486/celeron. Which is it and what other hardware , memory, hard disk etc.

You could try:apt-get clean and try re-installing. you might need to run: apt -get -f install. Alternatively you could try installing a newer version by specifying the branch from which to install:
apt-get -s -t unstable install aptitude. The -s flag simulates what apt would do, you would run the command without it to actually perform the install.

You could consider upgrading all your packages to unstable, the reason being that since knoppix is a mixture of stable, unstable and testing versions of packages , subsequent upgrades usually lead to conflicts between versions, and upgrading or downgrading to a common branch can make things a little more manageable. However as those who warn against using knoppix as an debian installation source suggest, you might be better served by installing debian proper.

However it may be that the warnings of installing to HDD are starting to ring true.

hakix looks interesting, I'm not sure it will help as it seems to be geared towards etch.

nicoDVD2
01-25-2008, 06:28 PM
Hi again .

after doing apt-get -t unstable install aptitude
I still get the error.


root@linux:~# apt-get -t unstable install aptitude
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
aptitude-doc-en libclass-accessor-perl libcwidget1 libhtml-template-perl
libio-string-perl libparse-debianchangelog-perl libtimedate-perl
libxml-libxml-common-perl libxml-libxml-perl libxml-namespacesupport-perl
libxml-sax-perl libxml-simple-perl
Suggested packages:
debtags tasksel libcwidget-dev libipc-sharedcache-perl
The following NEW packages will be installed:
aptitude aptitude-doc-en libclass-accessor-perl libcwidget1
libhtml-template-perl libio-string-perl libparse-debianchangelog-perl
libtimedate-perl libxml-libxml-common-perl libxml-libxml-perl
libxml-namespacesupport-perl libxml-sax-perl libxml-simple-perl
0 upgraded, 13 newly installed, 0 to remove and 933 not upgraded.
4 not fully installed or removed.
Need to get 0B/3851kB of archives.
After this operation, 12.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up apt (0.7.10) ...
/usr/bin/apt-key: line 16: 10822 Segmentation fault $GPG_CMD --quiet --batch --keyring $ARCHIVE_KEYRING --export
10823 | $GPG --import
dpkg: error processing apt (--configure):
subprocess post-installation script returned error exit status 139
Errors were encountered while processing:
apt
E: Sub-process /usr/bin/dpkg returned an error code (1)


I also do apt-get -f install. :(

root@linux:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 874 not upgraded.
4 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up apt (0.7.10) ...
/usr/bin/apt-key: line 16: 12696 Segmentation fault $GPG_CMD --quiet --batch --keyring $ARCHIVE_KEYRING --export
12697 | $GPG --import
dpkg: error processing apt (--configure):
subprocess post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of apt-utils:
apt-utils depends on libapt-pkg-libc6.7-6-4.6; however:
Package libapt-pkg-libc6.7-6-4.6 is not installed.
Package apt which provides libapt-pkg-libc6.7-6-4.6 is not configured yet.
dpkg: error processing apt-utils (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapt-pkg-perl:
libapt-pkg-perl depends on libapt-pkg-libc6.7-6-4.6; however:
Package libapt-pkg-libc6.7-6-4.6 is not installed.
Package apt which provides libapt-pkg-libc6.7-6-4.6 is not configured yet.
dpkg: error processing libapt-pkg-perl (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of synaptic:
synaptic depends on libapt-inst-libc6.7-6-1.1; however:
Package libapt-inst-libc6.7-6-1.1 is not installed.
Package apt-utils which provides libapt-inst-libc6.7-6-1.1 is not configured yet.
synaptic depends on libapt-pkg-libc6.7-6-4.6; however:
Package libapt-pkg-libc6.7-6-4.6 is not installed.
Package apt which provides libapt-pkg-libc6.7-6-4.6 is not configured yet.
dpkg: error processing synaptic (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
apt
apt-utils
libapt-pkg-perl
synaptic

mhh... how bad is it ?


As I told in another post, I don't know why but debian installer didn't work.

This is my machine:


root@linux:~# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 6
model name : Celeron (Mendocino)
stepping : 5
cpu MHz : 467.771
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr up

root@linux:~# free -m
total used free shared buffers cached
Mem: 122 119 2 0 13 47
-/+ buffers/cache: 59 63
Swap: 454 5 449

$procinfo -f
Memory: Total Used Free Shared Buffers
Mem: 125428 122816 2612 0 13988
Swap: 465844 5136 460708
bogomips : 936.84

Another think to tell you is the actual sources.list, I see a lot of sources, maybe I can change some lines.
Some of them give me an http 404 error ...


root@linux:~# cat /etc/apt/sources.list
# /etc/apt/sources.list for Knoppix
# If you want to do a "full upgrade", you should first
# upgrade the Packages from Debian/unstable (KDE & Co.)
# before doing a (dist-)upgrade for Debian/testing.

# See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
# CDROMs are managed through the apt-cdrom tool.

# Security updates for "stable"
deb http://security.debian.org/ stable/updates main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free

# Stable
deb http://ftp.de.debian.org/pub/debian/ stable main contrib non-free

# the non-US branch doesn't exist anymore since sarge. -KK
# deb http://ftp.de.debian.org/pub/debian-non-US/ stable/non-US main contrib non-free

# Stable Sources
deb-src http://ftp.de.debian.org/pub/debian/ stable main contrib non-free
# deb-src http://ftp.de.debian.org/pub/debian-non-US/ stable/non-US main contrib non-free

# Testing
deb http://ftp.de.debian.org/pub/debian/ testing main contrib non-free
# deb http://ftp.de.debian.org/pub/debian-non-US/ testing/non-US main contrib non-free

# Testing Sources
deb-src http://ftp.de.debian.org/pub/debian/ testing main contrib non-free
# deb-src http://ftp.de.debian.org/pub/debian-non-US/ testing/non-US main contrib non-free

# Unstable
deb http://ftp.de.debian.org/debian/ unstable main contrib non-free
# deb http://ftp.de.debian.org/debian-non-US/ unstable/non-US main contrib non-free

# Unstable Sources
deb-src http://ftp.de.debian.org/debian/ unstable main contrib non-free
# deb-src http://ftp.de.debian.org/debian-non-US/ unstable/non-US main contrib non-free

# Experimental
deb http://ftp.de.debian.org/debian/ experimental main contrib non-free

# Experimental Sources
# deb-src http://ftp.de.debian.org/debian/ ../project/experimental main contrib non-free

# ndiswrapper source (disappeared, only source.tar available)
# deb http://ndiswrapper.sourceforge.net/debian/ ./

# KDE 3.5 (not in sarge)
# deb http://pkg-kde.alioth.debian.org/kde-3.5.0/ ./
# deb-src http://pkg-kde.alioth.debian.org/kde-3.5.0/ ./
# deb http://pkg-kde.alioth.debian.org/kde-3.4.1/ ./
# deb-src http://pkg-kde.alioth.debian.org/kde-3.4.1/ ./

# Wine
deb http://wine.sourceforge.net/apt/ binary/
# deb-src http://wine.sourceforge.net/apt/ source/

# Unichrome graphics driver
# deb http://www.physik.fu-berlin.de/~glaweh/debian/ unichrome/
# deb-src http://www.physik.fu-berlin.de/~glaweh/debian/ unichrome/

# NX stuff
# deb http://www.kalyxo.org/debian/ experimental main
# deb http://www.kalyxo.org/debian/ unstable main

# ndiswrapper
# deb http://rigtorp.se/debian/ unstable/
# deb-src http://rigtorp.se/debian/ unstable/

# Blades Repository (pppoeconf & co)
# deb http://people.debian.org/~blade/testing/ ./
# deb-src http://people.debian.org/~blade/testing/ ./

# deb cdrom:[Debian GNU/Linux 2.2 r3 _Potato_ - Official i386 Binary-1 (20010427)]/ unstable contrib main non-US/contrib non-US/main

# Knoppix special packages resource at LinuxTag HQ
# deb http://developer.linuxtag.net/knoppix/ ./
# deb-src http://developer.linuxtag.net/knoppix/ ./

# deb http://snapshot.debian.net/archive/ pool gcc
# deb-src http://snapshot.debian.net/archive/ pool gcc

# From the Kanotix archives
# deb http://kanotix.com/files/debian/ ./
# deb-src http://kanotix.com/files/debian/ ./

# NX Server
# deb http://debian.tu-bs.de/project/kanotix/unstable/ sid nx
# deb-src http://debian.tu-bs.de/project/kanotix/unstable/ sid nx

# NX Client (binary-only, non-free)
# deb http://kanotix.com/files/debian/ sid main contrib non-free

# Packages from ubuntu. CAUTION, they don't mix well with Debian
# deb http://de.archive.ubuntu.com/ubuntu/ hoary main universe multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ hoary main universe multiverse

# Unofficial packages, like JAVA
# deb ftp://ftp.debian-unofficial.org/debian/ stable main contrib non-free restricted
# deb-src ftp://ftp.debian-unofficial.org/debian/ stable main contrib non-free restricted
# deb ftp://ftp.debian-unofficial.org/debian/ testing main contrib non-free restricted
# deb-src ftp://ftp.debian-unofficial.org/debian/ testing main contrib non-free restricted
# deb ftp://ftp.debian-unofficial.org/debian/ unstable main contrib non-free restricted
# deb-src ftp://ftp.debian-unofficial.org/debian/ unstable main contrib non-free restricted

# Open-Xchange and JavaMail packages
# deb http://ox.cs.bme.hu/ox-stable/ sarge contrib

# Open-Xchange development version (currently 0.8.1.2-1) and JavaMail packages
# deb http://ox.cs.bme.hu/ox-devel/ sarge contrib

# Various Projects

# Thunderbird
deb http://people.debian.org/~asac/experimental/ ./
deb-src http://people.debian.org/~asac/experimental/ ./

# Beryl/Compiz from Ubuntu
# deb http://www.beerorkid.com/compiz/ dapper main
# deb-src http://www.beerorkid.com/compiz/ dapper main

# imu's Beryl-SVN Debian-unstable Repository
# GPG key: 81836EBF
deb http://download.tuxfamily.org/3v1deb/ debian-unstable beryl-svn
deb-src http://download.tuxfamily.org/3v1deb/ debian-unstable beryl-svn

# NX
deb http://sidux.com/debian/ sid nx
deb-src http://sidux.com/debian/ sid nx

# whereto - automatic detection of country/language
# http://www.iki.fi/karvinen/wheretero.html
# http://myy.helia.fi/~a0600207/terodeb

# Local FTP-KL
deb http://ftp.uni-kl.de/debian-local/ sid main

may be you can give me a "stable" or pure debian source.list

Best regards.

rusty
01-25-2008, 08:16 PM
mhh... how bad is it ?

Well, it's not good but try a couple things:

apt-get -t unstable install debian-keyring

apt-get -t unstable install install dpkg
then

apt-get -t unstable install apt

Your computer is a bit resource shy, and depending on what apps you plan on using you might want to check out something like Damnsmalllinux, http://damnsmalllinux.org/

Another distro worth looking at as a LiveCD to HDD is sidux http://sidux.com/

nicoDVD2
01-25-2008, 09:06 PM
well, I'm stucked.

Now I can't upgrade nothing.

allways tell me :

/usr/bin/apt-key: line 16: 26223 Segmentation fault $GPG_CMD --quiet --batch --keyring $ARCHIVE_KEYRING --export
26224 | $GPG --import
dpkg: error processing apt (--configure):
subprocess post-installation script returned error exit status 139


Is there any way to figure aout what's going on wrong ?

"2 not fully installed or removed."

can I rollback APT-KEY ?? or the entire apt?

Regards.
Thanks for your time.

rusty
01-26-2008, 04:15 PM
At this point you will have to rely on dpkg if you think it's worth the time.

Open a shell and type:


man dpkg

You will likely have to force the removal of apt and then install aptitude or reinstall apt from .debs that you manually download, for example
dpkg -P --force-depends apt

Which leaves you without apt-get. Got to http://packages.debian.org/sid/i386/apt/download

then try
dpkg -i apt_0.7.10_i386.deb

as root, from the directory that you downloaded the .deb to

You should then be able to download aptitude from http://packages.debian.org/sid/i386/aptitude/download

and use dpkg to install it.

Good Luck

nicoDVD2
01-26-2008, 08:18 PM
hi rusty,
yes I allready do that.

the problem was on the binary of gpg, so I download a gnupg packege and installed with dpkg -i ...
And it works !
I have a serius problems on the HD, and sometimes it hangs.

I really thank you for your time, this experience let me know a little more on Linux.

Best Regards
Nicolas