Cygwin Bad Address - cygwin

When I open a cygwin console I get the following message:
hostname: : Bad address
Furthermore when I try to ssh into a server I get this message:
gethostname: Bad address
Does anyone know what this might be about? I tried reinstalling ssh and reinstalling cygwin to no avail.

I believe this is a known problem affecting some 64-bit users with the latest version of Cygwin (1.7.29-2).
See the thread here: http://cygwin.com/ml/cygwin/2014-04/msg00132.html
I believe the only solution at this point is to download a recent snapshot, which has a patch for this.
You can get snapshots here: http://cygwin.com/snapshots
But read the directions first here: http://cygwin.com/faq.html#faq.setup.snapshots

The only way I could fix this was by installing the 32bit version of Cygwin, it's worked perfectly on my 64bit system.

Chris's method worked. I'm just going to put it in my words here.
This happened to me with Cygwin 64bit. I unplugged my laptop and at some point it crashed and restarted, it had a network issue wlan. I'm not sure the cause but suddenly I got that message "hostname: : Bad address" when going into cygwin. cygwin.bat runs .\bin\bash --login i and then I got that message
Judging by the solution that worked (replacing cygwin1.dll)
My guess is cygwin1.dll got corrupted, perhaps from an unexpected shutdown (as I just had one of those and was fine before).
Solution was, to replace cygwin1.dll with the latest one from the cygwin snapshots link.
I went here
https://cygwin.com/snapshots/
Got the latest cygwin1.dll
by clicking this link
Downloading cygwin1....dll.xz
http://cygwin.com/snapshots/x86_64/cygwin1-20141120.dll.xz
Extracting cygwin1.dll from it with 7zip (though some may use tar within cygwin but I closed cygwin particularly as i'll be replacing that file of cygwins)
made a copy of my existing cygwin1.dll and Copied cygwin1.dll over my existing cygwin1.dll
(I dragged the cygwin1.dll icon onto the command prompt to get the path to expand)
C:\cygwin\bin>move cygwin1.dll cygwinold1.dll
1 file(s) moved.
C:\cygwin\bin>move C:\Users\harvey\Downloads\cygwin1-20141120.dll\cygwin1.dll .
1 file(s) moved.
Then cygwin started fine no problems.

Related

Installing Node.js on Windows 10 always results in an error

Hey I changed my System from Linux to Windows and I would like to install Node.js via .exe. The problem I have is, that I get an Error Pop-up. How could I fix it?
What I tried:
I checked already the permissions and I got also the confirm-box for the admin and everything seems to be normal.
Install Windows 10 ISO via bootable stick and Rufus in MBR and GPT and also by creating an usb via MediaCreationTool.
Thanking you in anticipation
Yeah, I got in this issue too. There is already an approved bug on the maintainers GitHub: https://github.com/nodejs/node/issues/39224. So assume that a fix will be available in the next days.
Short term solution: Install the version before the latest (e.g. 14.17.1): https://github.com/nodejs/node/issues/39224#issuecomment-872702653. This worked for me

sdkman on cygwin can't install

I'm setting up a new machine and installing sdkman on Cygwin to install Java. I had this exact setup working on my previous machine, also Win 10.
Installed Cygwin, and required for sdkman, installed zip and unzip packages. Now I'm getting the following error:
$ sdk i java 11.0.3-zulu
Downloading: java 11.0.3-zulu
In progress...
Warning: Failed to create the file
Warning: /home/whyph/.sdkman/tmp/D2txrZkztdcZKSIltTtxclUhHkzF9yIf.bin: No such
Warning: file or directory
curl: (23) Failed writing body (0 != 14095)
mv: cannot stat '/home/whyph/.sdkman/tmp/D2txrZkztdcZKSIltTtxclUhHkzF9yIf.bin': No such file or directory
Tried disabling Windows firewall and running Cygwin as administrator, neither changed the error. Worked out of the box on my last machine, but can't figure out what might be different.
I discovered the problem - wrong curl. Turns out, Windows 10 now comes with curl and it's on your path. I assumed it was one of the base packages of Cygwin, but it is not, and the Windows version is not compatible with SDKMAN, even though it worked to install it. Fix:
Remove SDKMAN per https://sdkman.io/install Uninstallation section
Close Cygwin shells
Rerun Cygwin setup and insure the curl, zip, unzip, and tar packages
are installed (check installation instructions in case more
dependencies are added since this writing)
Install SDKMAN per instructions
Recently I had the very same problem, and the reason was very simple... I forgot to install cURL on my Cygwin. Hope it helps!
I had the same problem recently and I manage to make it work somehow.
In the sdkman source file, I modified the .sdkman/src/sdkman-install.sh line 150.
I replaced the "--output" of the line below by a classic redirection ">".
After I just restarted cygwin and the command finally worked.
__sdkman_secure_curl_download "${download_url}" --output "${binary_input}"
Hope that helps !

Virtual machine "pc1" Netkit error?

Introduction
I've just installed a networking simulator Called Netkit. On Debian stretch stable. Using the official installation guide here.
Installation
After setting the correct paths and installing. I then run the check_configuration.sh script.
Everything is checked OK, and it has found the terminal emulator xterm which is needed for netkit. And recieve the complete message.
[ READY ] Congratulations! Your Netkit setup is now complete!
Enjoy Netkit!
The Problem
Running netkit using the command:
vstart pc1
The xterm netkit-kernel emulator starts running. However I'm getting an infinite loop of the same error message:
ubda: can't open "home/foo/netkit/pc1.disk" failed, errno= 13
So im guessing it's because the file is missing? if so how do i obtain it? and if not, what is causing this error. I've followed the install guide completely.
I'm assuming your system is not a 32bit system. Netkit is only supported on the 32-bit architecture(unless the compatibility libraries are installed). Hence I would suggest you download a 32-bit VM(instead of installing the libraries) and run Netkit on the same(worked fine for me).
Check position of your lab-folder..

No such file or directory; But the file does exist

I am trying to run a Binoinformatics program, DistMap on Ubuntu 12.04 LTS (x86_64). I am getting the error No such file or directory. But the file do exist in the required location.
I have used this program before and it ran perfectly fine. Yesterday I installed virtualenv-burrito for some other program, Seal. Since then I haven't been able to run DistMap.
I know there have been many posts regarding this error all over the internet. But the solution seems to be the same for all the posts.
sudo apt-get install ia32-libs
This solution is for running 32-bit application on 64-bit machines. But since Distmap worked before without any problem I dont think that is the problem. Still, I installed ia32-libs; just for the sake of it but no use.
I am sure the problem is virtualenv-burrito. So I uninstalled it from my machine (Deleted .virtualenv and .virtualburrito folders. Since that's the only way i found for uninstalling virtualenv-burrito on the internet). Still my application is not running.
How can I bring my system to default as in to the previous state of virtualenv-burrito installation?
I hope I will get some good suggestions. I have been struggling for sometime now.
Thanks.

Cygwin terminal crashes

I installed Cygwin on windows 7 64 bit ultimate and after starting cygwin terminal it crashes and creates a file named mintty.exe.stackdump, and in this file there is a line i.e
Exception: STATUS_ACCESS_VIOLATION at eip=61004DF6
After searching it on google; it seems that this exception occurs if their are two cygwin1.dll in system. There is only one that is inside the installation directory of cygwin.
I had installed mingw, but even after uninstalling mingw it still crashes. I didn't worked on cygwin before can anybody guide me how I could get rid of this problem
cygwin1.dll gets installed by some other programs that get ported from Linux to Windows, such as OpenSSH. It's possible that you have another version of it somewhere else on your system that was installed by a different application.
It doesn't necessarily need to be in your Cygwin install dir either. Just being in a directory that's in your PATH env variable, for instance, would be enough for it to cause confusion for Cygwin.
If you know exactly of a likely culprit (think Windows ports of traditionally Linux programs and tools), I would check those first. Otherwise, try digging in the different directories in your path var (you can see them by firing up a cmd.exe terminal and running the command echo %path%).

Resources