I am trying to install Kotlin onn my ubuntu 16.04 ...
# announcements
h
I am trying to install Kotlin onn my ubuntu 16.04 using the instructions here https://www.cyberciti.biz/faq/how-to-install-kotlin-programming-language-on-ubuntudebian-linux/ I get the following: Stop! The archive was corrupt and has been removed! Please try installing again. Any suggestions
g
The archive was corrupt and has been removed
I saw this error about a half year ago with one of Kotlin versions installed from sdkman. I think this is a corrupted distribution of Kotlin in sdkman distro. Which version do you install? 1.1.3-2 works fine for me
@havok so not sure, but it’s some sdkman issue, maybe if you install. If you just want to play with kotlin or build some real app I highly recommend you to install Idea and create project there (just Idea project or Gradle project with Kotlin support,) It’s just easier and more productive than command line compiler
h
I saw others have this problem as well, but nobody posted a resolution
g
I think it’s a broken distibution archive in sdkman.
Did you try to install particular version?
Copy code
sdk install kotlin 1.1.3
h
I want to be able to play with it to see if it is worth my time using (not a java fan, so this looked better). I travel a lot, so want a local copy on my system, like I do with Go, Rust, Python, Clojure and elixir
let me try that
g
but with Gradle you will have local Kotlin distribution and be able to use it from command line, also you will have dependency management. Just because it will be really tedious to pass all source files to command line compiler manually If you compare with Rust it’s like Cargo or pip for Python. And after all you don’t need to download and install Kotlin compiler and even Gradle, all you need is just Gradle config and source files BTW pure Kotlin Idea project (without gradle) works offline without problems too, you can create it without internet (Kotlin plugin in Idea have bundled compiler)
This is a very basic but working example of gradle project with Kotlin: https://github.com/gildor/kotlin-starter You can use there any dependencies and add new files with code without additional configuration. The entry point of this project is main function in file src/main/kotlin/Main.kt You can run it from console as well as from Idea or Eclipse
h
$ sdk install kotlin 1.1.3 Downloading: kotlin 1.1.3 In progress... ######################################################################## 100.0% End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of /home/userx/.sdkman/archives/kotlin-1.1.3.zip or /home/userx/.sdkman/archives/kotlin-1.1.3.zip.zip, and cannot find /home/userx/.sdkman/archives/kotlin-1.1.3.zip.ZIP, period. Stop! The archive was corrupt and has been removed! Please try installing again.
g
Looks like sdkman just broken, maybe cannot access to repo, maybe some proxy error. Just download and unpack manually https://github.com/JetBrains/kotlin/releases/download/v1.1.3-2/kotlin-compiler-1.1.3-2.zip
i
sdkman downloads kotlin binary from github and today there was github service outage, so the archive might be downloaded incompletely.
h
Thanks to both of you, I think it had more to do with github outage. I tried it today and it worked fine