Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ [1] 2 3 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Where is apt-get?, Error trying to run or restore< Next Oldest | Next Newest >
pdone Offline





Group: Members
Posts: 6
Joined: Feb. 2004
Posted: Feb. 20 2004,16:45 QUOTE

Hi

I'm new to DSL and also Debian/apt so please be gentle with me.

I've just booted my new DSL 0.6 CD and was under the impression that I could use apt-get, however I don't seem to have this. I read somewhere about running dpkg-restore first so I tried that but no luck. Am I wrong in assuming apt-get is included in the ISO?

Here's what I did...

Code Sample

damnsmall@box:~$ apt-get
bash: apt-get: command not found
damnsmall@box:~$ ls /etc/apt
ls: /etc/apt: No such file or directory
damnsmall@box:~$ sudo dpkg-restore
Grabbing the compressed dpkg database and programs...
Connecting to damnsmalllinux.org[65.218.1.33]:80
dpkg-install.tar 100% |*****************************| 940 KB 00:00 ETA
dpkg-install.sh
dpkg.tar.bz2
/usr/sbin/dpkg-restore: line 6: dpkg-install.sh: command not found
Updating apt-get
/usr/sbin/dpkg-restore: line 8: apt-get: command not found
All done
damnsmall@box:~$


What am I doing wrong?

(by the way, DSL is fantastic).

Cheers

Paul
Back to top
Profile PM 
pdone Offline





Group: Members
Posts: 6
Joined: Feb. 2004
Posted: Feb. 20 2004,23:13 QUOTE

I've been investigating further. There seems to be an error in the dpkg-restore script.

The line:

Code Sample
dpkg-install.sh


..should read...

Code Sample
./dpkg-install.sh


..however with even this change, the script still fails further on....

Code Sample

root@ttyp1[damnsmall]# ./dpkg-restore
Grabbing the compressed dpkg database and programs...
Connecting to damnsmalllinux.org[65.218.1.33]:80
dpkg-install.tar     100% |*****************************************************************************|   940 KB    00:00 ETA
dpkg-install.sh
dpkg.tar.bz2
etc
etc/apt
etc/apt/apt.conf
etc/apt/apt.conf.d
etc/apt/apt.conf.d/70debconf
etc/apt/sources.list
usr
usr/bin
usr/bin/dpkg-split
tar: usr/bin/dpkg-split: Read-only file system
Updating apt-get
./dpkg-restore: line 8: apt-get: command not found
All done


So apt-get and other files cannot be unpacked into the filesystem because part of the filesystem is mounted as read-only - I don't really understand how this script can work for other people unless it is because I am using the 'toram' boot option. Any ideas?

Cheers

Paul
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Feb. 21 2004,18:04 QUOTE

The dpkg-restore script will not work on a computer that is running DSL from the liveCD or from the "toram" option.

It will only work if you execute it after doing an hd-install.


However, there is another way to get the apt-get working on a computer that is running from the liveCD. Try my apt-get/synaptic install script:

http://damnsmalllinux.org/cgi-bin....ynaptic

It will let you use apt-get on a computer that is running from liveCD.

It should work on all 0.5.x versions of DSL.  It does not work on version 0.6 because some of the linux core programs were replaced with the "busybox" utility (to save disk space) and busybox does not have the full functionality of the original commands.

Good Luck.
Back to top
Profile PM 
Modrak Offline





Group: Members
Posts: 189
Joined: Dec. 2003
Posted: Feb. 22 2004,19:41 QUOTE

Oh my god...
Dear LAMER
you need to be root
so do "sudo dpkg-restore"

Try this joke
Code Sample
apt-get help
apt-get moo

____
Lamer doesn't do moo :-)
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Feb. 22 2004,20:15 QUOTE

Line 5 of his post says:

damnsmall@box:~$ sudo dpkg-restore


Perhaps one should actually READ the guy's post before calling him a LAMER.

Nice try though. Bonus unintended comedy points.
Back to top
Profile PM 
18 replies since Feb. 20 2004,16:45 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ [1] 2 3 4 >/
reply to topic new topic new poll
Quick Reply: Where is apt-get?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code