使用Docker安装Fortran失败
我不记得以前怎么在docker中使用fortran。
# apt install fortran
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package fortran
经常使用的是gfortran。
/# apt install gfortran
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gfortran-6 libgfortran-6-dev libgfortran3
Suggested packages:
gfortran-multilib gfortran-doc gfortran-6-multilib gfortran-6-doc libgfortran3-dbg libcoarrays-dev
The following NEW packages will be installed:
gfortran gfortran-6 libgfortran-6-dev libgfortran3
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 7481 kB of archives.
After this operation, 28.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian stretch/main amd64 libgfortran3 amd64 6.3.0-18+deb9u1 [265 kB]
Get:2 http://deb.debian.org/debian stretch/main amd64 libgfortran-6-dev amd64 6.3.0-18+deb9u1 [299 kB]
Get:3 http://deb.debian.org/debian stretch/main amd64 gfortran-6 amd64 6.3.0-18+deb9u1 [6916 kB]
Get:4 http://deb.debian.org/debian stretch/main amd64 gfortran amd64 4:6.3.0-4 [1356 B]
Fetched 7481 kB in 0s (15.8 MB/s)
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 4.)
debconf: falling back to frontend: Readline
Selecting previously unselected package libgfortran3:amd64.
(Reading database ... 51515 files and directories currently installed.)
Preparing to unpack .../libgfortran3_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libgfortran3:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libgfortran-6-dev:amd64.
Preparing to unpack .../libgfortran-6-dev_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libgfortran-6-dev:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package gfortran-6.
Preparing to unpack .../gfortran-6_6.3.0-18+deb9u1_amd64.deb ...
Unpacking gfortran-6 (6.3.0-18+deb9u1) ...
Selecting previously unselected package gfortran.
Preparing to unpack .../gfortran_4%3a6.3.0-4_amd64.deb ...
Unpacking gfortran (4:6.3.0-4) ...
Setting up libgfortran3:amd64 (6.3.0-18+deb9u1) ...
Setting up libgfortran-6-dev:amd64 (6.3.0-18+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up gfortran-6 (6.3.0-18+deb9u1) ...
Setting up gfortran (4:6.3.0-4) ...
update-alternatives: error: alternative path /usr/bin/gfortran doesn't exist
dpkg: error processing package gfortran (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
gfortran
E: Sub-process /usr/bin/dpkg returned an error code (1)
哎呀,是什么来着不好呢?
明天我打算再做作业。
谢谢您一直阅读到最后。
喜欢,请关注我。
非常感谢您读到最后一句话。
请点击喜欢的图标 ? 并关注我,享受您快乐的生活。