Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

can't install on ubuntu trusty

Ask your questions here.

can't install on ubuntu trusty

Postby orbspider » Sun Feb 01, 2015 4:02 am

Hi, the IT dept here is mass-installing Lubuntu onto hundreds of pc's, and I need to clone their install and do improvements to it... although it would be nice if we could go with pure Debian, but I think there will be plenty of non-Linux users who might need to fix things and ubuntu might be more friendly on them.

Now I've spent a few hours trying to get past some dependency errors while trying to install R-snapshot, eg refractasnapshot-base has with live-config-systemd

here's what I get

Code: Select all
Unpacking refractasnapshot-base (9.1.5+10.0.0~beta01) ...
dpkg: dependency problems prevent configuration of refractasnapshot-base:
refractasnapshot-base depends on squashfs-tools (>= 4.0); however:
  Package squashfs-tools is not installed.
refractasnapshot-base depends on xorriso (>= 1.2.2); however:
  Package xorriso is not installed.
refractasnapshot-base depends on live-boot (>= 2.0.15); however:
  Package live-boot is not installed.
refractasnapshot-base depends on live-config (>= 2.0.15); however:
  Package live-config is not installed.
refractasnapshot-base depends on live-boot-initramfs-tools (>= 2.0.15); however:
  Package live-boot-initramfs-tools is not installed.
refractasnapshot-base depends on live-config-sysvinit (>= 2.0.15) | live-config-systemd | live-config-upstart; however:
  Package live-config-sysvinit is not installed.
  Package live-config-systemd is not installed.
  Package live-config-upstart is not installed.
refractasnapshot-base depends on syslinux (<< 6.03) | isolinux (>= 6.03); however:
  Version of syslinux on system is 3:4.05+dfsg-
