sunrat wrote: ↑2024-05-05 11:10
As fabien said, Squeeze should not be connected to the internet.
You may be able to download any required packages on another system and install them locally.
So here is the secure but practical method (because it allows easy installations) that I found.
- Install Squeeze without configuring the network
- Create a directory for DVD ISOs
- Copy the ISOs you need
Code: Select all
$> ls -lh /var/aptiso/
total 8.8G
-rw-r--r-- 1 root root 4.4G Jul 19 2014 debian-6.0.10-amd64-DVD-1.iso
-rw-r--r-- 1 root root 4.4G Jul 19 2014 debian-6.0.10-amd64-DVD-2.iso
-rw-r--r-- 1 root root 974 Jul 20 2014 SHA256SUMS
- Create mount points
- Edit fstab
Code: Select all
$> cat /etc/fstab
proc /proc proc defaults 0 0
# / was on /dev/vda1 during installation
UUID=27ec377b-f2bf-4fea-86c1-1633b45a3415 / ext3 errors=remount-ro 0 1
# swap was on /dev/vda5 during installation
UUID=050a54f4-1a5e-4fe9-b0fa-05e667cccf74 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/var/aptiso/debian-6.0.10-amd64-DVD-1.iso /mnt/debDVD01 iso9660 ro,loop 0 0
/var/aptiso/debian-6.0.10-amd64-DVD-2.iso /mnt/debDVD02 iso9660 ro,loop 0 0
Code: Select all
$> mount
/dev/vda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/loop0 on /mnt/debDVD01 type iso9660 (ro)
/dev/loop1 on /mnt/debDVD02 type iso9660 (ro)
$> ls -l /mnt/debDVD01/
total 1220
-r--r--r-- 1 root root 27 19 juil. 2014 autorun.inf
dr-xr-xr-x 1 root root 2048 19 juil. 2014 css
lr-xr-xr-x 1 root root 1 19 juil. 2014 debian -> .
dr-xr-xr-x 1 root root 2048 19 juil. 2014 dists
dr-xr-xr-x 1 root root 4096 19 juil. 2014 doc
dr-xr-xr-x 1 root root 2048 19 juil. 2014 firmware
-r--r--r-- 1 root root 109968 15 juil. 2014 g2ldr
-r--r--r-- 1 root root 8192 15 juil. 2014 g2ldr.mbr
dr-xr-xr-x 1 root root 2048 19 juil. 2014 install
dr-xr-xr-x 1 root root 2048 19 juil. 2014 install.amd
dr-xr-xr-x 1 root root 4096 19 juil. 2014 isolinux
-r--r--r-- 1 root root 498198 19 juil. 2014 md5sum.txt
dr-xr-xr-x 1 root root 2048 19 juil. 2014 pics
dr-xr-xr-x 1 root root 2048 19 juil. 2014 pool
-r--r--r-- 1 root root 9487 19 juil. 2014 README.html
-r--r--r-- 1 root root 177942 19 juin 2014 README.mirrors.html
-r--r--r-- 1 root root 91218 19 juin 2014 README.mirrors.txt
-r--r--r-- 1 root root 398 19 juil. 2014 README.source
-r--r--r-- 1 root root 6005 19 juil. 2014 README.txt
-r--r--r-- 1 root root 319552 15 juil. 2014 setup.exe
dr-xr-xr-x 1 root root 2048 19 juil. 2014 tools
-r--r--r-- 1 root root 242 19 juil. 2014 win32-loader.ini
- edit /etc/apt/sources.list
Code: Select all
$> cat /etc/apt/sources.list
# deb cdrom:[Debian GNU/Linux 6.0.10 _Squeeze_ - Official amd64 DVD Binary-1 20140719-13:06]/ squeeze contrib main
#deb cdrom:[Debian GNU/Linux 6.0.10 _Squeeze_ - Official amd64 DVD Binary-1 20140719-13:06]/ squeeze contrib main
deb file:///mnt/debDVD01 squeeze main contrib
deb file:///mnt/debDVD02 squeeze main contrib
- update APT database
Code: Select all
#> apt-get update
Ign file: squeeze Release.gpg
Ign file:/mnt/debDVD01/ squeeze/contrib Translation-en
Ign file:/mnt/debDVD01/ squeeze/contrib Translation-en_US
Ign file:/mnt/debDVD01/ squeeze/main Translation-en
Ign file:/mnt/debDVD01/ squeeze/main Translation-en_US
Ign file: squeeze Release.gpg
Ign file:/mnt/debDVD02/ squeeze/contrib Translation-en
Ign file:/mnt/debDVD02/ squeeze/contrib Translation-en_US
Ign file:/mnt/debDVD02/ squeeze/main Translation-en
Ign file:/mnt/debDVD02/ squeeze/main Translation-en_US
Get:1 file: squeeze Release [4,249 B]
Get:2 file: squeeze Release [3,269 B]
Reading package lists... Done
- install packages
Code: Select all
#> apt-get -V install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
vim-runtime (7.2.445+hg~cb94c42c0e1a-1)
Suggested packages:
ctags ()
vim-doc ()
vim-scripts ()
The following NEW packages will be installed:
vim (7.2.445+hg~cb94c42c0e1a-1)
vim-runtime (7.2.445+hg~cb94c42c0e1a-1)
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/7,122 kB of archives.
After this operation, 27.8 MB of additional disk space will be used.
Do you want to continue [Y/n]?
WARNING: The following packages cannot be authenticated!
vim-runtime vim
Install these packages without verification [y/N]? y
Selecting previously deselected package vim-runtime.
(Reading database ... 24098 files and directories currently installed.)
Unpacking vim-runtime (from .../vim-runtime_7.2.445+hg~cb94c42c0e1a-1_all.deb) ...
Adding 'diversion of /usr/share/vim/vim72/doc/help.txt to /usr/share/vim/vim72/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim72/doc/tags to /usr/share/vim/vim72/doc/tags.vim-tiny by vim-runtime'
Selecting previously deselected package vim.
Unpacking vim (from .../vim_7.2.445+hg~cb94c42c0e1a-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up vim-runtime (2:7.2.445+hg~cb94c42c0e1a-1) ...
Processing /usr/share/vim/addons/doc
Setting up vim (2:7.2.445+hg~cb94c42c0e1a-1) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode.
Note the warning:
Code: Select all
WARNING: The following packages cannot be authenticated!
Therefore, it is important to verify the ISOs:
Code: Select all
$> sha256sum /var/aptiso/debian-6.0.10-amd64-DVD-1.iso
2603ef028f3419a0a671b316d9e6130e32788eb33711ac466f806aebc7877efd /var/aptiso/debian-6.0.10-amd64-DVD-1.iso
$> cat /var/aptiso/SHA256SUMS
2603ef028f3419a0a671b316d9e6130e32788eb33711ac466f806aebc7877efd debian-6.0.10-amd64-DVD-1.iso
69a49253bcd46a59fcccba109c16e06b57a390fa3d78cb9fcf69b6d328ff4925 debian-6.0.10-amd64-DVD-2.iso
ec401d5f5090bd7a22a4b247b8f92f5ccf591bcebada7341afe510c78615ca7e debian-6.0.10-amd64-DVD-3.iso
c5a570e541b0b64ee7f6d2241a49230bb75f176278dce60b65775b377c48496e debian-6.0.10-amd64-DVD-4.iso
1694c0755ac50b7e15c4025d41fdb617b3a7dc1548ed89f717a9826a17d506b2 debian-6.0.10-amd64-DVD-5.iso
d11ee505a721485eedd073bd1465072840fbe11e1cd944a82ada649e174f019e debian-6.0.10-amd64-DVD-6.iso
fdd3f540080485f975e6c0a7f7ac02fa7edb3ca8ea31372106297c2e5ccd9133 debian-6.0.10-amd64-DVD-7.iso
4ef96a4bbe612799e1dbe1766bf51b0b1f107e967b19b2e51e625f80dc255e14 debian-6.0.10-amd64-DVD-8.iso
23ca4662297bbf92e8d3e3fef114e65577b5707127826e197e286b35ffcfba4e debian-update-6.0.10-amd64-DVD-1.iso
eef54ef8eecd474c7adcfe3629fb69e92f9a2cf9e0c93fb056c67922ea64cea4 debian-update-6.0.10-amd64-DVD-2.iso
HTH