Ubuntu20.04にswift: error while loading shared libraries: libatomic.so.1の解決対策

エラー現象
swift: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

対策
# sudo apt-get install curl libatomic1
Reading package lists… Done
Building dependency tree
Reading state information… Done
curl is already the newest version (7.68.0-1ubuntu2.4).
curl set to manually installed.
The following NEW packages will be installed:
libatomic1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 9300 B of archives.
After this operation, 46.1 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libatomic1 amd64 10.2.0-5ubuntu1~20.04 [9300 B]
Fetched 9300 B in 1s (8007 B/s)
Selecting previously unselected package libatomic1:amd64.
(Reading database … 32157 files and directories currently installed.)
Preparing to unpack …/libatomic1_10.2.0-5ubuntu1~20.04_amd64.deb …
Unpacking libatomic1:amd64 (10.2.0-5ubuntu1~20.04) …
Setting up libatomic1:amd64 (10.2.0-5ubuntu1~20.04) …
Processing triggers for libc-bin (2.31-0ubuntu9.2) …

Ubuntu

Posted by arkgame