dpkg: error processing package refractasnapshot-base (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing: refractasnapshot-base

so we sort it out with apt-get install -f

Code: Select all
sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
...
The following packages will be REMOVED:
  refractasnapshot-base
The following NEW packages will be installed:
  libisoburn1 live-boot live-boot-doc live-boot-initramfs-tools live-tools
  squashfs-tools xorriso
0 upgraded, 7 newly installed, 1 to remove and 193 not upgraded.
1 not fully installed or removed.

then try install again

Code: Select all
sudo dpkg -i refractasnapshot-base_9.1.5+10.0.0~beta01_all.deb
Selecting previously unselected package refractasnapshot-base.
(Reading database ... 146830 files and directories currently installed.)
Preparing to unpack refractasnapshot-base_9.1.5+10.0.0~beta01_all.deb ...
Unpacking refractasnapshot-base (9.1.5+10.0.0~beta01) ...
dpkg: dependency problems prevent configuration of refractasnapshot-base:
refractasnapshot-base depends on live-config (>= 2.0.15); however:
  Package live-config is not installed.
refractasnapshot-base depends on live-config-sysvinit (>= 2.0.15) | live-config-systemd | live-config-upstart; however:
  Package live-config-sysvinit is not installed.
  Package live-config-systemd is not installed.
  Package live-config-upstart is not installed.
refractasnapshot-base depends on syslinux (<< 6.03) | isolinux (>= 6.03); however:
  Version of syslinux on system is 3:4.05+dfsg-6+deb8u1.
  Package isolinux is not installed.

dpkg: error processing package refractasnapshot-base (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
refractasnapshot-base

then try to install dependencies

Code: Select all
sudo apt-get install live-config-systemd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package live-config-systemd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'live-config-systemd' has no installation candidate


these three packages including live-config-systemd are available in precise, not later ubuntu's, like trusty which we are on here.

try another install...

Code: Select all
sudo apt-get install live-config-sysvinit
[sudo] password for l1:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
live-config-sysvinit : Depends: sysvinit (>= 2.86) but it is not installable
refractasnapshot-base : Depends: live-config (>= 2.0.15) but it is not going to be installed
                         Depends: syslinux (< 6.03) but 3:4.05+dfsg-6+deb8u1 is to be installed or
                                  isolinux (>= 6.03) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


any ideas? or i'll just have to backup with a tar command! thanks
orbspider
 
Posts: 40
Joined: Mon Oct 07, 2013 9:35 am

Re: can't install on ubuntu trusty

Postby fsmithred » Sun Feb 01, 2015 11:39 am

There have been problems with installing on ubuntu in the past. I recall not being able to find the necessary packages in any repository. I also recall being told that I had to enable extra repositories, and I'm pretty sure I had already tried that. Here it is...
problem-installing-refractasnapshot-base-9-0-9-7-all-deb-t397.html

EDIT ***
Correction: 4.x is in wheezy. I never tested 5.x. Got confused between syslinux versions and live-* versions.
***
The versions of the syslinux packages are 3.x in wheezy, which I've tested, 4.x in your ubuntu, which I've never tested in debian, and 6.x in jessie/sid, which I've been testing recently. There may just be a problem with the way I wrote the dependencies in the control file, or there may be an actual incompatibility with the 4.x packages. There are some major differences between 3.x and 6.x that required separate code (different system file names/locations). I don't know how 4.x is arranged. Try unpacking the refractasnapshot debs and copying the files into place.

Make sure you use the correct live-config-<*init> package for whichever init system you're using. If that's really not available from ubuntu, you might be able to use the jessie/sid versions from debian. If you do that, get all four: live-boot, live-boot-initramfs-tools, live-config and live-config-(insert your init system here). It looks like there's only live-config-sysvinit and live-config-systemd in jessie - no live-config-upstart. If you're using upstart, you'll need to get the debs from the wheezy repo. I think that's what I used with Trusty.

If you're not using gpt and uefi on these machines, you might be better off with the older refractasnapshot debs (9.1.5), since I only did minimal testing with the ones you're using. If you are using gpt and uefi, then I really want to hear if that part works or not, and thank you for testing what I can't.

There are better ways to do mass installations, even doing several of them simultaneously. I don't know those methods, but I've seen them mentioned at the debian forums (forums.debian.net).
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Re: can't install on ubuntu trusty

Postby orbspider » Mon Feb 02, 2015 4:48 am

Thanks,
I will do some more work on this. using an older r-snapshot would be worth a try indeed.

No, I'm not intending to use R-S for our multiple installs, I'm trying to get it on this box just so I can clone the OS to my own laptop to continue work another time, - we are using FOG to clone to multiple boxes.
orbspider
 
Posts: 40
Joined: Mon Oct 07, 2013 9:35 am

Re: can't install on ubuntu trusty

Postby orbspider » Tue Feb 03, 2015 4:15 pm

So far it works, just unpacking and copying the files...

1st install...
live-boot live-boot-initramfs-tools squashfs-tools

also the r-s-installer .deb's

unpack the .deb archive of r-s-base (9.1.5)

copy files to /etc and /usr/lib

set up the config file and hit refractasnapshot in terminal

the ISO is produced - I just don't have a spare machine to test the installer with at the moment.
Very nice!
orbspider
 
Posts: 40
Joined: Mon Oct 07, 2013 9:35 am

Re: can't install on ubuntu trusty

Postby fsmithred » Tue Feb 03, 2015 6:16 pm

There was/is a problem with the dependencies in refractasnapshot base 9.1.5* packages (plain 9.1.5 and the 10.0beta01.) It will be fixed in the next version (soon). So unpacking the debs manually is fine. You will need live-config-backend (or live-config-systemd, -sysvinit or -upsart.) I don't think it will make a bootable snapshot without that. I think you could use live-* packages from either wheezy or jessie without a problem. Wheezy has backends for all three init systems, and jessie has only systemd and sysvinit.

Edit: I test the isos in virtualbox, so there's no need for another machine or for burning a CD.
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Re: can't install on ubuntu trusty

Postby ukbrian » Wed Feb 04, 2015 7:14 pm

I'm been running Mint xfce LTS Trusty for a bit and miss Refracta so I'm very interested in this but I'm not very skillfull.

I've been using Anthony Nordquist saline-backup successfully on all the LTS's that I've tried apart from Voyager a French distro.

It was written for Squeeze but still carries on working, I think because it doesn't use a live boot and doesn't create a new user but it does run a grub installer.

I've cloned a running LTS to a stick, stuck it in another machine and cloned it into that with no problems, its easier/quicker than installing from an ISO.

I posted some videos on the Linux Lite forum https://www.linuxliteos.com/forums/index.php?topic=829.msg9597#msg9597 and had very little reaction.

I think the only dependancy I had to install was squashfs-tools

Anthony Nordquist has moved from Debian to Manjaro so it's abandoned code but it is still on github under "Backup". https://github.com/SalineOS/SalineOS

I've mentioned saline-backup before and meandean said his script would do everything that saline-backup does.
User avatar
ukbrian
 
Posts: 109
Joined: Mon Jul 25, 2011 8:22 am
Location: Cheltenham, UK

Re: can't install on ubuntu trusty

Postby orbspider » Thu Feb 05, 2015 5:40 am

Oops, the ISO isn't made hybrid, there's this error:

Code: Select all
Can't create isohybrid.  File: isohdpfx.bin not found. The resulting image will be a standard iso file.
All finished!


syslinux is already installed too.

...I tried live-config-systemd from jessie repos.. but systemd is not installed - even thought here's a systemd process in htop.

then the live-config-upstart pckg from wheezy, trying to make an image now....

I got the same error. No hybrid made
orbspider
 
Posts: 40
Joined: Mon Oct 07, 2013 9:35 am

Re: can't install on ubuntu trusty

Postby fsmithred » Thu Feb 05, 2015 12:19 pm

Orbspider, you need to know which init system you're using so you can install the right backend. Try running the following:
Code: Select all
apt-cache policy upstart
apt-cache policy systemd
apt-cache policy sysvinit
And you should probably use the exact same versions of all four live-* packages. Wheezy uses 3.0.23-1+deb7u1 and trusty uses 3.0.23-1+deb8u1. It might be ok to mix those because they're close, but it also might not be ok. I don't know.

To find where your version of syslinux/isolinux puts that missing file:
Code: Select all
locate isohdpfx.bin
or
find /usr/lib -name isohdpfx.bin
I'd like to know this so I can account for it in the script. Between versions 3.x and 6.x the files got moved to a different directory. They might be in yet another location in 4.x.

Also, don't rush to test the installer. I just made a new one yesterday that has the code to move additional directories to separate partitions. So far, I only got to test the gui version, and it worked. I hope to upload it later today or tomorrow.

Oh yeah, please also do
Code: Select all
ps ax |grep systemd
I'm curious to see what's running.
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Re: can't install on ubuntu trusty

Postby orbspider » Thu Feb 05, 2015 12:43 pm

Thanks for the help fsmithred,

it is upstart running - which i had guessd from this page
Code: Select all
~$ apt-cache policy upstart
upstart:
  Installed: 1.12.1-0ubuntu4.2
  Candidate: 1.12.1-0ubuntu4.2
  Version table:
*** 1.12.1-0ubuntu4.2 0
        500 http://id.archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
        100 /var/lib/dpkg/status
     1.12.1-0ubuntu4 0
        500 http://id.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages


and here's that file
Code: Select all
~$ locate isohdpfx.bin
/usr/lib/syslinux/isohdpfx.bin


Code: Select all
~$ ps ax |grep systemd
  268 ?        Ss     0:00 /lib/systemd/systemd-udevd --daemon
  688 ?        Ss     0:00 /lib/systemd/systemd-logind
3533 pts/0    S+     0:00 grep systemd


the new version sounds cool! cheers for all the work you do
orbspider
 
Posts: 40
Joined: Mon Oct 07, 2013 9:35 am

Re: can't install on ubuntu trusty

Postby fsmithred » Thu Feb 05, 2015 2:20 pm

Starting at line 728 in the 10.0.0beta02 (gui version), this:
Code: Select all
if [[ $make_isohybrid = "yes" ]]; then
   if [[ -f /usr/lib/syslinux/mbr/isohdpfx.bin ]] ; then
      isohybrid_opt="-J -isohybrid-mbr /usr/lib/syslinux/mbr/isohdpfx.bin"
   elif [[ -f /usr/lib/ISOLINUX/isohdpfx.bin ]] ; then
      isohybrid_opt="-J -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin"
   else

needs to be changed to this:
Code: Select all
if [[ $make_isohybrid = "yes" ]]; then
   if [[ -f /usr/lib/syslinux/mbr/isohdpfx.bin ]] ; then
      isohybrid_opt="-isohybrid-mbr /usr/lib/syslinux/mbr/isohdpfx.bin"
        elif [[ -f /usr/lib/syslinux/isohdpfx.bin ]] ; then
                isohybrid_opt="-isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin"
   elif [[ -f /usr/lib/ISOLINUX/isohdpfx.bin ]] ; then
      isohybrid_opt="-isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin"
   else


Note: I'm pretty sure the "-J" does not need to be there. It's already in the xorriso command.

Also, please check the paths for the following files and let me know where they are on your system. This starts around line 528. Thanks.
Code: Select all
copy_isolinux () {

if [[ -f /usr/lib/ISOLINUX/isolinux.bin ]] ; then
   isolinuxbin="/usr/lib/ISOLINUX/isolinux.bin"
elif [[ -f /usr/lib/syslinux/isolinux.bin ]] ; then
   isolinuxbin="/usr/lib/syslinux/isolinux.bin"
else
   $DIALOG --title=Error --$ERROR --${BUTTON0}="OK"${BUTTON0NUM} \
   --text="You need to install the isolinux package."
   exit 1
fi

if [[ -f /usr/lib/syslinux/modules/bios/vesamenu.c32 ]] ; then
   vesamenu="/usr/lib/syslinux/modules/bios/vesamenu.c32"
   rsync -a /usr/lib/syslinux/modules/bios/ldlinux.c32 "$iso_dir"/isolinux/
   rsync -a /usr/lib/syslinux/modules/bios/libcom32.c32 "$iso_dir"/isolinux/
   rsync -a /usr/lib/syslinux/modules/bios/libutil.c32 "$iso_dir"/isolinux/
else
   vesamenu="/usr/lib/syslinux/vesamenu.c32"
fi
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron
suspicion-preferred