none
Error: microsoft-r-open-mkl-3.3 needs to be reinstalled, but I can't find an archive for it. RRS feed

  • Question

  • Hi all,

    I followed installation instructions in mran and everything appears to be correctly installed, except MKL. I received the error: 

    The package microsoft-r-open-mkl-3.3 needs to be reinstalled, but I can't find an archive for it.

    After, I also tried to install only microsoft-r-open-mkl-3.3.deb by gdebi microsoft-r-open-mkl-3.3.deb. But received the same error mesage. Even RStudio is returning this error when trying to install.

    How can I solve this?

    I'm using Ubuntu 16.04 (Xenial xerus).

    Thanks.

    Tuesday, September 20, 2016 3:22 PM

Answers

  • If you don't mind, could you remove each of the following packages using the command:

    sudo dpkg --remove <package_name>

    • microsoft-r-open-mkl-3.3
    • microsoft-r-open-foreachiterators-3.3
    • microsoft-r-open-mro-3.3

    If for some reason removing any package fails, try adding --force-remove-reinstreq after --remove.

    After you do this, run:

    sudo rm -rf /usr/lib64/microsoft-r/3.3 (this will destroy the folder)

    Finally, can you please use gdebi to install each of the packages (in the order that I do in my previous post)? I'd like to know if it works or not. If it doesn't work, I'd be curious to know if you have any custom bash shell options set (like noglob). When I did my testing, I used a clean install of Ubuntu Server 16.04, so I am trying to figure out how I can get a repro.



    • Edited by nsosnov [msft] Thursday, September 22, 2016 2:21 AM
    • Marked as answer by Jecogeo Thursday, September 22, 2016 1:08 PM
    Thursday, September 22, 2016 2:20 AM

All replies

  • You can find the downloads for previous releases in the archives section of MRAN at:

    https://mran.microsoft.com/archives/

    From here, choose your desired version of R and platform.

    Tuesday, September 20, 2016 3:38 PM
  • Do you think I need an old version?

    Why microsoft-r-open-3.3.1.tar.gz would not work properly? Any already known issue about it?

    Tuesday, September 20, 2016 3:57 PM
  • Hi Jecogeo,

    Technically we only support using the install.sh script or dpkg to install the debian packages, but I used gdebi and the commands/output I got are below. Did you enter the commands exactly as I did in the output below and, if so, can you give me the full console out of your result?

    Nathan

    redacted@redacted-ubuntu16:~/microsoft-r-open/deb$ sudo gdebi microsoft-r-open-mro-3.3.deb
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading state information... Done
    Requires the installation of the following packages: libice6 libpango1.0-0 libpangox-1.0-0 libsm6 libxt6
    Microsoft R Open
    Do you want to install the software package? [y/N]:y
    Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libice6 amd64 2:1.0.9-1 [39.2 kB]
    Get:2 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libsm6 amd64 2:1.2.2-1 [15.8 kB]
    Get:3 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libpangox-1.0-0 amd64 0.0.2-5 [41.7 kB]
    Get:4 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libpango1.0-0 amd64 1.38.1-1 [3458 B]
    Get:5 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libxt6 amd64 1:1.1.5-0ubuntu1 [160 kB]
    Fetched 260 kB in 0s (0 B/s)
    Selecting previously unselected package libice6:amd64.
    (Reading database ... 116233 files and directories currently installed.)
    Preparing to unpack .../libice6_2%3a1.0.9-1_amd64.deb ...
    Unpacking libice6:amd64 (2:1.0.9-1) ...
    Selecting previously unselected package libsm6:amd64.
    Preparing to unpack .../libsm6_2%3a1.2.2-1_amd64.deb ...
    Unpacking libsm6:amd64 (2:1.2.2-1) ...
    Selecting previously unselected package libpangox-1.0-0:amd64.
    Preparing to unpack .../libpangox-1.0-0_0.0.2-5_amd64.deb ...
    Unpacking libpangox-1.0-0:amd64 (0.0.2-5) ...
    Selecting previously unselected package libpango1.0-0:amd64.
    Preparing to unpack .../libpango1.0-0_1.38.1-1_amd64.deb ...
    Unpacking libpango1.0-0:amd64 (1.38.1-1) ...
    Selecting previously unselected package libxt6:amd64.
    Preparing to unpack .../libxt6_1%3a1.1.5-0ubuntu1_amd64.deb ...
    Unpacking libxt6:amd64 (1:1.1.5-0ubuntu1) ...
    Setting up libice6:amd64 (2:1.0.9-1) ...
    Setting up libsm6:amd64 (2:1.2.2-1) ...
    Setting up libpangox-1.0-0:amd64 (0.0.2-5) ...
    Setting up libpango1.0-0:amd64 (1.38.1-1) ...
    Setting up libxt6:amd64 (1:1.1.5-0ubuntu1) ...
    Processing triggers for libc-bin (2.23-0ubuntu3) ...
    Selecting previously unselected package microsoft-r-open-mro-3.3.
    (Reading database ... 116263 files and directories currently installed.)
    Preparing to unpack microsoft-r-open-mro-3.3.deb ...
    Unpacking microsoft-r-open-mro-3.3 (3.3.1) ...
    Setting up microsoft-r-open-mro-3.3 (3.3.1) ...
    redacted@redacted-ubuntu16:~/microsoft-r-open/deb$ sudo gdebi microsoft-r-open-
    microsoft-r-open-foreachiterators-3.3.deb  microsoft-r-open-mkl-3.3.deb               microsoft-r-open-mro-3.3.deb
    redacted@redacted-ubuntu16:~/microsoft-r-open/deb$ sudo gdebi microsoft-r-open-mkl-3.3.deb
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading state information... Done
    Microsoft R Open
    Do you want to install the software package? [y/N]:y
    Selecting previously unselected package microsoft-r-open-mkl-3.3.
    (Reading database ... 118918 files and directories currently installed.)
    Preparing to unpack microsoft-r-open-mkl-3.3.deb ...
    Unpacking microsoft-r-open-mkl-3.3 (3.3.1) ...
    Setting up microsoft-r-open-mkl-3.3 (3.3.1) ...
    redacted@redacted-ubuntu16:~/microsoft-r-open/deb$ sudo gdebi microsoft-r-open-foreachiterators-3.3.deb
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading state information... Done
    Microsoft R Open
    Do you want to install the software package? [y/N]:y
    Selecting previously unselected package microsoft-r-open-foreachiterators-3.3.
    (Reading database ... 118958 files and directories currently installed.)
    Preparing to unpack microsoft-r-open-foreachiterators-3.3.deb ...
    Unpacking microsoft-r-open-foreachiterators-3.3 (3.3.1) ...
    Setting up microsoft-r-open-foreachiterators-3.3 (3.3.1) ...
    redacted@redacted-ubuntu16:~/microsoft-r-open/deb$
    redacted@redacted-ubuntu16:~/microsoft-r-open/deb$
    redacted@redacted-ubuntu16:~/microsoft-r-open/deb$
    redacted@redacted-ubuntu16:~/microsoft-r-open/deb$
    redacted@redacted-ubuntu16:~/microsoft-r-open/deb$ R
    R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
    Copyright (C) 2016 The R Foundation for Statistical Computing
    Platform: x86_64-pc-linux-gnu (64-bit)
    R is free software and comes with ABSOLUTELY NO WARRANTY.
    You are welcome to redistribute it under certain conditions.
    Type 'license()' or 'licence()' for distribution details.
      Natural language support but running in an English locale
    R is a collaborative project with many contributors.
    Type 'contributors()' for more information and
    'citation()' on how to cite R or R packages in publications.
    Type 'demo()' for some demos, 'help()' for on-line help, or
    'help.start()' for an HTML browser interface to help.
    Type 'q()' to quit R.
    Microsoft R Open 3.3.1
    The enhanced R distribution from Microsoft
    Microsoft packages Copyright (C) 2016 Microsoft Corporation
    Using the Intel MKL for parallel mathematical computing(using 16 cores).
    Default CRAN mirror snapshot taken on 2016-07-01. See: https://mran.microsoft.com/.

    Tuesday, September 20, 2016 4:51 PM
  • Thanks for you quick reply.

    In fact, firstly I used ./install.sh. As an error occurred in mkl installation, I tried to install the mkl itself by gdebi.

    I'll provide my terminal outputs and logs below:

    Terminal

    $ sudo ./install.sh 
    [sudo] password for jeco: 

    Press [Enter] key to display the Microsoft R Open license. When finished reading, press q to continue: 

    Do you wish to install the Intel MKL libraries?
    Choose [y]es|[n]o y

    Press [Enter] key to display the Intel MKL license. When finished reading, press q to continue: 
    Do you agree to the terms of the previously displayed license?
    Choose [y]es|[n]o y

    Updating apt package repositories...done
    Installing apt package dependencies libxt6 libsm6 libpango1.0-0 libgomp1 curl...done
    Installing /home/jeco/Downloads/microsoft-r-open/deb/microsoft-r-open-mro-3.3.deb...done
    Installing /home/jeco/Downloads/microsoft-r-open/deb/microsoft-r-open-foreachiterators-3.3.deb...done
    Installing /home/jeco/Downloads/microsoft-r-open/deb/microsoft-r-open-mkl-3.3.deb...ERROR!

    There was an error installing Microsoft R Open.
    Please check the logs at:
    /home/jeco/Downloads/microsoft-r-open/logs

    --------------------

    logs/dependencies.txt

    Reading package lists...
    Building dependency tree...
    Reading state information...
    E: The package microsoft-r-open-mkl-3.3 needs to be reinstalled, but I can't find an archive for it.

    ----------------------

    logs/foreachiterators.txt

    (Reading database ... 318542 files and directories currently installed.)
    Preparing to unpack .../microsoft-r-open-foreachiterators-3.3.deb ...
    Unpacking microsoft-r-open-foreachiterators-3.3 (3.3.1) over (3.3.1) ...
    Setting up microsoft-r-open-foreachiterators-3.3 (3.3.1) ...

    ------------------------

    logs/mkl.txt

    (Reading database ... 318542 files and directories currently installed.)
    Preparing to unpack .../microsoft-r-open-mkl-3.3.deb ...
    mv: cannot stat '/usr/lib64/microsoft-r/3.3/lib64/R/backup/lib/*.so': No such file or directory
    dpkg: warning: subprocess old pre-removal script returned error exit status 1
    dpkg: trying script from the new package instead ...
    rm: cannot remove '/usr/lib64/microsoft-r/3.3/lib64/R/lib/*.so': No such file or directory
    mv: cannot stat '/usr/lib64/microsoft-r/3.3/lib64/R/backup/lib/*.so': No such file or directory
    dpkg: error processing archive /home/jeco/Downloads/microsoft-r-open/deb/microsoft-r-open-mkl-3.3.deb (--install):
     subprocess new pre-removal script returned error exit status 1
    mv: cannot stat '/usr/lib64/microsoft-r/3.3/lib64/R/lib/*.so': No such file or directory
    cp: cannot stat '/usr/lib64/microsoft-r/3.3/lib64/R/backup/lib/libR.so': No such file or directory
    cp: cannot stat '/usr/lib64/microsoft-r/3.3/stage/mkl_install_stage/*.so': No such file or directory
    dpkg: error while cleaning up:
     subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
     /home/jeco/Downloads/microsoft-r-open/deb/microsoft-r-open-mkl-3.3.deb

    --------------------------------------

    logs/mro.txt

    (Reading database ... 318542 files and directories currently installed.)
    Preparing to unpack .../microsoft-r-open-mro-3.3.deb ...
    Unpacking microsoft-r-open-mro-3.3 (3.3.1) over (3.3.1) ...
    Setting up microsoft-r-open-mro-3.3 (3.3.1) ...

    -------------------------------------


    • Edited by Jecogeo Tuesday, September 20, 2016 9:58 PM typos
    Tuesday, September 20, 2016 6:37 PM
  • If you don't mind, could you remove each of the following packages using the command:

    sudo dpkg --remove <package_name>

    • microsoft-r-open-mkl-3.3
    • microsoft-r-open-foreachiterators-3.3
    • microsoft-r-open-mro-3.3

    If for some reason removing any package fails, try adding --force-remove-reinstreq after --remove.

    After you do this, run:

    sudo rm -rf /usr/lib64/microsoft-r/3.3 (this will destroy the folder)

    Finally, can you please use gdebi to install each of the packages (in the order that I do in my previous post)? I'd like to know if it works or not. If it doesn't work, I'd be curious to know if you have any custom bash shell options set (like noglob). When I did my testing, I used a clean install of Ubuntu Server 16.04, so I am trying to figure out how I can get a repro.



    • Edited by nsosnov [msft] Thursday, September 22, 2016 2:21 AM
    • Marked as answer by Jecogeo Thursday, September 22, 2016 1:08 PM
    Thursday, September 22, 2016 2:20 AM

  • Yes, great. It worked. .sh installation script doesn't worked (and I can't figure out why), but installing deb files separately as you indicated does. 

    Thanks a lot!

    Thursday, September 22, 2016 1:07 PM
  • Just posting to add a data point here.

    I ended up with a similar corrupt installation on my machine. Was an upgrade from a previously installed MRO 3.2.X. via install.sh that hosed things. On Ubuntu 16.04

    Removal per dpkg --remove (including force for the MKL package) and then reinstalling worked. I used gdebi to reinstall.

    Sorry... not sure if it helps with repro...


    Chris Auld - Intergen Limited and MedRecruit Locum Jobs
    Microsoft Regional Director
    Microsoft MVP

    Monday, September 26, 2016 6:13 AM
  • I had the same problem with mkl on Linux Mint 18 Sarah.  I followed your recommendations to removed the exiting environment, cleaned up the gdebi package file, and then reinstalled with gdebi in the sequence you stated, and it worked. 

    Thanks for the great advice.

    Brett

    Thursday, October 6, 2016 12:29 AM
  • I'm having this exact problem with MKL on Mint 17.3 and this fix is NOT working. 

    See this: 

    $ sudo dpkg --remove --force-remove-reinstreq microsoft-r-open-mkl-3.3
    dpkg: warning: overriding problem because --force enabled:
    dpkg: warning: package is in a very bad inconsistent state; you should
     reinstall it before attempting a removal
    (Reading database ... 432188 files and directories currently installed.)
    Removing microsoft-r-open-mkl-3.3 (3.3.2) ...
    rm: cannot remove ‘/usr/lib64/microsoft-r/3.3/lib64/R/lib/*.so’: No such file or directory
    mv: cannot stat ‘/usr/lib64/microsoft-r/3.3/lib64/R/backup/lib/*.so’: No such file or directory
    dpkg: error processing package microsoft-r-open-mkl-3.3 (--remove):
     subprocess installed pre-removal script returned error exit status 1
    mv: cannot stat ‘/usr/lib64/microsoft-r/3.3/lib64/R/lib/*.so’: No such file or directory
    cp: cannot stat ‘/usr/lib64/microsoft-r/3.3/lib64/R/backup/lib/libR.so’: No such file or directory
    cp: target ‘/usr/lib64/microsoft-r/3.3/lib64/R/lib’ is not a directory
    dpkg: error while cleaning up:
     subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
     microsoft-r-open-mkl-3.3

    ...and this:

    $ sudo apt-get remove microsoft-r-open-*
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: The package microsoft-r-open-mkl-3.3 needs to be reinstalled, but I can't find an archive for it.

    ...and this:

    $ sudo gdebi microsoft-r-open-mkl-3.3.deb 
    Reading package lists... Done
    Building dependency tree        
    Reading state information... Done
    Error opening the cache:
    E:The package microsoft-r-open-mkl-3.3 needs to be reinstalled, but I can't find an archive for it.

    All I did was attempt to follow the instructions :( 



    • Edited by olyerickson Monday, December 12, 2016 2:58 PM
    Monday, December 12, 2016 1:43 PM
  • I made some progress cleaning up this mess using the following:

    sudo mv /var/lib/dpkg/info/microsoft-r-open-mkl-3.3.* /tmp/
    sudo dpkg --remove --force-remove-reinstreq microsoft-r-open-mkl-3.3
    sudo apt-get remove microsoft-r-open-mkl-3.3
    sudo apt-get autoremove && sudo apt-get autoclean

    Apparently, the final line is essential...Now I'll re-attempt an install. 

    Monday, December 12, 2016 2:07 PM
  • After doing the above, I *appear* to have a successful MRO install (see results below). Haven't gotten it to actually *run* yet, however...

    $ sudo gdebi microsoft-r-open-mro-3.3.deb
    Reading package lists... Done
    Building dependency tree        
    Reading state information... Done
    Building data structures... Done 
    Building data structures... Done 

    Microsoft R Open
    Do you want to install the software package? [y/N]:y
    Selecting previously unselected package microsoft-r-open-mro-3.3.
    (Reading database ... 432143 files and directories currently installed.)
    Preparing to unpack microsoft-r-open-mro-3.3.deb ...
    Unpacking microsoft-r-open-mro-3.3 (3.3.2) ...
    Setting up microsoft-r-open-mro-3.3 (3.3.2) ...

    $ sudo gdebi microsoft-r-open-foreachiterators-3.3.deb
    Reading package lists... Done
    Building dependency tree        
    Reading state information... Done
    Building data structures... Done 
    Building data structures... Done 

    Microsoft R Open
    Do you want to install the software package? [y/N]:y
    Selecting previously unselected package microsoft-r-open-foreachiterators-3.3.
    (Reading database ... 435094 files and directories currently installed.)
    Preparing to unpack microsoft-r-open-foreachiterators-3.3.deb ...
    Unpacking microsoft-r-open-foreachiterators-3.3 (3.3.2) ...
    Setting up microsoft-r-open-foreachiterators-3.3 (3.3.2) ...

    $ sudo gdebi microsoft-r-open-mkl-3.3.deb
    Reading package lists... Done
    Building dependency tree        
    Reading state information... Done
    Building data structures... Done 
    Building data structures... Done 

    Microsoft R Open
    Do you want to install the software package? [y/N]:y
    Selecting previously unselected package microsoft-r-open-mkl-3.3.
    (Reading database ... 435219 files and directories currently installed.)
    Preparing to unpack microsoft-r-open-mkl-3.3.deb ...
    Unpacking microsoft-r-open-mkl-3.3 (3.3.2) ...
    Setting up microsoft-r-open-mkl-3.3 (3.3.2) ...

    BUT:

    $ whereis R
    R: /usr/bin/R /etc/R /usr/lib/R /usr/bin/X11/R /usr/local/bin/R /usr/local/lib/R /usr/share/R /usr/share/man/man1/R.1.gz




    • Edited by olyerickson Monday, December 12, 2016 2:58 PM
    Monday, December 12, 2016 2:17 PM
  • Good News: MRO runs...

    Bad News: It's a barf-o-matic when it launches:

    /usr/lib64/microsoft-r/3.3/lib64/R/bin/R
    WARNING: ignoring environment value of R_HOME
    Error in file(filename, "r") : 
      5 arguments passed to .Internal(file) which requires 6
    Error : unable to load R code in package ‘utils’

    R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"
    Copyright (C) 2016 The R Foundation for Statistical Computing
    Platform: x86_64-pc-linux-gnu (64-bit)

    R is free software and comes with ABSOLUTELY NO WARRANTY.
    You are welcome to redistribute it under certain conditions.
    Type 'license()' or 'licence()' for distribution details.

      Natural language support but running in an English locale

    R is a collaborative project with many contributors.
    Type 'contributors()' for more information and
    'citation()' on how to cite R or R packages in publications.

    Type 'demo()' for some demos, 'help()' for on-line help, or
    'help.start()' for an HTML browser interface to help.
    Type 'q()' to quit R.

    Warning message:
    package "methods" in options("defaultPackages") was not found 
    Error in loadNamespace(name) : there is no package called ‘RevoUtils’
    Error in file(filename, "r") : 
      5 arguments passed to .Internal(file) which requires 6
    Error : unable to load R code in package ‘utils’
    Error in file(filename, "r") : 
      5 arguments passed to .Internal(file) which requires 6
    In addition: Warning message:
    package ‘utils’ in options("defaultPackages") was not found 
    Error : unable to load R code in package ‘grDevices’
    Error in file(filename, "r") : 
      5 arguments passed to .Internal(file) which requires 6
    In addition: Warning message:
    package ‘grDevices’ in options("defaultPackages") was not found 
    Error : unable to load R code in package ‘grDevices’
    Error in file(filename, "r") : 
      5 arguments passed to .Internal(file) which requires 6
    In addition: Warning message:
    package ‘graphics’ in options("defaultPackages") was not found 
    Error : unable to load R code in package ‘grDevices’
    Error in file(filename, "r") : 
      5 arguments passed to .Internal(file) which requires 6
    In addition: Warning message:
    package ‘stats’ in options("defaultPackages") was not found 
    Error : unable to load R code in package ‘utils’
    During startup - Warning message:
    package ‘methods’ in options("defaultPackages") was not found

    Monday, December 12, 2016 2:23 PM
  • Epic fail: defaultPackages were not installed with MRO! 

    This is *bad*:

    ℝ> install.packages("RevoUtils")
    Error: could not find function "install.packages"
    ℝ> installed.packages()           
    Error: could not find function "installed.packages"

    :( 


    Monday, December 12, 2016 2:35 PM
  • I don't think any of the base packages were installed; see esp:

    ℝ> help()
    Error: could not find function "help"

    This MRO install is hosed...thankfully, RStudio can't find it so I can still use my vanilla 3.2.3 install!

    Monday, December 12, 2016 2:41 PM
  • It's definitely installed, but Linux doesn't see it and can't uninstall it:

    $ sudo apt-get remove microsoft-r-open-*
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Unable to locate package microsoft-r-open-foreachiterators-3.3.deb
    E: Couldn't find any package by regex 'microsoft-r-open-foreachiterators-3.3.deb'
    E: Unable to locate package microsoft-r-open-mkl-3.3.deb
    E: Couldn't find any package by regex 'microsoft-r-open-mkl-3.3.deb'
    E: Unable to locate package microsoft-r-open-mro-3.3.deb
    E: Couldn't find any package by regex 'microsoft-r-open-mro-3.3.deb'




    • Edited by olyerickson Monday, December 12, 2016 2:57 PM
    Monday, December 12, 2016 2:45 PM
  • Trying to re-install via dpkg, hoping Linux will do the right think. Unfortunately, no :(

    $sudo dpkg -i microsoft-r-open-mro-3.3.deb 
    (Reading database ... 435259 files and directories currently installed.)
    Preparing to unpack microsoft-r-open-mro-3.3.deb ...
    Unpacking microsoft-r-open-mro-3.3 (3.3.2) over (3.3.2) ...
    Setting up microsoft-r-open-mro-3.3 (3.3.2) ...

    $ sudo dpkg -i microsoft-r-open-foreachiterators-3.3.deb 
    (Reading database ... 435259 files and directories currently installed.)
    Preparing to unpack microsoft-r-open-foreachiterators-3.3.deb ...
    Unpacking microsoft-r-open-foreachiterators-3.3 (3.3.2) over (3.3.2) ...
    Setting up microsoft-r-open-foreachiterators-3.3 (3.3.2) ...

    $ sudo dpkg -i microsoft-r-open-mkl-3.3.deb 
    (Reading database ... 435259 files and directories currently installed.)
    Preparing to unpack microsoft-r-open-mkl-3.3.deb ...
    mv: cannot stat ‘/usr/lib64/microsoft-r/3.3/lib64/R/backup/lib/*.so’: No such file or directory
    dpkg: warning: subprocess old pre-removal script returned error exit status 1
    dpkg: trying script from the new package instead ...
    rm: cannot remove ‘/usr/lib64/microsoft-r/3.3/lib64/R/lib/*.so’: No such file or directory
    mv: cannot stat ‘/usr/lib64/microsoft-r/3.3/lib64/R/backup/lib/*.so’: No such file or directory
    dpkg: error processing archive microsoft-r-open-mkl-3.3.deb (--install):
     subprocess new pre-removal script returned error exit status 1
    mv: cannot stat ‘/usr/lib64/microsoft-r/3.3/lib64/R/lib/*.so’: No such file or directory
    cp: cannot stat ‘/usr/lib64/microsoft-r/3.3/lib64/R/backup/lib/libR.so’: No such file or directory
    Errors were encountered while processing:
     microsoft-r-open-mkl-3.3.deb

    :( 

    Monday, December 12, 2016 2:57 PM
  • @nsosnov wondering your thoughts on this? I'd love to get MRO working so I can recommend it to the rest of my team...

    Director of Research Operations, The Rensselaer IDEA

    Tuesday, December 13, 2016 1:31 PM
  • I can try to repro/debug this in my free time, but please keep in mind that none of the Linux Mint flavors are supported. I only say this because we do a fair amount of installation testing on supported platforms, and thus I expect those to work well.

    Mint is based off of Ubuntu IIRC, so I would expect it to work, but it is possible that there are distribution differences that are causing these issues that we need to handle in our installation logic.

    Wednesday, December 14, 2016 8:59 PM
  • None of the other answers in this thread worked, because I continued to get the error "The package microsoft-r-open-mkl-3.3 needs to be reinstalled, but I can't find an archive for it." I found a solution somewhere else that worked.

    What I had to do was fix the dkpg status file at /var/lib/dpkg/status.

    First back up the file:

    sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.bkup

    Then open it:

    sudo gedit /var/lib/dpkg/status

    (or whichever editor you prefer)

    and ctrl-f for microsoft-r-open, and carefully remove all 3 entries you find. The entries are separated from other entries double newlines; remove all 10 or so lines of each, entry, e.g.:

    Package: microsoft-r-open-mro-3.3
    Status: install ok installed
    Priority: optional
    Section: devel
    Installed-Size: 129189
    Maintainer: revobuil@microsoft.com
    Architecture: amd64
    Version: 3.3.2
    Depends: libxt6, libsm6, libpango1.0-0, libgomp1, curl
    Description: Microsoft R Open

    (The three entries for me were microsoft-r-open-mro-3.3, microsoft-r-open-mkl-3.3, and microsoft-r-open-foreachiterators-3.3)

    After this, I removed the folder with 

    sudo rm -rf /usr/lib64/microsoft-r/3.3

    and installed R simply with

    sudo ./install.sh

    in the downloaded microsoft-r-open directory. It worked!

    • Edited by sssheridan Monday, July 17, 2017 1:25 PM some words
    • Proposed as answer by sssheridan Monday, July 17, 2017 1:26 PM
    Friday, February 3, 2017 2:25 PM
  • worked a charm!

    thanks

    Thursday, April 20, 2017 8:16 PM
  • I ran into the same problem on Ubuntu 16.04 and sssheridan's response works a treat.

    An observation is that when I tried installing for the first time, it failed with a specific MKL error - something to the effect that it could not find a file within /usr/lib64/microsoft-r/3.3/................ (I didn't capture what it was, but it was some library.so file).

    That could well be true because initially the directory /usr/lib64/ did not exist on my system.
    During installation, mro installation seems not to have created it by the time mkl installation was trying to use it. After that, on the 2nd attempt is when I got the generic error.

    I am not experienced enough with the installation process to know for certain or to tinker with the ./install.sh to experiment. Just noting this here in case it helps resolve the issue.

    Monday, May 1, 2017 7:36 PM