PDA

View Full Version : The perfect setup - 6.10 server Pge 4 software installation


anotherbigal
8th February 2007, 22:12
Hi
I am following the Edgy Eft setup instructions but when I got to page 4 (8) and tried to "Install some software" I got the error message
"E: Couldn't find package libd4.3-dev"
I copied and pasted the instructions so it is not a typo. Anyone got any thoughts please. I havn't gone any further as, being a very green newbie at this I have no idea how important this is and if any subsequent actionms depend on having that file installed

till
9th February 2007, 13:05
You seem to have a typo in your command, the package is named libdb4.3-dev and not libd4.3-dev

anotherbigal
9th February 2007, 13:34
Hi Till, Thank you for the advice. Do not know how that happened. As I said it was pasted in, but when I looked the original is as you say. Will it be ok to run the whole command again? i.e.

apt-get install binutils cpp cpp-4.0 fetchmail flex gcc gcc-4.0 libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev linux-kernel-headers lynx m4 make ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++

Or should I just install that particulr part, and please, if so how?

martinfst
9th February 2007, 13:36
You can re-enter the same command. It will give a message about the already installed packages (if any)

anotherbigal
12th February 2007, 21:44
Hi again
Still working at page 4. When i ran apt-get install bind9 this came back
l# apt-get install bind9
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
bind9-doc
The following NEW packages will be installed
bind9
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 300kB of archives.
After unpacking 741kB of additional disk space will be used.
Get: 1 http://security.ubuntu.com edgy-security/main bind9 1:9.3.2-2ubuntu3.1 [300kB]
Fetched 300kB in 2s (128kB/s)
E: Sub-process /usr/sbin/dpkg-preconfigure --apt || true returned an error code (100)
E: Failure running script /usr/sbin/dpkg-preconfigure --apt || true

I think that is two error messages and now do not know if it is ok or not?

martinfst
12th February 2007, 22:21
It's not oke, but I noticed myself some weird Ubuntu update quircks yesterday. Please try the apt-get command again. Maybe a hickup in the repositories?

anotherbigal
13th February 2007, 09:58
I repeated the apt-get install quota again, then followed on with the remaining 5 instructions but still do not think all is as it should be. Here is the output.
# apt-get install quota
Reading package lists... Done
Building dependency tree
Reading state information... Done
quota is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@server1:/home/bigal# touch /quota.user /quota.group
touch: cannot touch `/quota.user': Permission denied
touch: cannot touch `/quota.group': Permission denied
root@server1:/home/bigal# chmod 600 /quota.*
chmod: changing permissions of `/quota.group': Operation not permitted
chmod: changing permissions of `/quota.user': Operation not permitted
root@server1:/home/bigal# mount -o remount /
root@server1:/home/bigal# quotacheck -avugm
quotacheck: Scanning /dev/hda1 [/] done
quotacheck: Checked 1794 directories and 23170 files
root@server1:/home/bigal# quotaon -avug
quotaon: using //quota.group on /dev/hda1 [/]: Device or resource busy
quotaon: using //quota.user on /dev/hda1 [/]: Device or resource busy
root@server1:/home/
Can anyone help please?

till
13th February 2007, 10:13
Please make sure that you are logged in as root user.

anotherbigal
13th February 2007, 11:37
Thank you for the reply
I think I was logged in as root, but now, when I tried so I could repeat the commands This came uplogin as: bigal
bigal@192.168.0.10's password:
Linux server1.example.com 2.6.17-10-server #2 SMP Tue Dec 5 22:29:32 UTC 2006 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Last login: Tue Feb 13 09:25:37 2007 from 192.168.0.11
-bash: /usr/bin/lesspipe: /bin/sh: bad interpreter: Not a directory
bigal@server1:~$ su
Password:
bash: /usr/bin/groups: /bin/sh: bad interpreter: Not a directory
bash: /usr/bin/lesspipe: /bin/sh: bad interpreter: Not a directory
root@server1:/home/bigal#

I appear to be logged in as root but now get these additional messages. I suppose this is the trouble with not knowing what I am doing, just following instructions and trying to learn from that.

falko
13th February 2007, 19:22
Did you accidentally delete these files?
I think the best is to do a clean re-install of the system.

anotherbigal
13th February 2007, 19:30
I was wondering if I had done something like that.
Ok. I will start again.
Thank you all for your help. It's all part of the learning curve

anotherbigal
21st February 2007, 21:26
Hi again
As you suggested, I have reinstalled from a clean disk . Carfully checking that there were no typo's this time round. A different problem now.# apt-get install binutils cpp cpp-4.0 fetchmail flex gcc gcc-4.0 libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev lynx m4 make ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package ncftp
This was cut and pasted into putty, but with the linux-kernal-headers removed as suggested earlier. I tried to re-run but got the same response. Where to go from here please?

till
21st February 2007, 21:32
Thats not critical, you can leave out ncftp. Just execute the command again but without ncftp in it.

anotherbigal
21st February 2007, 21:41
Thanks for the advice. Will do.

anotherbigal
16th March 2007, 23:03
Hi again.
After a long pause I am back trying to get my set up completed again.
I have got MySQL set up but am having trouble setting passwords. Here is my output
root@server1:/home/bigal# mysqladmin -u root password yourrootsqlpassword
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
root@server1:/home/bigal# mysqladmin -h server1.example.com -u root password yourrootsqlpassword
mysqladmin: connect to server at 'server1.example.com' failed
error: 'Access denied for user 'root'@'server1.example.com' (using password: NO)'
root@server1:/home/bigal#

Can anyone offer any help as to how to set the passwords please?

till
17th March 2007, 19:30
Your server seems to have a password already. Have you set it before or is this a root server where your provider has already setup a password for mysql?

anotherbigal
17th March 2007, 19:56
This was a clean install on a new machine so the only passwords that have been entered are my user password and my root password. There is only me here so there will be no others.

till
17th March 2007, 20:14
Are you able to login to mysql when you enter:

mysql -u root -p

and then enter your root password? You can quit the mysql promt by enetring "quit;".

anotherbigal
19th March 2007, 13:10
Hi Till

I am not able to log in to MySQL as you suggested. I get this response
root@server1:/home/bigal# MySQL -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
root@server1:/home/bigal#

I am at a loss to explain where I could have entered another password. I have used two. One is my user and one as my root password. What is more, now I do not know what my MySQL password could be, or, even if I did know, how I could go about changing it.
By the way, I tried to access MySQL both from my user account as well as when I was root, and tried both passwords, both times.

till
19th March 2007, 13:24
Please try this:

1) stop mysql with the start / stop script.
2) Open a new second SSH connection with e.g. putty and execute:

mysqld --skip-grant-tables

this starts mysql without authentication.

3) Now try to set a new mysql password in your first console with:

mysqladmin -u root password yourrootsqlpassword

4) Kill the mysql process in your second console that we started in 2) by pressing the keys: [ctrl] + c

anotherbigal
20th March 2007, 17:07
Thank you for the advice.
I was unable to change the password though
mysqladmin -u root password yourrootsqlpassword
mysqladmin:
You cannot use 'password' command as mysqld runs
with grant tables disabled (was started with --skip-grant-tables).
Use: "mysqladmin flush-privileges password '*'" instead
root@server1:/home/bigal# mysqladmin flush-privileges password '*'
mysqladmin: unable to change password; error: 'Can't find any matching row in the user table'
As you see I unsuccessfully tried the alternative '*' wildcard, but which ever way I tried I was unable to set a password.

falko
21st March 2007, 16:22
Try this link instead: http://community.postnuke.com/Article1273.htm