The perfect setup - 6.10 server Pge 4 software installation

Discussion in 'HOWTO-Related Questions' started by anotherbigal, Feb 8, 2007.

  1. anotherbigal

    anotherbigal New Member

    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
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You seem to have a typo in your command, the package is named libdb4.3-dev and not libd4.3-dev
     
  3. anotherbigal

    anotherbigal New Member

    apt-get install

    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?
     
  4. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    You can re-enter the same command. It will give a message about the already installed packages (if any)
     
  5. anotherbigal

    anotherbigal New Member

    Page 4 (10) DNS server

    Hi again
    Still working at page 4. When i ran apt-get install bind9 this came back
    HTML:
    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?
     
  6. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    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?
     
  7. anotherbigal

    anotherbigal New Member

    6.10 server Page 4 (8)

    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.
    HTML:
    # 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?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Please make sure that you are logged in as root user.
     
  9. anotherbigal

    anotherbigal New Member

    6.10 server Page 4 (8)

    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 up
    HTML:
    login as: bigal
    [email protected]'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.
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Did you accidentally delete these files?
    I think the best is to do a clean re-install of the system.
     
  11. anotherbigal

    anotherbigal New Member

    6.10 server Page 4 (8)

    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
     
  12. anotherbigal

    anotherbigal New Member

    E: Couldn't find package ncftp

    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.
    HTML:
    # 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?
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats not critical, you can leave out ncftp. Just execute the command again but without ncftp in it.
     
  14. anotherbigal

    anotherbigal New Member

    Thanks for the advice. Will do.
     
  15. anotherbigal

    anotherbigal New Member

    How To 6.10 server Webpage 4 (11) MySQL

    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
    HTML:
    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?
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    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?
     
  17. anotherbigal

    anotherbigal New Member

    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.
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    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;".
     
  19. anotherbigal

    anotherbigal New Member

    Hi Till

    I am not able to log in to MySQL as you suggested. I get this response
    HTML:
    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.
     
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    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
     

Share This Page