Code: Select all
deb [arch=amd64] file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1 stretch main
Code: Select all
mount -o loop /media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1.iso /media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1
Code: Select all
root@nickslaptop:/home/nick# apt-get update
Get:1 file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1 stretch InRelease
Ign:1 file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1 stretch InRelease
Get:2 file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1 stretch Release [17.8 kB]
Get:2 file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1 stretch Release [17.8 kB]
Get:3 file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1 stretch Release.gpg
Ign:3 file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1 stretch Release.gpg
Get:4 file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1 stretch/main amd64 Packages [888 kB]
Ign:4 file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1 stretch/main amd64 Packages
Get:4 file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1 stretch/main amd64 Packages [888 kB]
Ign:4 file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1 stretch/main amd64 Packages
Get:4 file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1 stretch/main amd64 Packages [3,766 kB]
Err:4 file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1 stretch/main amd64 Packages
File not found - /media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1/dists/stretch/main/binary-amd64/Packages (2: No such file or directory)
Reading package lists... Done
N: Download is performed unsandboxed as root as file '/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1/dists/stretch/InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
W: The repository 'file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch file:/media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1/dists/stretch/main/binary-amd64/Packages File not found - /media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1/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.
root@nickslaptop:/home/nick# ls -al /media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1/dists/stretch/main/binary-amd64/Packages*
-r--r--r-- 1 root root 888470 Jun 17 06:12 /media/nick/Portable02-Black/DebianRepositories/debian-9.0.0-amd64-DVD-1/dists/stretch/main/binary-amd64/Packages.gz
root@nickslaptop:/home/nick#
Using "--allow-unauthenticated" option does not help either.
The exact same setup works for me in jessie. What has changed in stretch since jessie that needs to be done to get this to work?
Thanks very much in advance for any insights.
EDIT: Quick followup regarding behaviour in jessie:
sources.list:
Code: Select all
deb [arch=amd64] file:/media/nick/DebianRepositori/debian-8.0.0-amd64-DVD-1 jessie main contrib
Code: Select all
root@debaway:/etc/apt# apt-get update
Ign file: jessie InRelease
Ign file: jessie Release.gpg
Get:1 file: jessie Release [32.5 kB]
Reading package lists... Done
root@debaway:/etc/apt# ls -al /media/nick/DebianRepositori/debian-8.0.0-amd64-DVD-1/dists/jessie/main/binary-amd64/Packages*
-r--r--r-- 1 root root 975989 Apr 25 2015 /media/nick/DebianRepositori/debian-8.0.0-amd64-DVD-1/dists/jessie/main/binary-amd64/Packages.gz
root@debaway:/etc/apt#
Why all the extra output activity and error in stretch under otherwise seemingly identical conditions?
EDIT #2: A bit more investigation reveals:
1) apt-get update on the jessie DVD iso files from stretch fail the same way they do on the stretch DVD files (while of course they do not fail in jessie).
2) apt-get update on the stretch DVD iso files from jessie works.
This indicates to me something has changed in the way "apt-get update" stretch handles locally mounted DVD iso-file repositories which is preventing me from accessing them.
Anybody know what I may be missing here?