Public bug reported:
A user on #ubuntu reported failure of debootstrap to fetch the Release
file; hanging whilst trying to deal with an InRelease file that doesn't
exist when using ssh:// protocol.
scp: /opt/repository/isi/archive/15.11.6/trusty/dists/trusty/InRelease: No such
file or directory
mv: cannot stat
'/tmp/tmp-cache/var/lib/apt/lists/partial/debootstrap.invalid_dists_trusty_InRelease':
No such file or directory
sed: can't read
/tmp/tmp-cache/var/lib/apt/lists/debootstrap.invalid_dists_trusty_InRelease: No
such file or directory
scp: /opt/repository/isi/archive/15.11.6/trusty/dists/trusty/InRelease: No such
file or directory
mv: cannot stat
'/tmp/tmp-cache/var/lib/apt/lists/partial/debootstrap.invalid_dists_trusty_InRelease':
No such file or directory
sed: can't read
/tmp/tmp-cache/var/lib/apt/lists/debootstrap.invalid_dists_trusty_InRelease: No
such file or directory
scp: /opt/repository/isi/archive/15.11.6/trusty/dists/trusty/InRelease: No such
file or directory
mv: cannot stat
'/tmp/tmp-cache/var/lib/apt/lists/partial/debootstrap.invalid_dists_trusty_InRelease':
No such file or directory
sed: can't read
/tmp/tmp-cache/var/lib/apt/lists/debootstrap.invalid_dists_trusty_InRelease: No
such file or directory
This seems to be due to a problem in functions::just_get() for both
ssh:// and file:// protocols where the 'get' is assumed to have
succeeded and hard-codes a "return 0".
I think these should be returning the exit code of the scp and cp
commands respectively.
Suggested patch attached
Affects 16.04 and 17.10. Apparently doesn't affect 14.04.
** Affects: debootstrap (Ubuntu)
Importance: Undecided
Status: Confirmed
** Patch added: "just_get(): return exit code of scp and cp"
https://bugs.launchpad.net/bugs/1735014/+attachment/5015882/+files/001_fix-file-and-ssh-protocols.patch
** Description changed:
A user on #ubuntu reported failure of debootstrap to fetch the Release
file; hanging whilst trying to deal with an InRelease file that doesn't
exist when using ssh:// protocol.
+
+ scp: /opt/repository/isi/archive/15.11.6/trusty/dists/trusty/InRelease: No
such file or directory
+ mv: cannot stat
'/tmp/tmp-cache/var/lib/apt/lists/partial/debootstrap.invalid_dists_trusty_InRelease':
No such file or directory
+ sed: can't read
/tmp/tmp-cache/var/lib/apt/lists/debootstrap.invalid_dists_trusty_InRelease: No
such file or directory
+ scp: /opt/repository/isi/archive/15.11.6/trusty/dists/trusty/InRelease: No
such file or directory
+ mv: cannot stat
'/tmp/tmp-cache/var/lib/apt/lists/partial/debootstrap.invalid_dists_trusty_InRelease':
No such file or directory
+ sed: can't read
/tmp/tmp-cache/var/lib/apt/lists/debootstrap.invalid_dists_trusty_InRelease: No
such file or directory
+ scp: /opt/repository/isi/archive/15.11.6/trusty/dists/trusty/InRelease: No
such file or directory
+ mv: cannot stat
'/tmp/tmp-cache/var/lib/apt/lists/partial/debootstrap.invalid_dists_trusty_InRelease':
No such file or directory
+ sed: can't read
/tmp/tmp-cache/var/lib/apt/lists/debootstrap.invalid_dists_trusty_InRelease: No
such file or directory
This seems to be due to a problem in functions::just_get() for both
ssh:// and file:// protocols where the 'get' is assumed to have
succeeded and hard-codes a "return 0".
I think these should be returning the exit code of the scp and cp
commands respectively.
Suggested patch attached
** Changed in: debootstrap (Ubuntu)
Status: New => Confirmed
** Description changed:
A user on #ubuntu reported failure of debootstrap to fetch the Release
file; hanging whilst trying to deal with an InRelease file that doesn't
exist when using ssh:// protocol.
scp: /opt/repository/isi/archive/15.11.6/trusty/dists/trusty/InRelease: No
such file or directory
mv: cannot stat
'/tmp/tmp-cache/var/lib/apt/lists/partial/debootstrap.invalid_dists_trusty_InRelease':
No such file or directory
sed: can't read
/tmp/tmp-cache/var/lib/apt/lists/debootstrap.invalid_dists_trusty_InRelease: No
such file or directory
scp: /opt/repository/isi/archive/15.11.6/trusty/dists/trusty/InRelease: No
such file or directory
mv: cannot stat
'/tmp/tmp-cache/var/lib/apt/lists/partial/debootstrap.invalid_dists_trusty_InRelease':
No such file or directory
sed: can't read
/tmp/tmp-cache/var/lib/apt/lists/debootstrap.invalid_dists_trusty_InRelease: No
such file or directory
scp: /opt/repository/isi/archive/15.11.6/trusty/dists/trusty/InRelease: No
such file or directory
mv: cannot stat
'/tmp/tmp-cache/var/lib/apt/lists/partial/debootstrap.invalid_dists_trusty_InRelease':
No such file or directory
sed: can't read
/tmp/tmp-cache/var/lib/apt/lists/debootstrap.invalid_dists_trusty_InRelease: No
such file or directory
This seems to be due to a problem in functions::just_get() for both
ssh:// and file:// protocols where the 'get' is assumed to have
succeeded and hard-codes a "return 0".
I think these should be returning the exit code of the scp and cp
commands respectively.
Suggested patch attached
+
+ Affects 16.04 and 17.10. Apparently doesn't affect 14.04.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1735014
Title:
file:// and ssh:// protocols do not allow for failed gets
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debootstrap/+bug/1735014/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs