After many wasted hours and tens of re-installs I finally have it
working. The problem was AppArmor ("tail
/var/log/squeezecenter/server.log" and "tail /var/log/syslog" showed
the problem).

I did a few things to fix it (not sure if they're all necessary).

First I removed the broken squeezecenter and made sure its database
wasn't left hanging around:

Code:
--------------------
    
  sudo aptitude remove --purge squeezecenter
  sudo rm -r /var/lib/squeezecenter/cache/MySQL/
  
--------------------


Then I installed mysql-server-5 before installing squeezecenter, so I
could define apparmor's settings for it before the squeezecenter
installation started its configuration.

Then I followed the instructions here:
https://help.ubuntu.com/community/AppArmor#head-9861068c03e997d5a693610565bcb2abc15295c9
to disable the mysqld profile: 

Code:
--------------------
    
  sudo ln -s /etc/apparmor.d/profile.name /etc/apparmor.d/disable/
  apparmor_parser -R /etc/apparmor.d/profile.name
  
--------------------


But this wasn't enough. The squeezecenter install renames the existing
apparmor profile to .squeezecenter.orig which I think then becomes
active during the install and prevents connection to mysql. So I also
did this before installing squeezecenter:

Code:
--------------------
    
  sudo ln -s /etc/apparmor.d/usr.sbin.mysqld.squeezecenter.orig 
/etc/apparmor.d/disable
  
--------------------


So that when the install creates the .orig it is immediately found to
be disabled.

Installing squeezecenter finally worked after this.

Hopefully this is helpful.


-- 
greg-ubuntu
------------------------------------------------------------------------
greg-ubuntu's Profile: http://forums.slimdevices.com/member.php?userid=18068
View this thread: http://forums.slimdevices.com/showthread.php?t=48666

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to