Skip to content

Instantly share code, notes, and snippets.

@x10an14
Last active May 1, 2019 01:20
Show Gist options
  • Save x10an14/5fc87eb45e1ec6564ecb3a083bf095e0 to your computer and use it in GitHub Desktop.
Save x10an14/5fc87eb45e1ec6564ecb3a083bf095e0 to your computer and use it in GitHub Desktop.
Unable to find toml_test3.py
x10an14@x10Desktop2016:~/Documents/git_projs/toml$ sudo apt-get install golang
[sudo] password for x10an14:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-72 linux-headers-4.4.0-72-generic linux-image-4.4.0-72-generic
linux-image-extra-4.4.0-72-generic linux-signed-image-4.4.0-72-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
golang-1.6 golang-1.6-doc golang-1.6-go golang-1.6-race-detector-runtime golang-1.6-src golang-doc
golang-go golang-race-detector-runtime golang-src
Suggested packages:
bzr mercurial subversion
The following NEW packages will be installed:
golang golang-1.6 golang-1.6-doc golang-1.6-go golang-1.6-race-detector-runtime golang-1.6-src
golang-doc golang-go golang-race-detector-runtime golang-src
0 upgraded, 10 newly installed, 0 to remove and 31 not upgraded.
Need to get 29,6 MB of archives.
After this operation, 202 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://no.archive.ubuntu.com/ubuntu xenial-updates/main amd64 golang-1.6-src amd64 1.6.2-0ubuntu5~16.04.2 [6 493 kB]
Get:2 http://no.archive.ubuntu.com/ubuntu xenial-updates/main amd64 golang-1.6-go amd64 1.6.2-0ubuntu5~16.04.2 [20,3 MB]
Get:3 http://no.archive.ubuntu.com/ubuntu xenial-updates/main amd64 golang-1.6-doc all 1.6.2-0ubuntu5~16.04.2 [2 370 kB]
Get:4 http://no.archive.ubuntu.com/ubuntu xenial-updates/main amd64 golang-1.6 all 1.6.2-0ubuntu5~16.04.2 [16,8 kB]
Get:5 http://no.archive.ubuntu.com/ubuntu xenial/main amd64 golang-src amd64 2:1.6-1ubuntu4 [3 066 B]
Get:6 http://no.archive.ubuntu.com/ubuntu xenial/main amd64 golang-go amd64 2:1.6-1ubuntu4 [21,8 kB]
Get:7 http://no.archive.ubuntu.com/ubuntu xenial/main amd64 golang-doc all 2:1.6-1ubuntu4 [2 808 B]
Get:8 http://no.archive.ubuntu.com/ubuntu xenial/main amd64 golang all 2:1.6-1ubuntu4 [2 766 B]
Get:9 http://no.archive.ubuntu.com/ubuntu xenial/main amd64 golang-1.6-race-detector-runtime amd64 0.0+svn252922-0ubuntu1 [404 kB]
Get:10 http://no.archive.ubuntu.com/ubuntu xenial/main amd64 golang-race-detector-runtime amd64 2:1.6-1ubuntu4 [2 854 B]
Fetched 29,6 MB in 3s (9 383 kB/s)
Selecting previously unselected package golang-1.6-src.
(Reading database ... 265476 files and directories currently installed.)
Preparing to unpack .../golang-1.6-src_1.6.2-0ubuntu5~16.04.2_amd64.deb ...
Unpacking golang-1.6-src (1.6.2-0ubuntu5~16.04.2) ...
Selecting previously unselected package golang-1.6-go.
Preparing to unpack .../golang-1.6-go_1.6.2-0ubuntu5~16.04.2_amd64.deb ...
Unpacking golang-1.6-go (1.6.2-0ubuntu5~16.04.2) ...
Selecting previously unselected package golang-1.6-doc.
Preparing to unpack .../golang-1.6-doc_1.6.2-0ubuntu5~16.04.2_all.deb ...
Unpacking golang-1.6-doc (1.6.2-0ubuntu5~16.04.2) ...
Selecting previously unselected package golang-1.6.
Preparing to unpack .../golang-1.6_1.6.2-0ubuntu5~16.04.2_all.deb ...
Unpacking golang-1.6 (1.6.2-0ubuntu5~16.04.2) ...
Selecting previously unselected package golang-src.
Preparing to unpack .../golang-src_2%3a1.6-1ubuntu4_amd64.deb ...
Unpacking golang-src (2:1.6-1ubuntu4) ...
Selecting previously unselected package golang-go.
Preparing to unpack .../golang-go_2%3a1.6-1ubuntu4_amd64.deb ...
Unpacking golang-go (2:1.6-1ubuntu4) ...
Selecting previously unselected package golang-doc.
Preparing to unpack .../golang-doc_2%3a1.6-1ubuntu4_all.deb ...
Unpacking golang-doc (2:1.6-1ubuntu4) ...
Selecting previously unselected package golang.
Preparing to unpack .../golang_2%3a1.6-1ubuntu4_all.deb ...
Unpacking golang (2:1.6-1ubuntu4) ...
Selecting previously unselected package golang-1.6-race-detector-runtime.
Preparing to unpack .../golang-1.6-race-detector-runtime_0.0+svn252922-0ubuntu1_amd64.deb ...
Unpacking golang-1.6-race-detector-runtime (0.0+svn252922-0ubuntu1) ...
Selecting previously unselected package golang-race-detector-runtime.
Preparing to unpack .../golang-race-detector-runtime_2%3a1.6-1ubuntu4_amd64.deb ...
Unpacking golang-race-detector-runtime (2:1.6-1ubuntu4) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up golang-1.6-src (1.6.2-0ubuntu5~16.04.2) ...
Setting up golang-1.6-go (1.6.2-0ubuntu5~16.04.2) ...
Setting up golang-1.6-doc (1.6.2-0ubuntu5~16.04.2) ...
Setting up golang-1.6 (1.6.2-0ubuntu5~16.04.2) ...
Setting up golang-src (2:1.6-1ubuntu4) ...
Setting up golang-go (2:1.6-1ubuntu4) ...
Setting up golang-doc (2:1.6-1ubuntu4) ...
Setting up golang (2:1.6-1ubuntu4) ...
Setting up golang-1.6-race-detector-runtime (0.0+svn252922-0ubuntu1) ...
Setting up golang-race-detector-runtime (2:1.6-1ubuntu4) ...
x10an14@x10Desktop2016:~/Documents/git_projs/toml$ echo $GOPATH
x10an14@x10Desktop2016:~/Documents/git_projs/toml$ cd
x10an14@x10Desktop2016:~$ export GOPATH=$HOME/go # if it isn't already set
x10an14@x10Desktop2016:~$ go get github.com/BurntSushi/toml-test # install test suite
x10an14@x10Desktop2016:~$ find . -iname toml* -type d
./go/src/github.com/BurntSushi/toml
./go/src/github.com/BurntSushi/toml/cmd/toml-test-decoder
./go/src/github.com/BurntSushi/toml/cmd/tomlv
./go/src/github.com/BurntSushi/toml/cmd/toml-test-encoder
./go/src/github.com/BurntSushi/toml-test
find: ‘./.local/share/jupyter/runtime’: Permission denied
^C
x10an14@x10Desktop2016:~$ la go/
total 20K
drwxrwxr-x 5 x10an14 x10an14 4,0K mai 17 11:58 ./
drwxr-xr-x 48 x10an14 x10an14 4,0K mai 17 11:57 ../
drwxrwxr-x 2 x10an14 x10an14 4,0K mai 17 11:58 bin/
drwxrwxr-x 3 x10an14 x10an14 4,0K mai 17 11:58 pkg/
drwxrwxr-x 3 x10an14 x10an14 4,0K mai 17 11:57 src/
x10an14@x10Desktop2016:~$
x10an14@x10Desktop2016:~$ go get github.com/BurntSushi/toml/cmd/toml-test-decoder # e.g., install my parser
x10an14@x10Desktop2016:~$ $HOME/go/bin/toml-test $HOME/go/bin/toml-test-decoder
77 passed, 0 failed
x10an14@x10Desktop2016:~$ $HOME/go/bin/toml-test /home/x10an14/go/bin/toml-test
toml-test toml-test-decoder
x10an14@x10Desktop2016:~$ $HOME/go/bin/toml-test /home/x10an14/go/bin/toml-test^C
x10an14@x10Desktop2016:~$ find . -iname toml_test3.py
find: ‘./.local/share/jupyter/runtime’: Permission denied
find: ‘./.config/htop’: Permission denied
x10an14@x10Desktop2016:~$ sudo find / -iname toml_test3.py
find: ‘/run/user/1000/gvfs’: Permission denied
^C
x10an14@x10Desktop2016:~$ sudo find / -iname toml_test3.py -type f
find: ‘/run/user/1000/gvfs’: Permission denied
x10an14@x10Desktop2016:~$ cd go/src/github.com/BurntSushi/
x10an14@x10Desktop2016:~/go/src/github.com/BurntSushi$ git status
fatal: Not a git repository (or any of the parent directories): .git
x10an14@x10Desktop2016:~/go/src/github.com/BurntSushi$ la
total 16K
drwxrwxr-x 4 x10an14 x10an14 4,0K mai 17 11:57 ./
drwxrwxr-x 3 x10an14 x10an14 4,0K mai 17 11:57 ../
drwxrwxr-x 5 x10an14 x10an14 4,0K mai 17 11:58 toml/
drwxrwxr-x 4 x10an14 x10an14 4,0K mai 17 11:57 toml-test/
x10an14@x10Desktop2016:~/go/src/github.com/BurntSushi$ cd toml-test/
x10an14@x10Desktop2016:~/go/src/github.com/BurntSushi/toml-test$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
x10an14@x10Desktop2016:~/go/src/github.com/BurntSushi/toml-test$ git branch -r
origin/HEAD -> origin/master
origin/master
x10an14@x10Desktop2016:~/go/src/github.com/BurntSushi/toml-test$ cd ../toml
x10an14@x10Desktop2016:~/go/src/github.com/BurntSushi/toml$ git branch -r
origin/HEAD -> origin/master
origin/datetimes
origin/encode-tagged-anon-structs
origin/master
origin/numbers
x10an14@x10Desktop2016:~/go/src/github.com/BurntSushi/toml$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment