Formatting error in the R package installation

I'm using Ubuntu 18.04.1 and R version 3.5.1.
When I try to install an R package, I get this error and I can not install it.
Does anyone have an idea of ​​how to solve this problem?
Thanks in advance.

install.packages ("acepack")
Installing the package in & nh; /home/nanoAA/R/x86_64-pc-linux-gnu-library/3.5'
(as "lib" is not specified)
URL to try https://cloud.r-project.org/src/contrib/acepack_1.4.1.tar.gz'

Content type & # 39; application / x-gzip & # 39; length 34848 bytes (34 KB)

downloaded 34 KB

  • l & # 39; Installation source package 'acepack' …
    ** Acepack package successfully unpacked and MD5 sum verified
    ** libs
    gfortran -fpic -g -O2 -fdebug -prefix-map = / build / r-base-oUvOgu / r-base-3.5.1 =. -fstack-protector-strong -c ace.f -o ace.o
    / bin / bash: / usr / local / bin / gfortran: Can not run the binary file: Exec format error
    / usr / lib / R / etc / Makeconf: 182: recipe failure for target & # 39; ace.o & # 39;
    make: *** [ace.o] Error 126
    ERROR: compilation failed for the 'acepack' package
  • remove "/home/nanoAA/R/x86_64-pc-linux-gnu-library/3.5/acepack"
    Warning in install.packages:
    the installation of the "acepack" package had a non-zero output status

The downloaded source packages are in
"/ Tmp / RtmpQlhOvT / downloads_packages"