Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I am trying to install mysql-5.0.96.tar.gz on my laptop(i5). I have found following commands from a website:
Quote:
To install and use a MySQL binary distribution, the basic command sequence looks like this:
shell> groupadd mysql
shell> useradd -r -g mysql mysql
shell> cd /usr/local
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server
I am getting following error:
Code:
groupadd: cannot lock /etc/group; try again later.
First off,
Support for 9.04 ended October 2010, while 9.10 ended April 2011
You do not get security updates.
I would strongly recommend you install a current version
Ubuntu 12.04.2 LTS is a long-term support release. It has continuous hardware support improvements as well as guaranteed security and support updates until April 2017.
Now, if you still want to stick with what you have.. http://askubuntu.com/questions/48025...e-with-apt-get
will give you some pointers on updating your sources.list thus allowing you to install mysql packaged by Ubuntu
I assumed you are trying to install via mysql-VERSION-OS.tar.gz because apt-get 'fails'
if not and neither of the above are acceptable, .. humour me and explain why
Honestly, upgrade
you currently have very high security risks
Hi,
I dont have the internet. I dont know if these changes would be useful or not. I have tried to install ubuntu 12.04 but i have encountered several problems. I have posted these problems on this forum. I have to buy an external disk for this purpose.
However i have tried and the update command is not working:
Code:
root@zulfiqar-laptop:~# sudo apt-get update
Err http://old-releases.ubuntu.com karmic Release.gpg
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/main Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/restricted Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/universe Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/multiverse Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates Release.gpg
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/main Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/restricted Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/universe Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/multiverse Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releaseses.ubuntu.com karmic-updates Release.gpg
Could not resolve 'old-releaseses.ubuntu.com'
Err http://security.ubuntu.com karmic-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/main Translation-en_IN
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/restricted Translation-en_IN
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/universe Translation-en_IN
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/multiverse Translation-en_IN
Could not resolve 'security.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/Release.gpg Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/main/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/restricted/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/universe/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/multiverse/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/Release.gpg Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/main/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/restricted/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/universe/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/multiverse/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releaseses.ubuntu.com/ubuntu/dists/karmic-updates/Release.gpg Could not resolve 'old-releaseses.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/Release.gpg Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/main/i18n/Translation-en_IN.bz2 Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/restricted/i18n/Translation-en_IN.bz2 Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/universe/i18n/Translation-en_IN.bz2 Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/multiverse/i18n/Translation-en_IN.bz2 Could not resolve 'security.ubuntu.com'
W: Some index files failed to download, they have been ignored, or old ones used instead.
root@zulfiqar-laptop:~# vi /etc/apt/sources.list
root@zulfiqar-laptop:~# sudo apt-get update
Err http://old-releases.ubuntu.com karmic Release.gpg
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/main Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/restricted Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/universe Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic/multiverse Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates Release.gpg
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/main Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/restricted Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/universe Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://old-releases.ubuntu.com karmic-updates/multiverse Translation-en_IN
Could not resolve 'old-releases.ubuntu.com'
Err http://security.ubuntu.com karmic-security Release.gpg
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/main Translation-en_IN
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/restricted Translation-en_IN
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/universe Translation-en_IN
Could not resolve 'security.ubuntu.com'
Err http://security.ubuntu.com karmic-security/multiverse Translation-en_IN
Could not resolve 'security.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/Release.gpg Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/main/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/restricted/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/universe/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic/multiverse/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/Release.gpg Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/main/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/restricted/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/universe/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/karmic-updates/multiverse/i18n/Translation-en_IN.bz2 Could not resolve 'old-releases.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/Release.gpg Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/main/i18n/Translation-en_IN.bz2 Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/restricted/i18n/Translation-en_IN.bz2 Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/universe/i18n/Translation-en_IN.bz2 Could not resolve 'security.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/multiverse/i18n/Translation-en_IN.bz2 Could not resolve 'security.ubuntu.com'
W: Some index files failed to download, they have been ignored, or old ones used instead.
root@zulfiqar-laptop:~#
My previous source.list file was:
Code:
deb http://in.archive.ubuntu.com/ubuntu/ karmic universe
deb-src http://in.archive.ubuntu.com/ubuntu/ karmic universe
deb http://in.archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ karmic-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://in.archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://in.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://in.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu karmic partner
# deb-src http://archive.canonical.com/ubuntu karmic partner
deb http://security.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted
deb http://security.ubuntu.com/ubuntu karmic-security universe
deb-src http://security.ubuntu.com/ubuntu karmic-security universe
deb http://security.ubuntu.com/ubuntu karmic-security multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse
Now the file is:
Code:
#deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)]/ karmic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu/ karmic universe
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic universe
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://old-releases.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://in.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
Kindly guide me how to install ubuntu using the binary.
make && make install
:
:
(Sorry i dont have the entire output
../depcomp: line 571: exec: g++: not found
make[2]: *** [my_new.o] Error 127
make[2]: Leaving directory `/usr/local/mysql-5.0.96/mysys'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/mysql-5.0.96'
make: *** [all] Error 2
and script
Code:
root@zulfiqar-laptop:/usr/local/mysql-5.0.96# ./scripts/mysql_install_db
FATAL ERROR: Could not find /usr/local/mysql/bin/my_print_defaults
If you are using a binary release, you must run this script from
within the directory the archive extracted into. If you compiled
MySQL yourself you must run 'make install' first.
root@zulfiqar-laptop:/usr/local/mysql-5.0.96# cd
root@zulfiqar-laptop:~# ls
root@zulfiqar-laptop:~# cd mysql
bash: cd: mysql: No such file or directory
root@zulfiqar-laptop:~#
"apt-get update" isn't working because you don't have an internet connection (and because Karmic is end-of-life).
"make" is failing because you don't have gcc installed. You can easily install this (as part of the useful "build-essential" metapackage) on a supported Ubuntu release with an internet connection by using the following commands:
Hi,
my friend thanks for your response but you are reminding me of the famous problem. I tried several times on this forum to install ubuntu 12.04 but it failed. There must be some solution for this make file problem. I have found a link for this but I dont have yum on my system. So i am stuck.
Kindly guide me otherwise it would become another unsolved problem.
Zulfi.
I apologize that I am unable to Support an Unsupported release of Ubuntu.
There are dozens of distributions listed at http://www.distrowatch.com and I hope that you are able to find a currently-supported distro that supports your hardware. Good luck!
After reviewing your other posts with regards to installing Ubuntu, I think you need some 'hands on' help.
do a web search for
LUG <your city> <your country>
LUG = Linux user group
Hopefully you will find one local to yourself,
You can then introduce yourself on their mailing list, and go along to a meeting taking your laptop. I'm sure they will be willing to help.
It will be like having a bunch of experts with you.. because you will have a bunch of experts with you
Hi,
Thanks for this interesting plan. Actually I dont find unix users so much in my area. Every body uses windows. I would use this plan as a last resort. First i would try to act on another advise given to me by one your forum experts i.e. installing ubuntu on an external h/d. If i get any problem i would post on this forum. If unsolved i would try your option. Thanks for your time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.