Show newer

$ sudo apt install nodejs
:
Removing libnode64:amd64 (10.19.0~dfsg-3ubuntu1) ...
Unpacking nodejs (14.15.1-deb-1nodesource1) over (10.19.0~dfsg-3ubuntu1) ...
:

🤔

$ sudo apt update; sudo apt upgrade; sudo snap refresh
:
The following packages have been kept back:
nodejs
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
All snaps up to date.

おや?

ホームディレクトリでうかつにyarnを起動してnode_modulesが生えちゃう回

$ sudo vi /etc/apt/sources.list.d/nodesource.list
$ cat /etc/apt/sources.list.d/nodesource.list
deb deb.nodesource.com/node_14.x focal main
deb-src deb.nodesource.com/node_14.x focal main

とりゃ

$ sudo apt-get install -y nodejs

うりゃ

nodeは14系を入れとくのがいいのかな

GNUのツールはmanよりinfoの方が詳しい場合もあるよね

てかnodejsがpythonに依存するんだねえ

$ yarn
Yarn requires Node.js 4.0 or higher to be installed.

うみゅ

$ sudo apt autoremove --purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libjs-inherits* libpython2-stdlib* libpython2.7-minimal*
libpython2.7-stdlib* python2.7* python2.7-minimal*
0 upgraded, 0 newly installed, 6 to remove and 63 not upgraded.
After this operation, 16.1 MB disk space will be freed.
Do you want to continue? [Y/n]

とりゃ

Show thread

$ sudo apt remove python2-minimal
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libjs-inherits libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib
python2.7 python2.7-minimal
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
python-is-python2 python-minimal python2 python2-minimal
0 upgraded, 0 newly installed, 4 to remove and 64 not upgraded.
After this operation, 341 kB disk space will be freed.
Do you want to continue? [Y/n]

うりゃ

Show thread

とりあえず

$ sudo apt remove nodejs

たぶんあといれられるはず

Show thread

てかUbuntu 20.04.1 LTS

58 updates can be installed immediately.
0 of these updates are security updates.

3 updates could not be installed automatically. For more details,
see /var/log/unattended-upgrades/unattended-upgrades.log

2020-11-20 09:45:12,345 INFO All upgrades installed
2020-11-20 09:45:12,711 INFO Package libpython2-stdlib is kept back because a related package is kept back or due to local apt_preferences(5).
2020-11-20 09:45:12,762 INFO Package python2 is kept back because a related package is kept back or due to local apt_preferences(5).
2020-11-20 09:45:12,763 INFO Package python2-minimal is kept back because a related package is kept back or due to local apt_preferences(5).

$ sudo apt remove python2-minimal
:
なんかnode関係どばどばわね。

Ubuntuのデフォルトだと一人目のアカウントがsudoersに入っていてしばらくsudoしてなかった場合に一人目のアカウントのパスワードを聞かれる感じわね

$ sudo echo すっどー
[sudo] password for ひとりめ:
すっどー

二人目以降のアカウントは設定しないと報告されちゃう

$ sudo echo すっどー
[sudo] password for ふたりめ:
ふたりめ is not in the sudoers file. This incident will be reported.

高収入は運んでこないのかあ…

macOSでgcc --versionすると実はclangだよって教えてくれるよね

Show older
zundon

Zundon is a single user instance as home of @zundan as well as a test bed for changes of the code.