Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Difficulties while installing additional packages from .iso (USB stick) after successful stretch install

237 views
Skip to first unread message

sb...@secure.mailbox.org

unread,
Feb 6, 2016, 5:40:07 AM2/6/16
to
Hi list members,

I have successfully installed stretch from a usb stick onto which I had
downloaded the latest amd64 weekly-build DVD-1.iso and other necessary
init files.
Well, after the install process had finished, I rebooted from harddisk and
everything worked, but when I now try to use apt to install more files
FROM THE DVD.iso on the stick (not over the network), it tells me to
insert the cdrom:[DEBIAN_TESTING...DVD-iso-1], even when the USB
stick is already inserted in the slot - no, apt wants a cdrom (and that's
what the source.list indicates: cdrom.
It's an iso-hybrid as you know, but I can't find a way to tell apt to use
this very same USB stick (with the named ISO) from which the installing
process had been carried out.
When I put different forms of identifying the USB stick into the
sources.list apt says something like "there is no driver for that device
installed" or "there is no release file" (when I put
file://var/lib/apt/lists directory) and does not proceed. But the
installer correctly used this USB stick. I can't figure out how to work
around that, or what's going wrong. Do you have an idea?
I read the install.txt from beginning to end, but I couldn't find any
hints on this issue.

Thanks in advance.

Stephan

P.S. Please CC me as I'm not subscribed to the list.

Alex Mestiashvili

unread,
Feb 6, 2016, 6:10:05 AM2/6/16
to
I would mount the .iso image and point the apt to the mount point:

mount -o loop -t iso9660 /mnt/usb_stick/debian.iso /mnt/cdrom

Chris Bannister

unread,
Feb 7, 2016, 8:20:04 AM2/7/16
to
On Sat, Feb 06, 2016 at 11:06:56AM +0100, sb...@secure.mailbox.org wrote:
> Hi list members,
>
> I have successfully installed stretch from a usb stick onto which I had
> downloaded the latest amd64 weekly-build DVD-1.iso and other necessary
> init files.
> Well, after the install process had finished, I rebooted from harddisk and
> everything worked, but when I now try to use apt to install more files
> FROM THE DVD.iso on the stick (not over the network), it tells me to
> insert the cdrom:[DEBIAN_TESTING...DVD-iso-1], even when the USB
> stick is already inserted in the slot - no, apt wants a cdrom (and that's
> what the source.list indicates: cdrom.
> It's an iso-hybrid as you know, but I can't find a way to tell apt to use
> this very same USB stick (with the named ISO) from which the installing
> process had been carried out.
> When I put different forms of identifying the USB stick into the
> sources.list apt says something like "there is no driver for that device
> installed" or "there is no release file" (when I put
> file://var/lib/apt/lists directory) and does not proceed. But the

Have a look at 'man sources.list'

e.g. in examples it has deb file:/home/jason/debian unstable main contrib non-free
note it's not 'file://'

Please inform the list of your progress, I too would like to know the
solution for future reference.

--
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the
oppressing." --- Malcolm X

Alex Mestiashvili

unread,
Feb 7, 2016, 9:10:06 AM2/7/16
to
On 02/07/2016 02:15 PM, Chris Bannister wrote:
> On Sat, Feb 06, 2016 at 11:06:56AM +0100, sb...@secure.mailbox.org wrote:
>> Hi list members,
>>
>> I have successfully installed stretch from a usb stick onto which I had
>> downloaded the latest amd64 weekly-build DVD-1.iso and other necessary
>> init files.
>> Well, after the install process had finished, I rebooted from harddisk and
>> everything worked, but when I now try to use apt to install more files
>> FROM THE DVD.iso on the stick (not over the network), it tells me to
>> insert the cdrom:[DEBIAN_TESTING...DVD-iso-1], even when the USB
>> stick is already inserted in the slot - no, apt wants a cdrom (and that's
>> what the source.list indicates: cdrom.
>> It's an iso-hybrid as you know, but I can't find a way to tell apt to use
>> this very same USB stick (with the named ISO) from which the installing
>> process had been carried out.
>> When I put different forms of identifying the USB stick into the
>> sources.list apt says something like "there is no driver for that device
>> installed" or "there is no release file" (when I put
>> file://var/lib/apt/lists directory) and does not proceed. But the
> Have a look at 'man sources.list'
>
> e.g. in examples it has deb file:/home/jason/debian unstable main contrib non-free
> note it's not 'file://'
>
> Please inform the list of your progress, I too would like to know the
> solution for future reference.
>

There is a tool called apt-cdrom, but it didn't work the way I wanted.
Here is the thread explaining the procedure of adding a local iso image
to sources.list:
https://lists.debian.org/debian-user/2014/05/msg00562.html

Curt

unread,
Feb 7, 2016, 1:00:07 PM2/7/16
to
On 2016-02-07, Alex Mestiashvili <al...@biotec.tu-dresden.de> wrote:
>>
>> Please inform the list of your progress, I too would like to know the
>> solution for future reference.
>>
>
> There is a tool called apt-cdrom, but it didn't work the way I wanted.
> Here is the thread explaining the procedure of adding a local iso image
> to sources.list:
> https://lists.debian.org/debian-user/2014/05/msg00562.html
>
>

I was reading that you might use apt-cdrom and when asked for the cdrom,
mount the usb stick at the appropriate mount point (whereever that
is--/media/cdrom0 here on Squeeze).

--
Hypertext--or should I say the ideology of hypertext?--is ultrademocratic and
so entirely in harmony with the demagogic appeals to cultural democracy that
accompany (and distract one’s attention from) the ever-tightening grip of plutocratic
capitalism. - Susan Sontag

Brian

unread,
Feb 7, 2016, 2:10:07 PM2/7/16
to
On Mon 08 Feb 2016 at 02:15:31 +1300, Chris Bannister wrote:

> On Sat, Feb 06, 2016 at 11:06:56AM +0100, sb...@secure.mailbox.org wrote:
> > Hi list members,
> >
> > I have successfully installed stretch from a usb stick onto which I had
> > downloaded the latest amd64 weekly-build DVD-1.iso and other necessary
> > init files.
> > Well, after the install process had finished, I rebooted from harddisk and
> > everything worked, but when I now try to use apt to install more files
> > FROM THE DVD.iso on the stick (not over the network), it tells me to
> > insert the cdrom:[DEBIAN_TESTING...DVD-iso-1], even when the USB
> > stick is already inserted in the slot - no, apt wants a cdrom (and that's
> > what the source.list indicates: cdrom.
> > It's an iso-hybrid as you know, but I can't find a way to tell apt to use
> > this very same USB stick (with the named ISO) from which the installing
> > process had been carried out.
> > When I put different forms of identifying the USB stick into the
> > sources.list apt says something like "there is no driver for that device
> > installed" or "there is no release file" (when I put
> > file://var/lib/apt/lists directory) and does not proceed. But the
>
> Have a look at 'man sources.list'
>
> e.g. in examples it has deb file:/home/jason/debian unstable main contrib non-free
> note it's not 'file://'
>
> Please inform the list of your progress, I too would like to know the
> solution for future reference.

The OP has DVD-1 on a USB stick. We will work with that.

First adjust sources.list to only have

deb [ trusted=yes ] file:/media/DVD-1/ jessie main

'trusted=yes' avoids being warned that a package cannot be authenticated.
You do trust the ISO you downloaded, don't you?

Make the DVD-1 directory:

mkdir /media/DVD-1/

and insert the USB stick. Obtain the device name from dmesg or lsblk.
Then (for example)

mount /dev/sdg1 /media/DVD-1/

It is now a matter of 'apt-get update' and 'apt-get install'.

How about giving this a quick whirl and a report to add to other users'
future references?

sb...@secure.mailbox.org

unread,
Feb 7, 2016, 4:00:05 PM2/7/16
to
Hi,

> Chris Bannister <cbann...@slingshot.co.nz> hat am 7. Februar 2016 um
> 14:15 geschrieben:
>
>
> On Sat, Feb 06, 2016 at 11:06:56AM +0100, sb...@secure.mailbox.org
> wrote:

> > When I put different forms of identifying the USB stick into the
> > sources.list apt says something like "there is no driver for that
> > device
> > installed" or "there is no release file" (when I put
> > file://var/lib/apt/lists directory) and does not proceed. But the
>
> Have a look at 'man sources.list'
>
> e.g. in examples it has deb file:/home/jason/debian unstable main
> contrib non-free
> note it's not 'file://'
>
> Please inform the list of your progress, I too would like to know the
> solution for future reference.

thanks, below you'll find the results of what I have tried so far. I'm now
at the apt-cdrom utility but the first results aren't the desired ones, I
keep on trying, but just wanted to give you an answer the same day.

I wonder why the USB stick after the installation and the reboot wasn't
recognized automatically as an apt source. He had been there during
installation. There are two similar lines in apt source (referring to the
DVD.iso) being the only difference that one ends with "contrib main" the
other one with "main contrib". These lines were added by the installer
during installation.

I will keep you-up-to date about my attempts. I hope I'll have it resolved
soon.

Thanks

Stephan

---------
usb stick mounted as cdrom using "disks" utility
apt sources list (indicated in synaptic)
cdrom:[Debian GNU/Linux testing _Stretch_ - Official Snapshot amd64 DVD
Binary-1 20160201-16:47]/ stretch main contrib

W: The repository 'cdrom://[Debian GNU/Linux testing _Stretch_ - Official
Snapshot amd64 DVD Binary-1 20160201-16:47] stretch Release' does not have
a Release file.
-----------------
usb stick mounted as cdrom using "disks" utility
apt sources list (indicated in synaptic)
cdrom:[Debian GNU/Linux testing _Stretch_ - Official Snapshot amd64 DVD
Binary-1 20160201-16:47]/ stretch contrib main
W: The repository 'cdrom://[Debian GNU/Linux testing _Stretch_ - Official
Snapshot amd64 DVD Binary-1 20160201-16:47] stretch Release' does not have
a Release file.
W: Data from such a repository can't be authenticated and is therefore
potentially dangerous to use.
W: See apt-secure(8) manpage for repository creation and user
configuration details.
W: Symlinking final file
/var/lib/apt/lists/Debian%20GNU_Linux%20testing%20%5fStretch%5f%20-%20Official%20Snapshot%20amd64%20DVD%20Binary-1%2020160201-16:47_dists_stretch_main_binary-amd64_Packages
back to
/var/lib/apt/lists/partial/Debian%20GNU_Linux%20testing%20%5fStretch%5f%20-%20Official%20Snapshot%20amd64%20DVD%20Binary-1%2020160201-16:47_dists_stretch_main_binary-amd64_Packages.xz
failed - pkgAcqIndex::StageDownloadDone (17: The file already exists)
W: Symlinking final file
/var/lib/apt/lists/Debian%20GNU_Linux%20testing%20%5fStretch%5f%20-%20Official%20Snapshot%20amd64%20DVD%20Binary-1%2020160201-16:47_dists_stretch_main_i18n_Translation-de%5fDE
back to
/var/lib/apt/lists/partial/Debian%20GNU_Linux%20testing%20%5fStretch%5f%20-%20Official%20Snapshot%20amd64%20DVD%20Binary-1%2020160201-16:47_dists_stretch_main_i18n_Translation-de%5fDE.xz
failed - pkgAcqIndex::StageDownloadDone (17: The file already exists)
[...some 20 symlinking messages I have snipped for better readability]
W: Symlinking final file
/var/lib/apt/lists/Debian%20GNU_Linux%20testing%20%5fStretch%5f%20-%20Official%20Snapshot%20amd64%20DVD%20Binary-1%2020160201-16:47_dists_stretch_main_i18n_Translation-de
back to
/var/lib/apt/lists/partial/Debian%20GNU_Linux%20testing%20%5fStretch%5f%20-%20Official%20Snapshot%20amd64%20DVD%20Binary-1
---
usb stick still being mounted as cdrom, using file scheme
apt sources list (indicated in synaptic)
file:/media/cdrom0/debian-testing-amd64-DVD-1.iso/

The repository 'file:/media/cdrom0/debian-testing-amd64-DVD-1.iso stretch
Release' does not have a Release file.Data from such a repository can't be
authenticated and is therefore potentially dangerous to use.See
apt-secure(8) manpage for repository creation and user configuration
details.Failed to fetch
file:/media/cdrom0/debian-testing-amd64-DVD-1.iso/dists/stretch/main/binary-amd64/Packages

---
usb stick mounted as usb stick (again) at the original mountpoint
apt sources list (indicated in synaptic)
file:/media/xxxx-yyyy stretch Release' does not have a Release file
stretch main contrib
The repository 'file:/media/xxxx-yyyy stretch Release' does not have a
Release file.Data from such a repository can't be authenticated and is
therefore potentially dangerous to use.See apt-secure(8) manpage for
repository creation and user configuration details.Failed to fetch
file:/media/xxxx-yyyy/dists/stretch/contrib/binary-amd64/Packages

Andrew M.A. Cater

unread,
Feb 7, 2016, 6:10:04 PM2/7/16
to
I think there may be a problem in reading the USB stick if you just used dd to write a DVD1 image to USB.

You may be able to loop mount the USB stick as a DVD image at which point you can pick up files from inside the DVD
or mount it as a source to apt-get update from.

I've got one next door that I prepared earlier - I may give it a go to see what can be done :)

All the best,

Andyc

sb...@secure.mailbox.org

unread,
Feb 8, 2016, 9:40:05 AM2/8/16
to
Hi,


I have made an all-in-one mail to the list as I'm not subscribed (Chris
let me know in PM that there are messages sent to the list only, thanks,
Chris), this keeps things simple and concise. I hope you don't mind.

--------------------------------------------------------------------
(Proceeding according to Alex' message
(https://lists.debian.org/debian-user/2016/02/msg00129.html) link to mail
archives https://lists.debian.org/debian-user/2014/05/msg00562.html

root@mymachine:~# LC_ALL=C apt-cdrom -d
/media/cdrom/debian-testing-amd64-DVD-1.iso/ -mn ident
Using CD-ROM mount point /media/cdrom/debian-testing-amd64-DVD-1.iso/
Identifying... [3abc47568bdd7e0b8c26d87fe7de50eb-2]
Stored label:
root@mymachine:~# LC_ALL=C apt-cdrom -d
/media/cdrom/debian-testing-amd64-DVD-1.iso/ add
Using CD-ROM mount point /media/cdrom/debian-testing-amd64-DVD-1.iso/
Unmounting CD-ROM...
Waiting for disc...
Please insert a Disc in the drive and press [Enter]
Mounting CD-ROM...
Identifying... [3abc47568bdd7e0b8c26d87fe7de50eb-2]
Scanning disc for index files...
Found 0 package indexes, 0 source indexes, 0 translation indexes and 0
signatures
E: Unable to locate any package files, perhaps this is not a Debian Disc
or the wrong architecture?
E: No CD-ROM could be auto-detected or found using the default mount
point.
You may try the --cdrom option to set the CD-ROM mount point.
See 'man apt-cdrom' for more information about the CD-ROM auto-detection
and mount point.


-----
Brian (https://lists.debian.org/debian-user/2016/02/msg00137.html

sources list (only one entry, the following)
deb [ trusted=yes ] file:/media/cdrom/debian-testing-amd64-DVD-1.iso/
stretch main
DVD directory was already there and mounted
mount /dev/sdb1 /media/cdrom/debian-testing-amd64-DVD-1.iso/
apt-get update
Failed to fetch
file:/media/cdrom/debian-testing-amd64-DVD-1.iso/dists/stretch/main/binary-amd64/Packages
File not found -
/media/cdrom/debian-testing-amd64-DVD-1.iso/dists/stretch/main/binary-amd64/Packages
(2: File or directory not found) Some index files failed to download. They
have been ignored, or old ones used instead.

-----

Andyc (https://lists.debian.org/debian-user/2016/02/msg00145.html)

mkdir /media/7825-FBEA
less /etc/fstab
/dev/disk/by-id/usb-Generic_Flash_Disk_3F27C183-0:0-part1 /media/7825-FBEA
auto nosuid,nodev,nofail,noauto,x-gvfs-show 0 0
sources.list
deb [ trusted=yes ] file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso
stretch main contrib
apt-get update
Get:1 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch
InRelease
Ign:1 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch
InRelease
Get:2 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch Release
Ign:2 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch Release
Get:3 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
amd64 Packages
Ign:3 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
amd64 Packages
Get:4 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
all Packages
Ign:4 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
all Packages
Get:5 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Ign:5 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Get:6 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de
Ign:6 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de
Get:7 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de_DE
Ign:7 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de_DE
Get:3 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
amd64 Packages
Ign:3 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
amd64 Packages
Get:4 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
all Packages
Ign:4 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
all Packages
Get:5 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Ign:5 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Get:6 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de
Ign:6 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de
Get:7 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de_DE
Ign:7 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de_DE
Get:3 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
amd64 Packages
Ign:3 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
amd64 Packages
Get:4 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
all Packages
Ign:4 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
all Packages
Get:5 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Ign:5 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Get:6 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de
Ign:6 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de
Get:7 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de_DE
Ign:7 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de_DE
Get:3 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
amd64 Packages
Ign:3 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
amd64 Packages
Get:4 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
all Packages
Ign:4 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
all Packages
Get:5 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Ign:5 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Get:6 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de
Ign:6 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de
Get:7 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de_DE
Ign:7 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de_DE
Get:3 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
amd64 Packages
Ign:3 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
amd64 Packages
Get:4 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
all Packages
Ign:4 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
all Packages
Get:5 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Ign:5 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Get:6 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de
Ign:6 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de
Get:7 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de_DE
Ign:7 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
Translation-de_DE
Get:3 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
amd64 Packages
Err:3 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
amd64 Packages
File not found -
/media/7825-FBEA/debian-testing-amd64-DVD-1.iso/dists/stretch/main/binary-amd64/Packages
(20: Not a directory)
Get:4 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
all Packages
Ign:4 file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso stretch/main
all Packages
W: Failed to fetch
file:/media/7825-FBEA/debian-testing-amd64-DVD-1.iso/dists/stretch/main/binary-amd64/Packages
File not found -
/media/7825-FBEA/debian-testing-amd64-DVD-1.iso/dists/stretch/main/binary-amd64/Packages
(20: Not a directory)
E: Some index files failed to download. They have been ignored, or old
ones used instead.
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily
unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is
another process using it?

------------
So, what's really astonishing is the fact that I'm logged in as root and
"could not get lock".
So, I guess that it is apt that's lacking necessary privileges here, but
it's just a guess.

I'll keep on trying...,now, again the loop mount I tried earlier as Alex
told me, but unfortunately it didn't work. Maybe I have made a mistake.
Thanks Andyc, and thanks to all of you, curty, Brian, Chris, Alex and
whoever I have omitted.

Stephan

Brian

unread,
Feb 8, 2016, 2:00:06 PM2/8/16
to
On Mon 08 Feb 2016 at 15:12:21 +0100, sb...@secure.mailbox.org wrote:

> Brian (https://lists.debian.org/debian-user/2016/02/msg00137.html
>
> sources list (only one entry, the following)
> deb [ trusted=yes ] file:/media/cdrom/debian-testing-amd64-DVD-1.iso/
> stretch main
> DVD directory was already there and mounted
> mount /dev/sdb1 /media/cdrom/debian-testing-amd64-DVD-1.iso/
> apt-get update
> Failed to fetch
> file:/media/cdrom/debian-testing-amd64-DVD-1.iso/dists/stretch/main/binary-amd64/Packages
> File not found -
> /media/cdrom/debian-testing-amd64-DVD-1.iso/dists/stretch/main/binary-amd64/Packages
> (2: File or directory not found) Some index files failed to download. They
> have been ignored, or old ones used instead.

This works with a Jessie DVD-1. The Stretch DVD has the same structure.

ls -l /media/cdrom/debian-testing-amd64-DVD-1.iso/dists/stretch/main/binary-amd64/

should show Packages.gz.

Comment out the sources.list entry and do 'apt-get update'; lock and
/partial should now be the only files in /var/lib/apt/lists. /partial
should be empty. Also do 'apt-get clean'.

Now revert the commenting out and proceed with 'apt-get update'.

sb...@secure.mailbox.org

unread,
Feb 8, 2016, 7:40:05 PM2/8/16
to
Hi,
> Brian <ad...@cityscape.co.uk> hat am 8. Februar 2016 um 19:50
> geschrieben:
>
>
> On Mon 08 Feb 2016 at 15:12:21 +0100, sb...@secure.mailbox.org wrote:
[...trimming the old message...]
>
> This works with a Jessie DVD-1. The Stretch DVD has the same structure.
>
> ls -l
> /media/cdrom/debian-testing-amd64-DVD-1.iso/dists/stretch/main/binary-amd64/
>
> should show Packages.gz.
>
> Comment out the sources.list entry and do 'apt-get update'; lock and
> /partial should now be the only files in /var/lib/apt/lists. /partial
> should be empty. Also do 'apt-get clean'.
>
> Now revert the commenting out and proceed with 'apt-get update'.

Thanks, Brian, I commented out the entry in the sources.list file as you
proposed, but in my case it did not work. :-( Remember that I have a USB
stick with an DVD.iso, I do not have a real DVD

root@mymachine:~# LC_ALL=C cd /var/lib/apt/lists
root@mymachine:/var/lib/apt/lists# LC_ALL=C ls -l
total 4
-rw-r----- 1 root root 0 Feb 5 14:41 lock
drwx------ 2 _apt root 4096 Feb 8 23:47 partial
root@mymachine:/var/lib/apt/lists# LC_ALL=C cd /var/lib/apt/lists/partial
root@mymachine:/var/lib/apt/lists/partial# LC_ALL=C ls -l
total 0
root@mymachine:/var/lib/apt/lists/partial# cd
root@mymachine:~# LC_ALL=C apt-get clean
root@mymachine:~# LC_ALL=C apt-get update
Get:1 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch InRelease
Ign:1 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch InRelease
Get:2 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch Release
Ign:2 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch Release
Get:3 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main amd64
Packages
Ign:3 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main amd64
Packages
Get:4 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main all
Packages
Ign:4 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main all
Packages
Get:5 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Ign:5 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Get:3 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main amd64
Packages
Ign:3 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main amd64
Packages
Get:4 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main all
Packages
Ign:4 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main all
Packages
Get:5 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Ign:5 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Get:3 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main amd64
Packages
Ign:3 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main amd64
Packages
Get:4 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main all
Packages
Ign:4 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main all
Packages
Get:5 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Ign:5 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Get:3 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main amd64
Packages
Ign:3 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main amd64
Packages
Get:4 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main all
Packages
Ign:4 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main all
Packages
Get:5 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Ign:5 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Get:3 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main amd64
Packages
Ign:3 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main amd64
Packages
Get:4 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main all
Packages
Ign:4 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main all
Packages
Get:5 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Ign:5 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main
Translation-en
Get:3 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main amd64
Packages
Err:3 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main amd64
Packages
File not found -
/media/cdrom/debian-testing-amd64-DVD-1.iso/dists/stretch/main/binary-amd64/Packages
(2: No such file or directory)
Get:4 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main all
Packages
Ign:4 file:/media/cdrom/debian-testing-amd64-DVD-1.iso stretch/main all
Packages
Reading package lists... Done
W: Failed to fetch
file:/media/cdrom/debian-testing-amd64-DVD-1.iso/dists/stretch/main/binary-amd64/Packages
File not found -
/media/cdrom/debian-testing-amd64-DVD-1.iso/dists/stretch/main/binary-amd64/Packages
(2: No such file or directory)
E: Some index files failed to download. They have been ignored, or old
ones used instead.

Then I took a closer look at the directory structure on the USB stick, and
look

root@mymachine:/media/cdrom# LC_ALL=C ls -l
total 4
drwxr-xr-x 3 root root 4096 Feb 9 00:30 debian-testing-amd64-DVD-1.iso
root@mymachine:/media/cdrom# cd
/media/cdrom/debian-testing-amd64-DVD-1.iso
root@mymachine:/media/cdrom/debian-testing-amd64-DVD-1.iso# LC_ALL=C ls -l

total 16
drwxr-xr-x 2 root root 16384 Jan 1 1970 debian-testing-amd64-DVD-1.iso
root@mymachine:/media/cdrom/debian-testing-amd64-DVD-1.iso# cd
/media/cdrom/debian-testing-amd64-DVD-1.iso/debian-testing-amd64-DVD-1.iso
root@mymachine:/media/cdrom/debian-testing-amd64-DVD-1.iso/debian-testing-amd64-DVD-1.iso#
LC_ALL=C ls -l
total 3889184
-rwxr-xr-x 1 root root 72011 Feb 4 00:36 SHA256SUMS
-rwxr-xr-x 1 root root 1461 Feb 4 00:58 SHA256SUMS-iso
-rwxr-xr-x 1 root root 819 Feb 4 00:58 SHA256SUMS.sign
-rwxr-xr-x 1 root root 2421 Feb 4 00:59 SHA512SUMS
-rwxr-xr-x 1 root root 819 Feb 4 00:59 SHA512SUMS.sign
-rwxr-xr-x 1 root root 3968434176 Feb 1 17:49
debian-testing-amd64-DVD-1.iso
-rwxr-xr-x 1 root root 10306917 Feb 4 00:25 initrd.gz
-r-xr-xr-x 1 root root 32256 Feb 4 00:02 ldlinux.sys
-rwxr-xr-x 1 root root 42 Feb 4 02:58 syslinux.cfg
-rwxr-xr-x 1 root root 3557264 Feb 4 00:24 vmlinuz
root@mymachine:/media/cdrom/debian-testing-amd64-DVD-1.iso/debian-testing-amd64-DVD-1.iso#
cd
/media/cdrom/debian-testing-amd64-DVD-1.iso/debian-testing-amd64-DVD-1.iso/debian-testing-amd64-DVD-1.iso/

Strange, is that the same on your Jessie DVD? I downloaded it from what
turned out to be a secondary mirror and I saved the download details.
Maybe I made a mistake in which directory I downloaded it...
I tried to adjust the sources.list but at the moment it hasn't worked.

Thanks
Stephan

Brian

unread,
Feb 9, 2016, 5:50:06 AM2/9/16
to
On Tue 09 Feb 2016 at 01:22:49 +0100, sb...@secure.mailbox.org wrote:

> Hi,
> > Brian <ad...@cityscape.co.uk> hat am 8. Februar 2016 um 19:50
> > geschrieben:
> >
> > This works with a Jessie DVD-1. The Stretch DVD has the same structure.
> >
> > ls -l
> > /media/cdrom/debian-testing-amd64-DVD-1.iso/dists/stretch/main/binary-amd64/
> >
> > should show Packages.gz.
> >
> > Comment out the sources.list entry and do 'apt-get update'; lock and
> > /partial should now be the only files in /var/lib/apt/lists. /partial
> > should be empty. Also do 'apt-get clean'.
> >
> > Now revert the commenting out and proceed with 'apt-get update'.
>
> Thanks, Brian, I commented out the entry in the sources.list file as you
> proposed, but in my case it did not work. :-( Remember that I have a USB
> stick with an DVD.iso, I do not have a real DVD

My assumption (incorrect) was that the ISO had been put on the stick
using 'cp debian.iso /dev/sdX' as described at

https://www.debian.org/releases/stable/i386/ch04s03.html.en#usb-copy-isohybrid

It appears you have used the less common hard disk method of booting
with a separate kernel and initrd. The isohybrid nature of the ISO is
immaterial in this case.

If you stay with the present stick mount the partition the ISO is on:

mount /dev/sdXn /media/cdrom

Access the contents of the ISO by mounting it with

mount /media/cdrom/debian-testing-amd64-DVD-1.iso /mnt

In sources.list have

deb file:/mnt/debian stretch main contrib

sb...@secure.mailbox.org

unread,
Feb 9, 2016, 7:10:05 AM2/9/16
to
Hi,
> Brian <ad...@cityscape.co.uk> hat am 9. Februar 2016 um 11:40
> geschrieben:
>
>
> On Tue 09 Feb 2016 at 01:22:49 +0100, sb...@secure.mailbox.org wrote:
>
> > Hi,
> > > Brian <ad...@cityscape.co.uk> hat am 8. Februar 2016 um 19:50
> > > geschrieben:
> > >
[...]
> My assumption (incorrect) was that the ISO had been put on the stick
> using 'cp debian.iso /dev/sdX' as described at
>
>
> https://www.debian.org/releases/stable/i386/ch04s03.html.en#usb-copy-isohybrid
>
> It appears you have used the less common hard disk method of booting
> with a separate kernel and initrd. The isohybrid nature of the ISO is
> immaterial in this case.
>
> If you stay with the present stick mount the partition the ISO is on:
>
> mount /dev/sdXn /media/cdrom
>
> Access the contents of the ISO by mounting it with
>
> mount /media/cdrom/debian-testing-amd64-DVD-1.iso /mnt
>
> In sources.list have
>
> deb file:/mnt/debian stretch main contrib

Brian, the first good news: You're a crack troubleshot! That's where it
was at! I'm sorry not to have mentioned that I chose the more manual
install procedure, just to force me to learn more about installing
GNU/Linux. This USB boot stick procedure is described in the Installation
manual in section 4.3.3. But what I hadn't considered was that I'd have to
keep it in mind at the moment of installing additional packages.

Now the other good news:

LC_ALL=C apt-get update
Get:1 file:/mnt/debian stretch InRelease
Ign:1 file:/mnt/debian stretch InRelease
Get:2 file:/mnt/debian stretch Release [18.7 kB]
Get:2 file:/mnt/debian stretch Release [18.7 kB]
Get:3 file:/mnt/debian stretch Release.gpg
Ign:3 file:/mnt/debian stretch Release.gpg
Reading package lists... Done
E: Release file for file:/mnt/debian/dists/stretch/Release is expired
(invalid since 21h 50min 47s). Updates for this repository will not be
applied.

That's actually good news, isn't it? :-)
Well, thanks for your help (and for that of anyone else who participated
in this thread). I have to go through it again...

Thanks
Stephan
0 new messages