Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hello Evo2, I am using Debian Lenny with the default Gnome desktop. I have only started Synaptic through the Gnome desktop and has worked perfectly up to now. Synaptic does prompt me for root password and accepts it when I try to run it. The Default Gnome dsktop also provides annother utility to install programs called "Add/Remove Aplications" Before this problem I have not used it as I am familiar with Synaptic. I just tried installing a test program with "Add/Remove Applications" just before writing to you and it also reports the same message.
One could only imagine that the operating system is not allowing this directory to be created. I have used Synaptic several times and one would expect this directory would exist. I have checked in the /home directory and there are only 2 directories. The 2 directories are the 2 users of the system, jon and jill which of couse have plenty of sub directories and files in them.
On my system synaptic is located in /root/.synaptic. Inside .synaptic directory there are the follwing files. lock, lock.non-interactive, log, options, synaptic.conf. I hope this info will shed some light. Your help always appriciated, Jon
Ok, did some more thinking on what could have caused this problem. The only thing that comes to mind is me changing the ownership of a file using chown. I typed the code in wrong several times. I was not familiar and may have inadvertantly changed ownership of something by accedent although I do not think so. The file I was changing ownership on was located in Desktop so I dont realy think this is why. figure I should give all info I can think of. Thanks again, Jon
Last edited by Elixer; 01-05-2010 at 12:10 AM.
Reason: aditional info
"/home/root/" should not (normally) exist. The root home directory is simply "/root". It is quite strange that synaptic is looking in "/home/root".
I don't use synaptic, so I'm not sure of how much help I can be. However you might get more usefull errors messages if you start synaptic from the command line. Please open a terminal, run the following commands and post their output:
Hello Evo2, I get the exact same results using the command prompt. With my very limited expereance with Debian Lenny and Xandros I have to agree with your thoughts on /root and not /home/root. I have checked and made sure /root is in the proper place. Remember it is not just Synaptic that is doing this it is also the other app install program "Add\Remove Programs" that comes as default when you install Debian Lenny.
Although I can not be 100% positive I realy do not think I have done something to the system to cause this issue. I have not changed any configuration files other than my daughters save game file located as follows home/jon/.macromedia/Flash_Player/#SharedObjects/SUZEAMJF/#localWithNet/home/jon/Desktop/Games/Machinarium/Machinarium/Machinarium.sol. I also needed to use chown to change the ownership to my new user name on the Debian Lenny system. Agian I do not believe I messed anything up doing so but it was in the time period between when I ast used Synaptic and when I discoverd it did not work. Thanks for your paitence with me, Jon
Here is what is reported. It is identical to using synaptic and "Add/Remove Programs" from the Gnone desktop.
E: ERROR: could not create configuration directory /home/root/.synaptic - mkdir (2 No such file or directory)
There were no commands included in the last corrospondance.
I could only imagine that both Synaptic and "Add/Remove Programs use the same Linux program but just offer a graphical interface. If this be the situation and both use something like apt-get, perhaps there is a configuration file associated with this said program. If that is fouled up somhow it could be giving me the problem. Is there a safe way for me to use apt-get (or other) to try to install a sample application just to verify where the start of the problem is? Thanks, so much.Jon
Ok I get it now, here is the code typed in line by line. After line # 3 "su" I did enter my password. I hope this is what you wanted as it only makes sence.
And here is the pop up window contents that displays after the last command, synaptic
E: ERROR: could not create configuration directory /home/root/.synaptic - mkdir (2 No such file or directory)
Interestingly after typing in the command "grep ^root /etc/passwd we get " root:x:0:0:root:/home/root:/bin/bash" and there is no /home/root on my system and this comes up in the error message as well when trying to run synaptic.
Ok, found the problem: it is really weird. In the /etc/passwd file roots home directory set as "/home/root/". The passwd file *defines* the home directory, so synaptic is doing nothing wrong. Somehow your /etc/passwd file got screwed up. Do you have any idea how this happened?
Now, how did this happen? Two things come to mind. I had the computer crash 2 times in a row requiring a reboot when I switched users with the Gnome "switch user" icon in the menu bar. This happened in that time frame when this problem came about. I do not recall the events as to what I was doing but there were several open programs running when this happened. The other possibility may be when I was messing with the menu bar icons. At one point several of the icons I introduced would not function so I deleted them and then reinstalled and things are fine now. One was " user switcher"
One would imagine for this to get messed up I would need be at the command prompt with root privileges and type some command like privileges or something. This I definitely have not done. Jon
I can't imagine how any of the things you described could have made that change to /etc/passwd. Anyway in the process of fixing this it seems you've learned a little more about your system which will hopefully help you if (when) other things go wrong in the future.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.