Current time: 05-16-2024, 04:08 PM Hello There, Guest! (LoginRegister)


Thread Closed 
While updateing from 1.0.0: syntax error near unexpected token `('
Author Message
kleidi Offline
Junior Member
*

Posts: 16
Joined: May 2009
Reputation: 0
Post: #1
While updateing from 1.0.0: syntax error near unexpected token `('
Hello there!

I'm making an update from 1.0.0 to 1.0.2 but, on step 3 fro this "How to"
http://isp-control.net/documentation/dok...ion:debian
i receive an error while i tried to run this command:
Code:
# aptitude install $ (cat ./docs/Debian/debian-packages-`lsb_release -cs`)
The error is:
Code:
(root@W003)-(/usr/local/src/ispcp/ispcp-omega-1.0.2) $ aptitude install $ (cat ./docs/Debian/debian-packages-`lsb_release -cs`)
-bash: syntax error near unexpected token `('
Can someone help me , please?

PS: I'm using an updated Debian lenny:
Code:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 5.0.3 (lenny)
Release:        5.0.3
Codename:       lenny
(This post was last modified: 09-21-2009 11:38 PM by kleidi.)
09-21-2009 11:30 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: While updateing from 1.0.0: syntax error near unexpected token `('
theres a space to much:

"$(" instead of "$ ("

Code:
aptitude install $(cat ./docs/Debian/debian-packages-`lsb_release -cs`)

/J
09-21-2009 11:49 PM
Visit this user's website Find all posts by this user
kleidi Offline
Junior Member
*

Posts: 16
Joined: May 2009
Reputation: 0
Post: #3
RE: While updateing from 1.0.0: syntax error near unexpected token `('
(09-21-2009 11:49 PM)joximu Wrote:  theres a space to much:

"$(" instead of "$ ("

Code:
aptitude install $(cat ./docs/Debian/debian-packages-`lsb_release -cs`)

/J

Thank you for your fast reply! When i run that command i received:
Code:
(root@W003)-(/usr/local/src/ispcp/ispcp-omega-1.0.2) $ aptitude install $(cat ./docs/Debian/debian-packages-`lsb_release -cs`)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done

(root@W003)-(/usr/local/src/ispcp/ispcp-omega-1.0.2) $

...but, at the instruction page of updateing ispcp appear those instructions on step3
Code:
Make sure you have added the non-free into your /etc/apt/sources.list:

deb     http://ftp.debian.org/debian/            lenny         main contrib non-free
deb     http://security.debian.org/              lenny/updates main contrib non-free

(when you get to the courier screen select 'no' to web directories)

(when you get to the postfix screen select 'internet site' and then type 'root' for mail. If you've set debian up correctly on install your domain should be already on screen.

Select 'no' to force sync updates.)

(when you get to the proftpd screen, select 'standalone')

(when you get to the rootkithunter screen, select two time 'yes')

... and i don't receive any of this screens! Is this ok?

Thanks again!
09-21-2009 11:59 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: While updateing from 1.0.0: syntax error near unexpected token `('
hm...

try this:

aptitude install $(cat ./docs/Debian/debian-packages-lenny)

/J
09-22-2009 12:04 AM
Visit this user's website Find all posts by this user
kleidi Offline
Junior Member
*

Posts: 16
Joined: May 2009
Reputation: 0
Post: #5
RE: While updateing from 1.0.0: syntax error near unexpected token `('
The same results !
Thx anyway ... i have made the update without problems, but, seems that ispcp settings dose not exist anymore. Can you help me to put old settings online? I have made a backup like those instructions:
http://www.isp-control.net/documentation...upgrade:rc
09-22-2009 12:38 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: While updateing from 1.0.0: syntax error near unexpected token `('
You should have the original settings in /var/www/ispcp/backup

What is not working?

/J
09-22-2009 12:52 AM
Visit this user's website Find all posts by this user
kleidi Offline
Junior Member
*

Posts: 16
Joined: May 2009
Reputation: 0
Post: #7
RE: While updateing from 1.0.0: syntax error near unexpected token `('
I saw them , but i don't know if it is correct to copy them all in the current ispcp folder
Code:
(root@W003)-(/var/www/ispcp) $ cd backups
(root@W003)-(/var/www/ispcp/backups) $ ls -al
total 2656
drwxr-xr-x 2 root root   4096 Sep 21 00:00 .
drwxr-xr-x 7 root root   4096 Mar 30 09:58 ..
-rw-r----- 1 root root  63078 Sep  6 00:00 config-backup-2009.09.06-000002.tar.bz2
-rw-r----- 1 root root  63078 Sep  7 00:00 config-backup-2009.09.07-000002.tar.bz2
-rw-r----- 1 root root  63078 Sep  8 00:00 config-backup-2009.09.08-000002.tar.bz2
-rw-r----- 1 root root  63078 Sep  9 00:00 config-backup-2009.09.09-000001.tar.bz2
-rw-r----- 1 root root  63078 Sep 12 00:00 config-backup-2009.09.12-000002.tar.bz2
-rw-r----- 1 root root  63078 Sep 13 00:00 config-backup-2009.09.13-000001.tar.bz2
-rw-r----- 1 root root  63078 Sep 14 00:00 config-backup-2009.09.14-000003.tar.bz2
-rw-r----- 1 root root  63078 Sep 15 00:00 config-backup-2009.09.15-000002.tar.bz2
-rw-r----- 1 root root  63078 Sep 16 00:00 config-backup-2009.09.16-000001.tar.bz2
-rw-r----- 1 root root  63078 Sep 17 00:00 config-backup-2009.09.17-000001.tar.bz2
-rw-r----- 1 root root  63078 Sep 18 00:00 config-backup-2009.09.18-000002.tar.bz2
-rw-r----- 1 root root  63078 Sep 19 00:00 config-backup-2009.09.19-000001.tar.bz2
-rw-r----- 1 root root  63078 Sep 20 00:00 config-backup-2009.09.20-000001.tar.bz2
-rw-r----- 1 root root  63078 Sep 21 00:00 config-backup-2009.09.21-000002.tar.bz2
-rw-r----- 1 root root 110734 Sep  6 00:00 ispcp-2009.09.06-000002.sql.bz2
-rw-r----- 1 root root 111839 Sep  7 00:00 ispcp-2009.09.07-000002.sql.bz2
-rw-r----- 1 root root 112837 Sep  8 00:00 ispcp-2009.09.08-000002.sql.bz2
-rw-r----- 1 root root 113917 Sep  9 00:00 ispcp-2009.09.09-000001.sql.bz2
-rw-r----- 1 root root 114899 Sep 12 00:00 ispcp-2009.09.12-000002.sql.bz2
-rw-r----- 1 root root 116072 Sep 13 00:00 ispcp-2009.09.13-000001.sql.bz2
-rw-r----- 1 root root 117174 Sep 14 00:00 ispcp-2009.09.14-000003.sql.bz2
-rw-r----- 1 root root 118018 Sep 15 00:00 ispcp-2009.09.15-000002.sql.bz2
-rw-r----- 1 root root 119265 Sep 16 00:00 ispcp-2009.09.16-000001.sql.bz2
-rw-r----- 1 root root 120432 Sep 17 00:00 ispcp-2009.09.17-000001.sql.bz2
-rw-r----- 1 root root 121385 Sep 18 00:00 ispcp-2009.09.18-000002.sql.bz2
-rw-r----- 1 root root 122574 Sep 19 00:00 ispcp-2009.09.19-000001.sql.bz2
-rw-r----- 1 root root 123730 Sep 20 00:00 ispcp-2009.09.20-000001.sql.bz2
-rw-r----- 1 root root 124820 Sep 21 00:00 ispcp-2009.09.21-000002.sql.bz2
(root@W003)-(/var/www/ispcp/backups) $
(This post was last modified: 09-22-2009 12:58 AM by kleidi.)
09-22-2009 12:55 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: While updateing from 1.0.0: syntax error near unexpected token `('
the tar.bz2 contain the /etc/ispcp - the sql of course the database :-)

at least they should help to get the correct values...

/J
09-22-2009 01:09 AM
Visit this user's website Find all posts by this user
kleidi Offline
Junior Member
*

Posts: 16
Joined: May 2009
Reputation: 0
Post: #9
RE: While updateing from 1.0.0: syntax error near unexpected token `('
I hope that this will be the last question:
How to restore the database ?

I appreciate your help and i thank you very much Wink
09-22-2009 01:43 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #10
RE: While updateing from 1.0.0: syntax error near unexpected token `('
hm... out of my mind...

extract the backup (-> ispcp-xxx.sql)
log into mysql
use db ispcp
source the ispcp-xxx.sql file (all tables are removed and created from fresh)

maybe make another backup before :-)

you also can load the sql file in pma as sql-source

/J
09-22-2009 02:40 AM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)