@uroni, I am attempting to build the restore CD on a VM built from Debian 7 and when I run build_image.sh it fails with cp: cannot stat ‘binary.hybrid.iso’. Right before that I get an error of “E: Unable to locate package gnu-fdisk”.
I have tried Googling for those strings, and I do not get anything that I recognize as relevant. Any ideas?
Certainly no need to apologize, I appreciate all of the work that you are doing. Little things like this are to be completely expected.
I did. That got me farther, but now it shits itself with this error message:
Reading state information… Done
[2015-08-04 00:18:49] lb chroot_live-packages
dpkg: dependency problems prevent removal of systemd-sysv:
init depends on systemd-sysv | sysvinit-core | upstart; however:
Package systemd-sysv is to be removed.
Package sysvinit-core is not installed.
Package upstart is not installed.
dpkg: error processing package systemd-sysv (–purge):
dependency problems - not removing
dpkg: dependency problems prevent removal of systemd:
systemd-sysv depends on systemd (= 215-17+deb8u1).
systemd-sysv depends on systemd.
systemd-sysv depends on systemd (= 215-17+deb8u1).
systemd-sysv depends on systemd.
dpkg: error processing package systemd (–purge):
dependency problems - not removing
Errors were encountered while processing:
systemd-sysv
systemd
P: Begin unmounting filesystems…
P: Saving caches…
Reading package lists… Done
Building dependency tree
Reading state information… Done
cp: cannot stat `binary.hybrid.iso’: No such file or directory
I hesitate to even mention systemd as the mere mention of that package can start a holy war in some circles…but that is what happened. Any idea now?
Processing triggers for man-db (2.7.0.2-5) …
Processing triggers for systemd (215-17+deb8u1) …
Errors were encountered while processing:
/var/cache/apt/archives/firmware-ipw2x00_0.43_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
P: Begin unmounting filesystems…
P: Saving caches…
Reading package lists… Done
Building dependency tree
Reading state information… Done
cp: cannot stat `live-image-i386.hybrid.iso’: No such file or directory
That is on a completely unchanged version of the files you attached. What version of Debian are you building on, and does that matter?
Otherwise I’d, as said, just remove firmware-ipw2x00 from package-lists/tools.list.chroot. Maybe it has to have you agree to a license in your country…
Goddamnit. Of course, this cannot be easy. Now I am getting the systemd errors again. I did dist-upgrade and removed the firmware you suggested. Any other ideas?
Selecting previously unselected package rfkill.
Preparing to unpack …/archives/rfkill_0.5-1_i386.deb …
Unpacking rfkill (0.5-1) …
Selecting previously unselected package rsync.
Preparing to unpack …/rsync_3.1.1-3_i386.deb …
Unpacking rsync (3.1.1-3) …
Selecting previously unselected package shared-mime-info.
Preparing to unpack …/shared-mime-info_1.3-1_i386.deb …
Unpacking shared-mime-info (1.3-1) …
Selecting previously unselected package sudo.
Preparing to unpack …/sudo_1.8.10p3-1+deb8u2_i386.deb …
Unpacking sudo (1.8.10p3-1+deb8u2) …
Selecting previously unselected package wicd-curses.
Preparing to unpack …/wicd-curses_1.7.2.4-4.1_all.deb …
Unpacking wicd-curses (1.7.2.4-4.1) …
Selecting previously unselected package xdg-user-dirs.
Preparing to unpack …/xdg-user-dirs_0.15-2_i386.deb …
Unpacking xdg-user-dirs (0.15-2) …
Selecting previously unselected package xml-core.
Preparing to unpack …/xml-core_0.13+nmu2_all.deb …
Unpacking xml-core (0.13+nmu2) …
Selecting previously unselected package amd64-microcode.
Preparing to unpack …/amd64-microcode_2.20141028.1_i386.deb …
Unpacking amd64-microcode (2.20141028.1) …
Selecting previously unselected package intel-microcode.
Preparing to unpack …/intel-microcode_3.20150121.1_i386.deb …
Unpacking intel-microcode (3.20150121.1) …
Selecting previously unselected package prism2-usb-firmware-installer.
Preparing to unpack …/prism2-usb-firmware-installer_0.2.9+dfsg-5_i386.deb …
Unpacking prism2-usb-firmware-installer (0.2.9+dfsg-5) …
Selecting previously unselected package user-setup.
Preparing to unpack …/user-setup_1.61_all.deb …
Unpacking user-setup (1.61) …
Selecting previously unselected package zd1211-firmware.
Preparing to unpack …/zd1211-firmware_3.0.0.56-3_all.deb …
Unpacking zd1211-firmware (3.0.0.56-3) …
Processing triggers for man-db (2.7.0.2-5) …
Processing triggers for systemd (215-17+deb8u1) …
Setting up libmagic1:i386 (1:5.22+15-2) …
Setting up libsqlite3-0:i386 (3.8.7.1-1+deb8u1) …
Setting up libxml2:i386 (2.9.1+dfsg1-5) …
Setting up perl-modules (5.20.2-3+deb8u1) …
Setting up perl (5.20.2-3+deb8u1) …
update-alternatives: using /usr/bin/prename to provide /usr/bin/rename (rename) in auto mode
Setting up mime-support (3.58) …
Setting up libexpat1:i386 (2.1.0-6+b3) …
Setting up libpython2.7-stdlib:i386 (2.7.9-2) …
Setting up python2.7 (2.7.9-2) …
Setting up libpython-stdlib:i386 (2.7.9-1) …
Setting up python (2.7.9-1) …
Setting up keyboard-configuration (1.123) …
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up libcap-ng0:i386 (0.7.4-2) …
Setting up libdbus-1-3:i386 (1.8.18-0+deb8u1) …
Setting up libglib2.0-0:i386 (2.42.1-1) …
No schema files found: doing nothing.
Setting up libdbus-glib-1-2:i386 (0.102-1) …
Setting up libiw30:i386 (30~pre9-8) …
Setting up libmpdec2:i386 (2.4.1-1) …
Setting up libnl-3-200:i386 (3.2.24-2) …
Setting up libnl-genl-3-200:i386 (3.2.24-2) …
Setting up libparted2:i386 (3.2-7) …
Setting up libpcsclite1:i386 (1.8.13-1) …
Setting up libpython3.4-minimal:i386 (3.4.2-1) …
Setting up libpython3.4-stdlib:i386 (3.4.2-1) …
Setting up libuuid-perl (0.05-1+b1) …
Setting up linux-base (3.5) …
Setting up libklibc (2.0.4-2) …
Setting up klibc-utils (2.0.4-2) …
Setting up busybox (1:1.22.0-9+deb8u1) …
Setting up initramfs-tools (0.120) …
update-initramfs: deferring update (trigger activated)
Setting up linux-image-3.16.0-4-586 (3.16.7-ckt11-1) …
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-3.16.0-4-586
live-boot: core filesystems devices utils udev wget blockdev.
Setting up ntfs-3g (1:2014.2.15AR.2-1+deb8u2) …
update-initramfs: deferring update (trigger activated)
Setting up python3.4-minimal (3.4.2-1) …
Setting up sgml-base (1.26+nmu4) …
Setting up uuid-runtime (2.25.2-6) …
Adding group uuidd' (GID 109) ... Done. Warning: The home dir /run/uuidd you specified can't be accessed: No such file or directory Adding system user uuidd’ (UID 104) …
Adding new user uuidd' (UID 104) with group uuidd’ …
Not creating home directory `/run/uuidd’.
All runlevel operations denied by policy
invoke-rc.d: policy-rc.d denied execution of start.
Setting up python-dbus-dev (1.2.0-2) …
Setting up python-dbus (1.2.0-2+b3) …
Remove stale byte-compiled files…
Setting up libgirepository-1.0-1:i386 (1.42.0-2.2) …
Setting up gir1.2-glib-2.0:i386 (1.42.0-2.2) …
Setting up python-gi (3.14.0-1) …
Setting up python-gobject-2 (2.28.6-12) …
Setting up python-gobject (3.14.0-1) …
Setting up dbus (1.8.18-0+deb8u1) …
All runlevel operations denied by policy
invoke-rc.d: policy-rc.d denied execution of start.
Setting up wpasupplicant (2.3-1+deb8u1) …
Setting up wireless-tools (30~pre9-8) …
Setting up psmisc (22.21-2) …
Setting up python-wicd (1.7.2.4-4.1) …
Setting up wicd-daemon (1.7.2.4-4.1) …
All runlevel operations denied by policy
invoke-rc.d: policy-rc.d denied execution of start.
Setting up bzip2 (1.0.6-7+b3) …
Setting up file (1:5.22+15-2) …
Setting up locales (2.19-18) …
Generating locales (this might take a while)…
Generation complete.
Setting up atmel-firmware (1.3-4) …
Setting up b43-fwcutter (1:019-2) …
Setting up chntpw (1.0-1+b1) …
Setting up dialog (1.2-20140911-1) …
Setting up firmware-atheros (0.43) …
Setting up firmware-b43-installer (1:019-2) …
A chroot environment has been detected.
Remember this firmware needs kernel >= 2.6.25.
converted ‘http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2’ (ANSI_X3.4-1968) -> ‘http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2’ (UTF-8)
–2015-08-05 20:49:38-- http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2
Resolving www.lwfinger.com (www.lwfinger.com)… 173.254.28.119
Connecting to www.lwfinger.com (www.lwfinger.com)|173.254.28.119|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 13514651 (13M) [application/x-bzip2]
Saving to: ‘broadcom-wl-5.100.138.tar.bz2’
broadcom-wl-5.100.1 100%[=====================>] 12.89M 742KB/s in 13s
/lib/firmware/ru010803.hex: OK
Converting firmware file
Setting up user-setup (1.61) …
Setting up zd1211-firmware (3.0.0.56-3) …
Processing triggers for libc-bin (2.19-18) …
Processing triggers for systemd (215-17+deb8u1) …
Processing triggers for initramfs-tools (0.120) …
update-initramfs: Generating /boot/initrd.img-3.16.0-4-586
live-boot: core filesystems devices utils udev wget blockdev.
Processing triggers for dbus (1.8.18-0+deb8u1) …
Processing triggers for sgml-base (1.26+nmu4) …
Reading package lists… Done
Building dependency tree
Reading state information… Done
[2015-08-05 16:50:10] lb chroot_package-lists live
P: Begin queueing installation of package lists (live pass)…
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
debtags
The following NEW packages will be installed:
dctrl-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 164 kB of archives.
After this operation, 559 kB of additional disk space will be used.
Get:1 http://ftp.de.debian.org/debian/ jessie/main dctrl-tools i386 2.23 [164 kB]
Fetched 164 kB in 0s (176 kB/s)
Selecting previously unselected package dctrl-tools.
(Reading database … 20601 files and directories currently installed.)
Preparing to unpack …/dctrl-tools_2.23_i386.deb …
Unpacking dctrl-tools (2.23) …
Processing triggers for man-db (2.7.0.2-5) …
Setting up dctrl-tools (2.23) …
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
dctrl-tools*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 559 kB disk space will be freed.
(Reading database … 20659 files and directories currently installed.)
Removing dctrl-tools (2.23) …
Purging configuration files for dctrl-tools (2.23) …
Processing triggers for man-db (2.7.0.2-5) …
Reading package lists… Done
Building dependency tree
Reading state information… Done
[2015-08-05 16:50:14] lb chroot_install-packages live
P: Begin installing packages (live pass)…
Reading package lists… Done
Building dependency tree
Reading state information… Done
chntpw is already the newest version.
dialog is already the newest version.
hdparm is already the newest version.
live-boot is already the newest version.
live-config is already the newest version.
live-config-systemd is already the newest version.
ntfs-3g is already the newest version.
parted is already the newest version.
python3-minimal is already the newest version.
user-setup is already the newest version.
wicd-curses is already the newest version.
firmware-b43-installer is already the newest version.
prism2-usb-firmware-installer is already the newest version.
atmel-firmware is already the newest version.
firmware-atheros is already the newest version.
firmware-bnx2 is already the newest version.
firmware-bnx2x is already the newest version.
firmware-brcm80211 is already the newest version.
firmware-iwlwifi is already the newest version.
firmware-libertas is already the newest version.
firmware-linux is already the newest version.
firmware-linux-nonfree is already the newest version.
firmware-myricom is already the newest version.
firmware-netxen is already the newest version.
firmware-qlogic is already the newest version.
firmware-ralink is already the newest version.
firmware-realtek is already the newest version.
libertas-firmware is already the newest version.
zd1211-firmware is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree
Reading state information… Done
[2015-08-05 16:50:15] lb chroot_live-packages
dpkg: dependency problems prevent removal of systemd:
live-config-systemd depends on systemd.
dpkg: error processing package systemd (–purge):
dependency problems - not removing
dpkg: dependency problems prevent removal of systemd-sysv:
init depends on systemd-sysv | sysvinit-core | upstart; however:
Package systemd-sysv is to be removed.
Package sysvinit-core is not installed.
Package upstart is not installed.
dpkg: error processing package systemd-sysv (–purge):
dependency problems - not removing
Errors were encountered while processing:
systemd
systemd-sysv
P: Begin unmounting filesystems…
P: Saving caches…
Reading package lists… Done
Building dependency tree
Reading state information… Done
cp: cannot stat `live-image-i386.hybrid.iso’: No such file or directory
@uroni, using the updated build that you posted earlier I get:
sh build_image.sh
cat: version.txt: No such file or directory
[2015-08-13 16:50:02] lb clean
P: Cleaning chroot
[2015-08-13 16:50:03] lb build
E: This config tree is too old for live-build (5.0~a10-1).
E: Aborting build, please update the configuration.
cp: cannot stat ‘live-image-i386.hybrid.iso’: No such file or directory
root@debian:/home/jonathan/Restore-CD# sh build_image.sh
cat: version.txt: No such file or directory
[2015-08-13 16:51:35] lb clean
P: Cleaning chroot
[2015-08-13 16:51:35] lb build
E: This config tree is too old for live-build (5.0~a10-1).
E: Aborting build, please update the configuration.
cp: cannot stat ‘live-image-i386.hybrid.iso’: No such file or directory
This is on a brand new Debian 8.1 64-bit VM that I just built today. This is more than a bit frustrating.
Would it be possible to create a new Live-CD config and then copy in the UrBackup specific portions of it? If you could delineate some sort of process for what is specific to your CD, I could work through it and probably learn a lot about building Live-CDs.
I think you are not using Debian 8.1 but Debian unstable. Usually this is okay because the Debian maintainers put upstream releases in there. In case of live-build development builds land in there (in your case 5.0~a10-1). The “a” probably stands for “alpha”. You should use a proper version of live-build like I do.
Debian 8.1, not unstable. I reverted back to live-build 3.0.5-1 and it still fails.
What specific version of live-build are you using? And, is it at all possible that the de mirrors in your live-build configuration are causing the issues?
I tried with Debian 8.8 and managed to build the iso successfully.
However, the following errors are encountered while booting a system with the newly created CD:
“kernel panic-not syncing vfs unable to mount root fs on unknown-block (0.0)”
The CD downloaded from the Urbackup site boots up okay on this same machine. I also noticed that there is a difference in file size between the .iso files created by manual build and downloading off the website.
The working iso is about 300mb in size while the not working one is only about 180mb.
I am also wondering if we should be building the CD on an i386 or amd64 debian? Is the provided tgz file for building on i386 system?