Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witajcie,
Napotkałem pewien problem podczas instalacji mysqla i nie bardzo wiem jak sobie z nim poradzić:
/# aptitude install mysql-server [ 0%] Building dependency tree The following partially installed packages will be configured: mysql-server mysql-server-5.1 No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used. Setting up mysql-server-5.1 (5.1.66-0+squeeze1) ... Stopping MySQL database server: mysqld. 121228 18:01:24 [Note] Plugin 'FEDERATED' is disabled. 121228 18:01:24 InnoDB: Initializing buffer pool, size = 8.0M 121228 18:01:24 InnoDB: Completed initialization of buffer pool 121228 18:01:25 InnoDB: Started; log sequence number 0 44233 121228 18:01:25 InnoDB: Starting shutdown... 121228 18:01:30 InnoDB: Shutdown completed; log sequence number 0 44233 insserv: warning: script 'owserver' missing LSB tags and overrides insserv: There is a loop between service openmediavault-beep and owserver if stopped insserv: loop involving service owserver at depth 2 insserv: loop involving service openmediavault-beep at depth 1 insserv: Stopping owserver depends on openmediavault-beep and therefore on system facility `$all' which can not be true! insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header dpkg: error processing mysql-server-5.1 (--configure): subprocess installed post-installation script returned error exit status 1 configured to not write apport reports dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.1; however: Package mysql-server-5.1 is not configured yet. dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured configured to not write apport reports Errors were encountered while processing: mysql-server-5.1 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up mysql-server-5.1 (5.1.66-0+squeeze1) ... Stopping MySQL database server: mysqld. insserv: warning: script 'owserver' missing LSB tags and overrides insserv: There is a loop between service openmediavault-beep and owserver if stopped insserv: loop involving service owserver at depth 2 insserv: loop involving service openmediavault-beep at depth 1 insserv: Stopping owserver depends on openmediavault-beep and therefore on system facility `$all' which can not be true! insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header dpkg: error processing mysql-server-5.1 (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.1; however: Package mysql-server-5.1 is not configured yet. dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: mysql-server-5.1 mysql-server
Próbowałem usuwać wszystkie pliki konfiguracyjne i powiązane pakiety ale niestety bez zmian://
Pomożecie?
Z góry dziękuje.
Ostatnio edytowany przez Jacq (2012-12-28 18:16:29)
Offline
[quote=Jacq]
insserv: warning: script 'owserver' missing LSB tags and overrides
[/quote]
Uwalony skrypt startowy owserver. Skąd go masz? Widzę, że w Wheezym jest, ale mysql 5.1 to raczej Squeeze. Zatem jakiś z zewnątrz?
Offline
Tak z zewnatrz, jego postac to
#! /bin/sh # /etc/init.d/owserver case "$1" in start) /opt/owfs/bin/owserver -d /dev/ttyUSB0 -p 3001 ;; stop) killall owserver ;; *) echo "Usage: $N {start|stop}" >&2 exit 1 ;; esac exit 0
Mam go z jakiegoś forum:)
Jak zatem podpinać to pod crona by uniknąć takich problemów?
Ostatnio edytowany przez Jacq (2012-12-29 00:24:22)
Offline
Może inaczej – spróbuj nagłówek mu dać: http://dug.net.pl/tekst/157/jak_umiescic_swoj_skrypt_w_skryptach_startowych__/
Offline
A można ten poprzedni jakoś usunąć?
Offline
update-rc.d -f owserver remove
Offline
Ok, ale czego wystepuje poniższy konflikt:
:/etc/init.d# insserv owserver insserv: script owserver is not an executable regular file, skipped! insserv: warning: script 'owfs' missing LSB tags and overrides insserv: There is a loop between service openmediavault-beep and owfs if stopped insserv: loop involving service owfs at depth 2 insserv: loop involving service openmediavault-beep at depth 1 insserv: Stopping owfs depends on openmediavault-beep and therefore on system facility `$all' which can not be true! insserv: exiting now without changing boot order!
Offline
Jakieś inne uwalone skrypty najwyraźniej jeszcze masz. ;) A co do początku, to chyba nie nadałeś skryptowi prawa do wykonywania.
Offline
Uprawnienia poprawiłem:)
Jeśli chodzi o ten drugi z ktorym jest konflikt, ma on ten nagłówek:
etc/init.d# cat openmediavault-beep #!/bin/sh ### BEGIN INIT INFO # Provides: openmediavault-beep # Required-Start: $all # Required-Stop: $all # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Beeps after system start or before shutdown ### END INIT INFO case "$1" in start|"") beep -f 3000 -l 100 -n -f 3500 -l 100 -r 2 ;; stop) beep -f 3000 -l 100 -r 2 -n -f 2000 -l 150 ;; *) echo "Usage: openmediavault-beep [start|stop]" >&2 exit 3 ;; esac
Offline
Według tego zobacz: http://wiki.debian.org/LSBInitScripts
No i jeszcze z owfs też coś jest nie tak.
Offline
Time (s) | Query |
---|---|
0.00009 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00160 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.117.75.218' WHERE u.id=1 |
0.00076 | UPDATE punbb_online SET logged=1732938555 WHERE ident='18.117.75.218' |
0.00030 | SELECT * FROM punbb_online WHERE logged<1732938255 |
0.00082 | DELETE FROM punbb_online WHERE ident='3.133.138.129' |
0.00065 | DELETE FROM punbb_online WHERE ident='3.149.23.124' |
0.00019 | SELECT topic_id FROM punbb_posts WHERE id=218817 |
0.00030 | SELECT id FROM punbb_posts WHERE topic_id=22585 ORDER BY posted |
0.00030 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=22585 AND t.moved_to IS NULL |
0.00035 | SELECT search_for, replace_with FROM punbb_censoring |
0.00104 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=22585 ORDER BY p.id LIMIT 0,25 |
0.00082 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=22585 |
Total query time: 0.00726 s |