Re: Problem after upgrading from 1.7.9 to 1.7.10-1 - system commands not found
On Sun, Mar 11, 2012 at 12:35:02AM +0100, Fredrik Ludvigsen wrote: I think I solved this, the files /etc/bash.bash_logout /etc/profile.d /etc/profile.d/tzset.sh /etc/profile.d/tzset.csh /etc/profile.d/lang.csh /etc/profile.d/lang.sh /etc/bash.bashrc /etc/skel/.inputrc /etc/skel/.profile /etc/skel/.bashrc /etc/skel/.bash_profile /etc/profile were all located in /etc/defaults/etc moving these to /etc solved this issue for me. Files under /etc/defaults are there for a reason: they are suppossed to be a safe fall-back reference of some config files, so IMHO, in case you don't have any of those files under /etc/, copying them (i.e. not moving them) is a better move. -- Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56 signature.asc Description: Digital signature
Re: Problem after upgrading from 1.7.9 to 1.7.10-1 - system commands not found
I think I solved this, the files /etc/bash.bash_logout /etc/profile.d /etc/profile.d/tzset.sh /etc/profile.d/tzset.csh /etc/profile.d/lang.csh /etc/profile.d/lang.sh /etc/bash.bashrc /etc/skel/.inputrc /etc/skel/.profile /etc/skel/.bashrc /etc/skel/.bash_profile /etc/profile were all located in /etc/defaults/etc moving these to /etc solved this issue for me. -Fredrik -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Problem after upgrading from 1.7.9 to 1.7.10-1 - system commands not found
So just an update as to what ended up happening to my Cygwin --- Yes, the commands were available when I typed the full path. I should have known that. But updating the permissions to 644 did not work. I could not set the owner and group to root because there weren't such user and group (mine is a corporate PC with domain, if that helps). So I ended up removing the Cygwin and reinstalling and now it is working fine. Thank you for your help, Bilig --- Bilig Ordos writes: After this, I'm still having the same issue - I can only execute the internal bash commands, which are the commands listed by doing help from the shell. I'm not able to run any other commands such as ls, uname, and man ... Others have mentioned things for you to try. I'm just going to respond to this little bit above. The commands are likely still present, it's just that until things are fixed you'll have to type a little bit more. You have to give the full path to run commands. For instance, to run 'ls' you have to enter '/bin/ls' and to run 'chown' you have to enter '/bin/chown'. Once the file perms are set properly, as outlined in another response, you won't need to type the extra stuff anymore. HTH, ..mark -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Problem after upgrading from 1.7.9 to 1.7.10-1 - system commands not found
On Feb 24 22:07, David Sastre Medina wrote: Please check and correct perms if necessary in: /etc/bash.bash_logout /etc/profile.d /etc/profile.d/tzset.sh /etc/profile.d/tzset.csh /etc/profile.d/lang.csh /etc/profile.d/lang.sh /etc/bash.bashrc /etc/skel/.inputrc /etc/skel/.profile /etc/skel/.bashrc /etc/skel/.bash_profile /etc/profile All of them should have owner/group root.root and 644 perms (rw-r--r--) The directories should have 755 permissions as well. David, when do you plan to update the package? THe permissions are really a bad problem. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Problem after upgrading from 1.7.9 to 1.7.10-1 - system commands not found
On Mon, Feb 27, 2012 at 08:26:06PM +0100, Corinna Vinschen wrote: David, when do you plan to update the package? THe permissions are really a bad problem. Sorry. I'm requesting an RFU now. -- Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56 signature.asc Description: Digital signature
Problem after upgrading from 1.7.9 to 1.7.10-1 - system commands not found
I've been happy with 1.7.9, but couldn't resist my curiosity so ran the 1.7.10-1 setup today. During the process it complained that Cygwin is running and offered me options to either stop the Cygwin and try again, or continue and reboot after it is done. So I selected to continue and then rebooted. But when I launched the Cywin console/Mintty, I did not have most of the system commands, such as ls and which, but commands like cd and alias are there. I tried running the setup again (made sure all the packages I used to have are selected) but did not help. rebooted again and it is the same. How can I recover from this? I hate to reinstall from scratch as doing that will make me lose a lot of customization, such as ssh keys, etc. Please see below for examples and logs. My system is Win 7 Pro, 64-bit. Thank you, Bilig -bash-4.1$ pwd /usr/bin -bash-4.1$ -bash-4.1$ -bash-4.1$ ls -bash: ls: command not found -bash-4.1$ which -bash: which: command not found Logs from the /var/log (I did not have the .full log from the failed setup because I ran the setup again): 2012/02/24 14:32:45Starting cygwin install, version 2.764 2012/02/24 14:32:45io_stream_cygfile: fopen(/etc/setup/net-proxy-host) failed 2 No such file ordirectory 2012/02/24 14:32:45io_stream_cygfile: fopen(/etc/setup/net-proxy-port) failed 2 No such file ordirectory 2012/02/24 14:32:45io_stream_cygfile: fopen(/etc/setup/extrakeys) failed 2 No such file ordirectory 2012/02/24 14:32:45io_stream_cygfile: fopen(/etc/setup/chooser_window_settings) failed 2 No suchfile or directory 2012/02/24 14:32:45Current Directory: C:\Users\boyun\Downloads 2012/02/24 14:32:45User has backup/restore rights 2012/02/24 14:32:45Changing gid to Administrators 2012/02/24 14:32:45Could not open service McShield for query, start and stop. McAfee may not beinstalled, or we don't have access. 2012/02/24 14:32:47source: network install 2012/02/24 14:32:48root: C:\cygwin binary system 2012/02/24 14:32:50Selected local directory: C:\Users\boyun\Downloads 2012/02/24 14:32:51net: Direct 2012/02/24 14:32:54site: http://cygwin.mirrors.hoobly.com/ 2012/02/24 14:33:37DownloadedC:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/_update-info-dir/_update-info-dir-01014-1.tar.bz2 2012/02/24 14:33:39DownloadedC:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/base-files/base-files-4.0-9.tar.bz2 2012/02/24 14:33:50DownloadedC:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/coreutils/coreutils-8.15-1.tar.bz2 2012/02/24 14:33:52DownloadedC:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/csih/csih-0.9.5-1.tar.bz2 2012/02/24 14:33:52DownloadedC:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/cygrunsrv/cygrunsrv-1.36-1.tar.bz2 2012/02/24 14:33:55DownloadedC:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/cygutils/cygutils-1.4.8-1.tar.bz2 2012/02/24 14:34:03DownloadedC:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/cygwin/cygwin-1.7.10-1.tar.bz2 2012/02/24 14:34:05DownloadedC:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/db/db4.5/libdb4.5/libdb4.5-4.5.20.2-3.tar.bz2 2012/02/24 14:34:06DownloadedC:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/pcre/libpcre0/libpcre0-8.21-2.tar.bz2 2012/02/24 14:34:07Running preremove script for _update-info-dir 2012/02/24 14:34:07Running preremove script for base-files 2012/02/24 14:34:07running: C:\cygwin\bin\bash.exe --norc --noprofile /etc/preremove/base-files.sh 2012/02/24 14:34:10Running preremove script for coreutils 2012/02/24 14:34:10running: C:\cygwin\bin\bash.exe --norc --noprofile /etc/preremove/coreutils.sh 2012/02/24 14:34:10Running preremove script for csih 2012/02/24 14:34:10Running preremove script for cygrunsrv 2012/02/24 14:34:10Running preremove script for cygutils 2012/02/24 14:34:10Running preremove script for cygwin 2012/02/24 14:34:10Running preremove script for libdb4.5 2012/02/24 14:34:10Running preremove script for libpcre0 2012/02/24 14:34:10Uninstalling _update-info-dir 2012/02/24 14:34:10Uninstalling base-files 2012/02/24 14:34:10Uninstalling coreutils 2012/02/24 14:34:11Uninstalling csih 2012/02/24 14:34:11Uninstalling cygrunsrv 2012/02/24 14:34:11Uninstalling cygutils 2012/02/24 14:34:11Uninstalling cygwin 2012/02/24 14:34:11Uninstalling libdb4.5 2012/02/24 14:34:11Uninstalling libpcre0 2012/02/24 14:34:11Extracting from file://C:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/_update-info-dir/_update-info-dir-01014-1.tar.bz2 2012/02/24 14:34:11Extracting from file://C:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/base-files/base-files-4.0-9.tar.bz2 2012/02/24 14:34:12Extracting from
Re: Problem after upgrading from 1.7.9 to 1.7.10-1 - system commands not found
On Fri, Feb 24, 2012 at 03:44:46PM -0500, Bilig Ordos wrote: I've been happy with 1.7.9, but couldn't resist my curiosity so ran the 1.7.10-1 setup today. During the process it complained that Cygwin is running and offered me options to either stop the Cygwin and try again, or continue and reboot after it is done. So I selected to continue and then rebooted. But when I launched the Cywin console/Mintty, I did not have most of the system commands, such as ls and which, but commands like cd and alias are there. I tried running the setup again (made sure all the packages I used to have are selected) but did not help. rebooted again and it is the same. How can I recover from this? I hate to reinstall from scratch as doing that will make me lose a lot of customization, such as ssh keys, etc. Please see below for examples and logs. Don't panic. Your keys are still there. Also, please don't put a log into the body of the email. It's a better idea to attach it. Problem reports: http://cygwin.com/problems.html Your problem could have been caused by incorrect permissions in the latest base-files' package contents. 2012/02/24 14:33:39DownloadedC:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/base-files/base-files-4.0-9.tar.bz2 2012/02/24 14:34:07Running preremove script for base-files 2012/02/24 14:34:07running: C:\cygwin\bin\bash.exe --norc --noprofile /etc/preremove/base-files.sh 2012/02/24 14:34:10Uninstalling base-files 2012/02/24 14:34:11Extracting from file://C:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/base-files/base-files-4.0-9.tar.bz2 2012/02/24 14:35:10running: C:\cygwin\bin\bash.exe --norc --noprofile/etc/postinstall/base-files-profile.sh 2012/02/24 14:35:14running: C:\cygwin\bin\bash.exe --norc --noprofile/etc/postinstall/base-files-mketc.sh Please check and correct perms if necessary in: /etc/bash.bash_logout /etc/profile.d /etc/profile.d/tzset.sh /etc/profile.d/tzset.csh /etc/profile.d/lang.csh /etc/profile.d/lang.sh /etc/bash.bashrc /etc/skel/.inputrc /etc/skel/.profile /etc/skel/.bashrc /etc/skel/.bash_profile /etc/profile All of them should have owner/group root.root and 644 perms (rw-r--r--) Afterwards, close all cygwin apps and restart a mintty session. Please report back if that solved your issue. -- Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56 signature.asc Description: Digital signature
Re: Problem after upgrading from 1.7.9 to 1.7.10-1 - system commands not found
David, Thank you for your prompt reply. Since I also don't have chmod and chown commands, I tried to set the permission on those file in C:\cygwin\etc\defaults\etc (I assume that's the location for /etc) using Windows file properties dialog box - I went to the Security and gave full control to user Everyone. I don't have a windows user or group called root ... After that I rebooted and ran Mintty and still no luck ... What should I try next? Thanks, Bilig On Fri, Feb 24, 2012 at 03:44:46PM -0500, Bilig Ordos wrote: I've been happy with 1.7.9, but couldn't resist my curiosity so ran the 1.7.10-1 setup today. During the process it complained that Cygwin is running and offered me options to either stop the Cygwin and try again, or continue and reboot after it is done. So I selected to continue and then rebooted. But when I launched the Cywin console/Mintty, I did not have most of the system commands, such as ls and which, but commands like cd and alias are there. I tried running the setup again (made sure all the packages I used to have are selected) but did not help. rebooted again and it is the same. How can I recover from this? I hate to reinstall from scratch as doing that will make me lose a lot of customization, such as ssh keys, etc. Please see below for examples and logs. Don't panic. Your keys are still there. Also, please don't put a log into the body of the email. It's a better idea to attach it. Problem reports: http://cygwin.com/problems.html Your problem could have been caused by incorrect permissions in the latest base-files' package contents. 2012/02/24 14:33:39DownloadedC:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/base-files/base-files-4.0-9.tar.bz2 2012/02/24 14:34:07Running preremove script for base-files 2012/02/24 14:34:07running: C:\cygwin\bin\bash.exe --norc --noprofile /etc/preremove/base-files.sh 2012/02/24 14:34:10Uninstalling base-files 2012/02/24 14:34:11Extracting from file://C:\Users\boyun\Downloads/http%3a%2f%2fcygwin.mirrors.hoobly.com%2f/release/base-files/base-files-4.0-9.tar.bz2 2012/02/24 14:35:10running: C:\cygwin\bin\bash.exe --norc --noprofile/etc/postinstall/base-files-profile.sh 2012/02/24 14:35:14running: C:\cygwin\bin\bash.exe --norc --noprofile/etc/postinstall/base-files-mketc.sh Please check and correct perms if necessary in: /etc/bash.bash_logout /etc/profile.d /etc/profile.d/tzset.sh /etc/profile.d/tzset.csh /etc/profile.d/lang.csh /etc/profile.d/lang.sh /etc/bash.bashrc /etc/skel/.inputrc /etc/skel/.profile /etc/skel/.bashrc /etc/skel/.bash_profile /etc/profile All of them should have owner/group root.root and 644 perms (rw-r--r--) Afterwards, close all cygwin apps and restart a mintty session. Please report back if that solved your issue. -- Bilig Oyun (Oyunbilig) oyunbi...@gmail.com -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Problem after upgrading from 1.7.9 to 1.7.10-1 - system commands not found
On 02/24/2012 01:44 PM, Bilig Ordos wrote: I've been happy with 1.7.9, but couldn't resist my curiosity so ran the 1.7.10-1 setup today. During the process it complained that Cygwin is running and offered me options to either stop the Cygwin and try again, or continue and reboot after it is done. So I selected to continue and then rebooted. Other threads [1] from people who have taken this course have shown that the windows update-on-reboot doesn't always work, in which case you might still be running cygwin 1.7.9 inadvertently (and coreutils 8.15 requires cygwin 1.7.10 for things like ls to work). What does 'uname -a' say; and if it is still 1.7.9, then you need to either rename /bin/cygwin1.dll.new to cygwin1.dll, or rerun setup.exe and reinstall cygwin1.dll, but either way, make sure that this time you really have stopped all cygwin processes first. [1] http://cygwin.com/ml/cygwin/2012-02/msg00588.html -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature
Re: Problem after upgrading from 1.7.9 to 1.7.10-1 - system commands not found
Still no luck. Since I don't have uname command either, I decided to reinstall the cygwin (1.7.10-1) and coreutil (8.15-1) packages by running the setup and selecting reinstall. I rebooted my PC before doing this so there should not have been any Cygwin processes running. After this, I'm still having the same issue - I can only execute the internal bash commands, which are the commands listed by doing help from the shell. I'm not able to run any other commands such as ls, uname, and man ... I see the following message in the install log. Does this means the reinstall failed? 2012/02/24 19:19:26 Uninstalling base-cygwin 2012/02/24 19:19:26 io_stream_cygfile: fopen(/etc/setup/base-cygwin.lst.gz) failed 2 No such file or directory -- Eric Blake wrote: Other threads [1] from people who have taken this course have shown that the windows update-on-reboot doesn't always work, in which case you might still be running cygwin 1.7.9 inadvertently (and coreutils 8.15 requires cygwin 1.7.10 for things like ls to work). What does 'uname -a' say; and if it is still 1.7.9, then you need to either rename /bin/cygwin1.dll.new to cygwin1.dll, or rerun setup.exe and reinstall cygwin1.dll, but either way, make sure that this time you really have stopped all cygwin processes first. [1] http://cygwin.com/ml/cygwin/2012-02/msg00588.html -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Problem after upgrading from 1.7.9 to 1.7.10-1 - system commands not found
Bilig Ordos writes: After this, I'm still having the same issue - I can only execute the internal bash commands, which are the commands listed by doing help from the shell. I'm not able to run any other commands such as ls, uname, and man ... Others have mentioned things for you to try. I'm just going to respond to this little bit above. The commands are likely still present, it's just that until things are fixed you'll have to type a little bit more. You have to give the full path to run commands. For instance, to run 'ls' you have to enter '/bin/ls' and to run 'chown' you have to enter '/bin/chown'. Once the file perms are set properly, as outlined in another response, you won't need to type the extra stuff anymore. HTH, ..mark -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple