Apt-get :: Where is apt-get?



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

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

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.

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 :-)

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.

Next Page...
original here.