re- installing R linux ubuntu: unmet dependencies R

后端 未结 5 2259
悲&欢浪女
悲&欢浪女 2020-12-16 21:30

I used aptitude install to install a package, Ubuntu 11.10 oneiric, that apparently I couldn\'t install because of dependencies. I removed a couple of more libraries while d

相关标签:
5条回答
  • 2020-12-16 21:32
    1. Uninstall previous R installation:

      sudo R --no-save
      pkgList <- installed.packages(priority='NA')
      remove.packages(pkgList)
      q()
      sudo apt-get remove --purge r-cran* r-base*
      
    2. Follow instructions (for R part) from: How to install R, JGR and Deducer in Ubuntu

    0 讨论(0)
  • 2020-12-16 21:38

    Try this

    If you have added a line from new ubuntu repository to /etc/apt/sources.list, erase the line. Then, run the commands

    sudo add-apt-repository ppa:marutter/rrutter 
    sudo apt-get update 
    sudo apt-get upgrade 
    

    It worked for me, the answer comes from here http://r.789695.n4.nabble.com/Upgrading-on-Ubuntu-from-2-11-1-to-2-15-1-td4636965.html

    0 讨论(0)
  • 2020-12-16 21:44

    If you want to remove the package forcefully,you can do

    sudo dpkg --remove --force-remove-reinstreq package_name 
    

    and then

    sudo apt-get update
    
    0 讨论(0)
  • 2020-12-16 21:54

    If you are facing problems regarding Broken packages then first of all remove that package by first checking dependencies and then forcefully remove that package, and don't ever forget to reboot when you do make enormous changes in your system. To remove that package use these shell commands

    $ sudo su
    

    Then Enter your password

    # apt-cache rdepends package-name
    # apt-get --purge remove --force package-name
    

    Use these shell commands

    # apt-get clean
    # apt-get autoclean
    # apt-get update
    # apt-get upgrade
    # apt-get dist-upgrade
    # reboot
    

    This worked for me, Try this, I believe this will fix all your problems, Good luck.

    0 讨论(0)
  • 2020-12-16 21:56

    To list what you installed with aptitude type the following

    xyz@sxyzcom~$ sudo apt-get remove
    

    This should list what remains of your R install and possibly anything else missing dependencies Then you can run

    xyz@sxyzcom~$ sudo apt-get autoremove
    

    and that should get you back to square one.

    0 讨论(0)
提交回复
热议问题