Author Topic: 0810 installation script seems broken  (Read 1989 times)

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
0810 installation script seems broken
« on: April 07, 2010, 02:32:51 pm »
Problem:

1. Install snapshot DVD of 810
2. Run the Desktop shortcut to /root/new-installer/full-install.sh
3. After installing a few packages I am asked to reboot
4. After reboot nothing happens - presented with a login prompt (KDE no longer starts as the symlinks were remove by the installer)
5. Manually run /root/new-installer/full-install.sh again
6. Install of pluto-dcerouter fails as linuxmce sources have not been added to apt sources.list

I did some digging around and found a function in mce-install-common.sh which adds the LinuxMCE sources called Setup_Apt_Conffiles, which seems to add either remote or local sources based on whether the core currently has internet connectivity (neat!). However, the part of mce-install.sh where this is called from is commented out:


Code: [Select]
Core_PK_Device="0"

if [[ "$c_netExtKeep" != "true" ]] ;then
        Setup_Network_Intefaces
fi

Setup_NIS

#trap 'RemoveOfflineSource' EXIT
#Setup_Apt_Conffiles
PinMythTVAt22

Setup_Pluto_Apt_Conf
./mce-install-preseed.sh
apt-get update


I did find however that the pre-install-from-DVD.sh script adds some repos, but this is not called at all from the full-install.sh script which is included in the DVD distribution.

Is there a reason for this? I assume this script is working for other users? How can it work for everyone else? I would go ahead an post a Trac ticket but it seems odd that nobody else would have run into this issue.

Regards,

Chris

ps. my setup is a VMware virtual machine with 2 network interfaces (both appear in ifconfig output and are working)



« Last Edit: April 07, 2010, 02:55:38 pm by chrisbirkinshaw »

hpservertech

  • Making baby steps
  • Posts: 3
    • View Profile
Re: 0810 installation script seems broken
« Reply #1 on: April 07, 2010, 08:25:31 pm »
I too get the same thing.

Trying to install on a Dell Lattitude D830 w/Nvidia video card.

tkmedia

  • wants to work for LinuxMCE
  • **
  • Posts: 937
    • View Profile
    • LMCECompatible
Re: 0810 installation script seems broken
« Reply #2 on: April 07, 2010, 08:44:06 pm »
I have seen similar issues when a connection to internet is not available.



HTH


Tim
My Setup http://wiki.linuxmce.org/index.php/User:Tkmedia

For LinuxMce compatible  systems and accessories
http://lmcecompatible.com/

hpservertech

  • Making baby steps
  • Posts: 3
    • View Profile
Re: 0810 installation script seems broken
« Reply #3 on: April 07, 2010, 11:17:33 pm »
Internet connection verified.  have tried on 3 different machines.  Able to ping local devices as well as get to the internet.

hpservertech

  • Making baby steps
  • Posts: 3
    • View Profile
Re: 0810 installation script seems broken
« Reply #4 on: April 07, 2010, 11:20:49 pm »
also, what I have noticed is that the during the install hen prompted for a user name/passage/machine name, that user does not have root access.  Running the shortcut on the desktop asks for password.  Entering in the password for the user that is created during above does not seem to be able to have rights.

Also verified this in a terminal window and doing a su.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5505
  • DOES work for LinuxMCE.
    • View Profile
Re: 0810 installation script seems broken
« Reply #5 on: April 08, 2010, 12:20:14 am »
can we get patches to test?

-Thom

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
Re: 0810 installation script seems broken
« Reply #6 on: April 09, 2010, 01:44:48 am »
I'm fine with bash scripting so think I can fix this - but I just wanted someone to explain why things are as they are - is there a reason or is the DVD install untested?

I tried running the following:

1. pre-install-from-DVD.sh
2. mce-install.sh

but it fails when installing pluto-orbiter with unmet dependencies. Strange thing is "dpkg -l | grep pluto-orbiter" shows it as installed! I have noticed the avenard.org was down at the time, but is back now. This could be the issue! I will try the install again tonight and update you all.

Chris

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
Re: 0810 installation script seems broken
« Reply #7 on: April 09, 2010, 10:16:51 am »
Ok, here is the diff for the /root/new-installer/full-install.sh file:

Code: [Select]
diff new-installer/full-install.sh new-installer-2/full-install.sh
1a2,3
> echo "Starting pre-install-from-DVD.sh"
> bash pre-install-from-DVD.sh

Here is the full modified file:

Code: [Select]
#!/bin/bash
echo "Starting pre-install-from-DVD.sh"
bash pre-install-from-DVD.sh
echo "Starting mce-install.sh"
echo "deb http://packages.medibuntu.org/ intrepid  free non-free">/etc/apt/sources.list.d/medibuntu.list
bash mce-install.sh
echo "Running post-install.sh"
bash post-install.sh
echo "Done!"

This seems to work!

Before you run the desktop LinuxMCE link, please run the following:

ifconfig | grep eth | wc -l

Output should be 2

and

ping avenard.org

If the ping fails then the install will fail.

Regards,

Chris

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3059
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: 0810 installation script seems broken
« Reply #8 on: April 09, 2010, 07:57:08 pm »
Next time someone does an install from the snapshots, please provide the following:
* version of the snapshot dvd
* /var/log/mce-installer-*.log

thanks

apagg

  • Veteran
  • ***
  • Posts: 60
    • View Profile
Re: 0810 installation script seems broken
« Reply #9 on: April 09, 2010, 08:19:19 pm »
Quote
1. Install snapshot DVD of 810

Did you select the bottom choice "LinuxMCE Install" when you installed kubuntu?

PS! I did a successful install of snapshot 22876 in VirtualBox some days ago.

chrisbirkinshaw

  • Guru
  • ****
  • Posts: 431
    • View Profile
Re: 0810 installation script seems broken
« Reply #10 on: April 12, 2010, 02:36:33 pm »
Quote
1. Install snapshot DVD of 810

Did you select the bottom choice "LinuxMCE Install" when you installed kubuntu?

PS! I did a successful install of snapshot 22876 in VirtualBox some days ago.

Yes. Problem is that the full-install.sh script does not call pre-install-from-DVD.sh unless you modify it. From my investigations I see that unless pre-install is called the Linux MCE sources are never added to /etc/apt/sources.list, so the install will never succeed - it simply fails as soon as it tries to install the first pluto specific package. If it is supposed to work differently then I am interested to hear how, hence my post here.

Regards,

Chris

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3059
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: 0810 installation script seems broken
« Reply #11 on: April 12, 2010, 02:44:31 pm »
pre-install-from-DVD.sh is executed during the creation of the DVD and does not need to run during the actual install.