system commands like "ls" says "cannot connect to database"
DebianThis forum is for the discussion of Debian Linux.
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.
system commands like "ls" says "cannot connect to database"
Good day everyone! I"m not 100% sure that this is the right forum for this, however i've been having a problem with Debian that i can't seem to find a solution to. I"m fairly new to Debian and I'm running version 4.0. Everytime i type in a command such as "ls", "chown", etc it gives me the response "could not connect to database. It always executes the command but it leaves me that message prior to displaying any output from the command.
I noticed that it does the same thing when it's booting. I checked the DMESG file and the "could not connect to database" message was no where to be found, however i see it when the machine is booting up. I have both PostgreSQL v7.1 and 8 as well as MySQL running. I'm not sure why three DB's are running but they are. I also have apache and apache2 and some funky gForge program that I'm also having trouble getting rid of. Anyone have any suggestions?
Thanks for the help.
Rams
P.S. if i posted this in the wrong forum, can someone recomend another?
Some commands, like locate, need a database to search through. To update this database for locate, issue the "updatedb" command (w/o the ") as root. Probably won't solve your issue though...
Use the aptitude program (or it's graphical sister Synaptic) to install and remove programs and packages. In aptitude, use the / key to enter a search string and the n key to cycle through the results. The + and - keys on the Num. keyboard (with Num-lock on!) install or remove programs. Use the g key twice to actually start the install/removal process.
hostfessionals:/home/rams# echo $0
bash
hostfessionals:/home/rams# type ls
ls is aliased to `ls --color'
hostfessionals:/home/rams# echo $LD_LIBRARY_PATH
I installed Debian myself on a extra box i had. I used the netinst CD to install it. I don't know if that was the right cd or not. The "updatedb" command still didn't resolve the problem. But I never knew about it. Just read the man page and it seems pretty useful.
Hmmm! It's not donig it anymore, I'm not sure what the echo statements did, but now i'ts allowing to do everything without displaying that message. THANKS!!!
Yeah I had seen, just being scared that he would change the system with aptitude and loose information.
Sorry
Quote:
Originally Posted by Rams3377
Hmmm! It's not donig it anymore, I'm not sure what the echo statements did, but now i'ts allowing to do everything without displaying that message. THANKS!!!
Hummmm more and more strange!
The echo command simply displays your shell so it has no influence.
<paranoiac version>
Maybe this box is being monitored by someone looking at what every command typed.
</>
There would be other commands to run to know what's going on there.
Best is to ask the person who installed it..
Quote:
Originally Posted by Rams3377
I installed Debian myself on a extra box i had. I used the netinst CD to install it. I don't know if that was the right cd or not. The "updatedb" command still didn't resolve the problem. But I never knew about it. Just read the man page and it seems pretty useful.
I asked you about THIS machine, not another one...
And yes the netinst is the method I use.
Could be still that I'm completly missing the point in this thread.. Maybe nothing critical..
I'm going to keep an eye on it through out the day, and I'll post back here if anything strange happens. I"m mostly using this box to build a web platform so i was immediately lost. I got gForge uninstalled thanks for the help with that as well. I never used that app before so i wasn't to sure of it. But it got some high remarks in the forum.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.