Question
How to install and run KCPTUN with Shadowsocks on Ubuntu 16.04?
I’m running a DO Ubuntu 16.04 droplet and I want to build and install KCPTUN in conjunction with Shadowsocks to channel traffic from my client through UDP towards my DO server.
the problem is that when I download the KCPTUN tar.gz file from GitHub and run build script it makes a lot of dummy tar.gz files for various distributions that are all empty.
https://github.com/xtaci/kcptun/blob/master/README.en.md
it also displays a lot of errors concerning about the absence of Go lang:
can't load package: package github.com/xtaci/kcptun/client: cannot find package "github.com/xtaci/kcptun/client" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/client (from $GOROOT)
($GOPATH not set)
can't load package: package github.com/xtaci/kcptun/server: cannot find package "github.com/xtaci/kcptun/server" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/server (from $GOROOT)
($GOPATH not set)
tar: client_linux_amd64: Cannot stat: No such file or directory
tar: server_linux_amd64: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
8b1ac0b4eff5e6cc2819ed0eb697fb19 kcptun-linux-amd64-20160914.tar.gz
can't load package: package github.com/xtaci/kcptun/client: cannot find package "github.com/xtaci/kcptun/client" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/client (from $GOROOT)
($GOPATH not set)
can't load package: package github.com/xtaci/kcptun/server: cannot find package "github.com/xtaci/kcptun/server" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/server (from $GOROOT)
($GOPATH not set)
tar: client_linux_386: Cannot stat: No such file or directory
tar: server_linux_386: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
8b1ac0b4eff5e6cc2819ed0eb697fb19 kcptun-linux-386-20160914.tar.gz
can't load package: package github.com/xtaci/kcptun/client: cannot find package "github.com/xtaci/kcptun/client" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/client (from $GOROOT)
($GOPATH not set)
can't load package: package github.com/xtaci/kcptun/server: cannot find package "github.com/xtaci/kcptun/server" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/server (from $GOROOT)
($GOPATH not set)
tar: client_darwin_amd64: Cannot stat: No such file or directory
tar: server_darwin_amd64: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
8b1ac0b4eff5e6cc2819ed0eb697fb19 kcptun-darwin-amd64-20160914.tar.gz
can't load package: package github.com/xtaci/kcptun/client: cannot find package "github.com/xtaci/kcptun/client" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/client (from $GOROOT)
($GOPATH not set)
can't load package: package github.com/xtaci/kcptun/server: cannot find package "github.com/xtaci/kcptun/server" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/server (from $GOROOT)
($GOPATH not set)
tar: client_darwin_386: Cannot stat: No such file or directory
tar: server_darwin_386: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
8b1ac0b4eff5e6cc2819ed0eb697fb19 kcptun-darwin-386-20160914.tar.gz
can't load package: package github.com/xtaci/kcptun/client: cannot find package "github.com/xtaci/kcptun/client" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/client (from $GOROOT)
($GOPATH not set)
can't load package: package github.com/xtaci/kcptun/server: cannot find package "github.com/xtaci/kcptun/server" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/server (from $GOROOT)
($GOPATH not set)
tar: client_windows_amd64.exe: Cannot stat: No such file or directory
tar: server_windows_amd64.exe: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
8b1ac0b4eff5e6cc2819ed0eb697fb19 kcptun-windows-amd64-20160914.tar.gz
can't load package: package github.com/xtaci/kcptun/client: cannot find package "github.com/xtaci/kcptun/client" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/client (from $GOROOT)
($GOPATH not set)
can't load package: package github.com/xtaci/kcptun/server: cannot find package "github.com/xtaci/kcptun/server" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/server (from $GOROOT)
($GOPATH not set)
tar: client_windows_386.exe: Cannot stat: No such file or directory
tar: server_windows_386.exe: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
8b1ac0b4eff5e6cc2819ed0eb697fb19 kcptun-windows-386-20160914.tar.gz
can't load package: package github.com/xtaci/kcptun/client: cannot find package "github.com/xtaci/kcptun/client" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/client (from $GOROOT)
($GOPATH not set)
can't load package: package github.com/xtaci/kcptun/server: cannot find package "github.com/xtaci/kcptun/server" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/server (from $GOROOT)
($GOPATH not set)
tar: client_freebsd_amd64: Cannot stat: No such file or directory
tar: server_freebsd_amd64: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
8b1ac0b4eff5e6cc2819ed0eb697fb19 kcptun-freebsd-amd64-20160914.tar.gz
can't load package: package github.com/xtaci/kcptun/client: cannot find package "github.com/xtaci/kcptun/client" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/client (from $GOROOT)
($GOPATH not set)
can't load package: package github.com/xtaci/kcptun/server: cannot find package "github.com/xtaci/kcptun/server" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/server (from $GOROOT)
($GOPATH not set)
tar: client_freebsd_386: Cannot stat: No such file or directory
tar: server_freebsd_386: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
8b1ac0b4eff5e6cc2819ed0eb697fb19 kcptun-freebsd-386-20160914.tar.gz
can't load package: package github.com/xtaci/kcptun/client: cannot find package "github.com/xtaci/kcptun/client" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/client (from $GOROOT)
($GOPATH not set)
can't load package: package github.com/xtaci/kcptun/server: cannot find package "github.com/xtaci/kcptun/server" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/server (from $GOROOT)
($GOPATH not set)
can't load package: package github.com/xtaci/kcptun/client: cannot find package "github.com/xtaci/kcptun/client" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/client (from $GOROOT)
($GOPATH not set)
can't load package: package github.com/xtaci/kcptun/server: cannot find package "github.com/xtaci/kcptun/server" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/server (from $GOROOT)
($GOPATH not set)
can't load package: package github.com/xtaci/kcptun/client: cannot find package "github.com/xtaci/kcptun/client" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/client (from $GOROOT)
($GOPATH not set)
can't load package: package github.com/xtaci/kcptun/server: cannot find package "github.com/xtaci/kcptun/server" in any of:
/usr/lib/go-1.6/src/github.com/xtaci/kcptun/server (from $GOROOT)
($GOPATH not set)
tar: client_linux_arm*: Cannot stat: No such file or directory
tar: server_linux_arm*: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
8b1ac0b4eff5e6cc2819ed0eb697fb19 kcptun-linux-arm-20160914.tar.gz
I installed the Go lang using apt install golang but nothing changed.
I need help on connection KCPTUN to shadowsocks (which is configured and works beautifully).
uname : 4.4.0-36-generic #55-Ubuntu x8664 x8664 x86_64 GNU/Linux
please let me know if i can provide any additional info.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×