trouble installing R packages for Ubuntu 18.04 AFNI install

Hi, I’m having trouble installing AFNI for Ubuntu 18.04. I’ve followed the instructions for AFNI installation on the NIH page, but I can’t get past the R packages install. It looks like the dependencies for the required R packages aren’t installing, but when I try to install the dependencies manually in R it says they aren’t available. Any help would be much appreciated!

-------------------------------- general ---------------------------------
architecture: 64bit
system: Linux
release: 5.0.0-31-generic
version: #33~18.04.1-Ubuntu SMP Tue Oct 1 10:20:39 UTC 2019
distribution: Ubuntu 18.04 bionic
number of CPUs: 12
apparent login shell: bash
shell RC file: .bashrc (exists)

--------------------- AFNI and related program tests ---------------------
which afni : /home/anna/abin/afni
afni version : Precompiled binary linux_ubuntu_16_64: Oct 21 2019
: AFNI_19.3.08 ‘Nero’
AFNI_version.txt : AFNI_19.3.08, linux_ubuntu_16_64, Oct 21 2019
which python : /usr/bin/python
python version : 2.7.15+
which R : /usr/bin/R
R version : R version 3.4.4 (2018-03-15) – “Someone to Lean On”
which tcsh : /usr/bin/tcsh

instances of various programs found in PATH:
afni : 1 (/home/anna/abin/afni)
R : 1 (/usr/bin/R)
python : 1 (/usr/bin/python2.7)
python2 : 1 (/usr/bin/python2.7)
python3 : 1 (/usr/bin/python3.6)

testing ability to start various programs…
afni : success
suma : success
3dSkullStrip : success
uber_subject.py : success
3dAllineate : success
3dRSFC : success
SurfMesh : success
3dClustSim : success
3dMVM : success

checking for R packages…
rPkgsInstall -pkgs ALL -check : FAILURE

    oo Warning: 
       These packages are not installed on the computer: afex!
    These packages are not installed on the computer: phia!
    These packages are not installed on the computer: brms!
    These packages are not installed on the computer: metafor!

R RHOME : /usr/lib/R

checking for $HOME files…
.afnirc : found
.sumarc : found
.afni/help/all_progs.COMP : found

------------------------------ python libs -------------------------------
++ module loaded: PyQt4
module file : /usr/lib/python2.7/dist-packages/PyQt4/init.pyc

** failed to load module matplotlib.pyplot
– matplotlib.pyplot is not required, but is desirable

– python binaries under /usr/local/bin:
/usr/local/bin/python2.7

-------------------------------- env vars --------------------------------
PATH = /usr/local/fsl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/anna/abin

PYTHONPATH =
R_LIBS = /home/anna/R

LD_LIBRARY_PATH =
DYLD_LIBRARY_PATH =
DYLD_FALLBACK_LIBRARY_PATH =

------------------------------ data checks -------------------------------
data dir : missing AFNI_data6
data dir : missing AFNI_demos
data dir : missing suma_demo
data dir : missing afni_handouts
atlas : found TT_N27+tlrc under /home/anna/abin

------------------------------ OS specific -------------------------------
which apt-get : /usr/bin/apt-get
apt-get version : apt 1.6.12 (amd64)

have Ubuntu system: Ubuntu 18.04 bionic
have Ubuntu afni : Precompiled binary linux_ubuntu_16_64: Oct 21 2019

========================= summary, please fix: =========================

  • login shell ‘bash’, trusting user to translate code examples from ‘tcsh’
  • missing R packages (see rPkgsInstall)
  • insufficient data for AFNI bootcamp

Hi-

I think the problem is that your version of R is too old:


R version : R version 3.4.4 (2018-03-15) -- "Someone to Lean On"

It should be at least 3.5., and probably on Linux even 3.6. is standard now.

Under the Ubuntu 18.04 setup instructions, there is a description of using a startup script to update your R:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/background_install/install_instructs/steps_linux_ubuntu18.html#install-r
… but please note that this will purge your current R and install a newer version with the desired packages-- if you have special packages or something to save, then another route might be easier. (However, updating R and packages is often tricky; the “full removal + update of repo list + reinstall newer R” often seems the easiest.)

–pt

When I run these scripts, it installs R version 3.4.4 . Do you have any other thoughts? Thanks again for your help.

That’s weird.

What is the output of this:


grep -H cloud /etc/apt/sources.list

?

–pt

Hi,
I have followed the installation guide for Ubuntu 18.04, however, four libraries continue to be missing “afex”, “phia”, “brms”, and “metafor”. I see from the message board history that user alfarmer8 had the same issue a couple of months ago, and I’m wondering whether a solution was found. Thank you, and happy new year! :)o

-------------------------------- general ---------------------------------
architecture: 64bit
system: Linux
release: 5.0.0-37-generic
version: #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019
distribution: elementary 5.1 hera
number of CPUs: 8
apparent login shell: bash
shell RC file: .bashrc (exists)

--------------------- AFNI and related program tests ---------------------
which afni : /home/pereanez/abin/afni
afni version : Precompiled binary linux_ubuntu_16_64: Dec 27 2019
: AFNI_19.3.18 ‘Nero’
AFNI_version.txt : AFNI_19.3.18, linux_ubuntu_16_64, Dec 27 2019
which python : /usr/bin/python
python version : 2.7.15+
which R : /usr/bin/R
R version : R version 3.6.2 (2019-12-12) – “Dark and Stormy Night”
which tcsh : /usr/bin/tcsh

instances of various programs found in PATH:
afni : 1 (/home/pereanez/abin/afni)
R : 1 (/usr/bin/R)
python : 1 (/usr/bin/python2.7)
python2 : 1 (/usr/bin/python2.7)
python3 : 1 (/usr/bin/python3.6)

testing ability to start various programs…
afni : success
suma : success
3dSkullStrip : success
uber_subject.py : success
3dAllineate : success
3dRSFC : success
SurfMesh : success
3dClustSim : success
3dMVM : success

checking for R packages…
rPkgsInstall -pkgs ALL -check : FAILURE

    oo Warning: 
       These packages are not installed on the computer: afex!
    These packages are not installed on the computer: phia!
    These packages are not installed on the computer: brms!
    These packages are not installed on the computer: metafor!

R RHOME : /usr/lib/R

checking for $HOME files…
.afnirc : found
.sumarc : found
.afni/help/all_progs.COMP : found

------------------------------ python libs -------------------------------
++ module loaded: PyQt4
module file : /usr/lib/python2.7/dist-packages/PyQt4/init.pyc

** failed to load module matplotlib.pyplot
– matplotlib.pyplot is not required, but is desirable

-------------------------------- env vars --------------------------------
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/pereanez/abin

PYTHONPATH =
R_LIBS = /home/pereanez/R

LD_LIBRARY_PATH =
DYLD_LIBRARY_PATH =
DYLD_FALLBACK_LIBRARY_PATH =

------------------------------ data checks -------------------------------
data dir : found AFNI_data6 under $HOME
top history: …2019 [ptaylor]: updated FT_analysis/results.QC_FT.05
data dir : found AFNI_demos under $HOME
top history: 22 Oct 2019 [discoraj]: added Cluster Explorer Demo
data dir : found suma_demo under $HOME
top history: …s_New/data/Build_tmp on Mon Mar 4 11:56:45 EST 2013
data dir : found afni_handouts under $HOME
atlas : found TT_N27+tlrc under /home/pereanez/abin

------------------------------ OS specific -------------------------------
which apt-get : /usr/bin/apt-get
apt-get version : apt 1.6.12 (amd64)

========================= summary, please fix: =========================

  • login shell ‘bash’, trusting user to translate code examples from ‘tcsh’
  • shell bash: consider sourcing (non-login) .bashrc from (login) .profile
  • missing R packages (see rPkgsInstall)

Hi-

I’m guessing that is on Windows Subsystem Linux-- is that right?

Did you try this solution:
https://afni.nimh.nih.gov/afni/community/board/read.php?1,162604,162604#msg-162604
?

–pt

I’m having similar problems installing R packages for Ubuntu 18.04.
I’ve tried the different solutions presented in this thread without sucess.

What do you recommend I try next.

I’ve posted below my output results when running system check.

Thank you for your help

-------------------------------- general ---------------------------------
architecture: 64bit
system: Linux
release: 4.4.0-18362-Microsoft
version: #836-Microsoft Mon May 05 16:04:00 PST 2020
distribution: Ubuntu 18.04 bionic
number of CPUs: 4
apparent login shell: bash
shell RC file: .bashrc (exists)

--------------------- AFNI and related program tests ---------------------
which afni : /home/chammo20/abin/afni
afni version : Precompiled binary linux_ubuntu_16_64: Aug 21 2020
: AFNI_20.2.14 ‘Aulus Vitellius’
AFNI_version.txt : AFNI_20.2.14, linux_ubuntu_16_64, Aug 21 2020
which python : /usr/bin/python
python version : 2.7.15rc1
which R : /usr/bin/R
R version : R version 3.6.3 (2020-02-29) – “Holding the Windsock”
which tcsh : /usr/bin/tcsh

instances of various programs found in PATH:
afni : 1 (/home/chammo20/abin/afni)
R : 1 (/usr/bin/R)
python : 1 (/usr/bin/python2.7)
python2 : 1 (/usr/bin/python2.7)
python3 : 1 (/usr/bin/python3.6)

testing ability to start various programs…
afni : success
suma : success
3dSkullStrip : success
uber_subject.py : success
3dAllineate : success
3dRSFC : success
SurfMesh : success
3dClustSim : success
3dMVM : success

checking for R packages…
rPkgsInstall -pkgs ALL -check : FAILURE

    oo Warning:
       These packages are not installed on the computer: brms!

R RHOME : /usr/lib/R

checking for $HOME files…
.afnirc : found
.sumarc : found
.afni/help/all_progs.COMP : found

------------------------------ python libs -------------------------------
++ module loaded: PyQt4
module file : /usr/lib/python2.7/dist-packages/PyQt4/init.pyc

++ module loaded: matplotlib.pyplot
module file : /usr/lib/python2.7/dist-packages/matplotlib/pyplot.pyc

-------------------------------- env vars --------------------------------
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_2004.2020.812.0_x64__79rhkp1fndgsc:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/mnt/c/Program Files/Intel/WiFi/bin/:/mnt/c/Program Files/Common Files/Intel/WirelessCommon/:/mnt/c/Program Files/IBM/SPSS/Statistics/Subscription/JRE/bin:/mnt/c/Program Files/IBM/SPSS/Statistics/25/JRE/bin:/mnt/c/Users/bmc/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/bmc/AppData/Local/Polycom/RealPresence Desktop/:/snap/bin:/home/chammo20/abin:/home/chammo20/abin

PYTHONPATH =
R_LIBS = /home/chammo20/R

LD_LIBRARY_PATH =
DYLD_LIBRARY_PATH =
DYLD_FALLBACK_LIBRARY_PATH =

------------------------------ data checks -------------------------------
data dir : found AFNI_data6 under $HOME
top history: 20 Feb 2020 [rickr]: updated FT_analysis examples
data dir : found AFNI_demos under $HOME
top history: 22 Oct 2019 [discoraj]: added Cluster Explorer Demo
data dir : found suma_demo under $HOME
top history: …s_New/data/Build_tmp on Mon Mar 4 11:56:45 EST 2013
data dir : found afni_handouts under $HOME
atlas : found TT_N27+tlrc under /home/chammo20/abin

------------------------------ OS specific -------------------------------
which apt-get : /usr/bin/apt-get
apt-get version : apt 1.6.3 (amd64)

have Ubuntu system: Ubuntu 18.04 bionic
have Ubuntu afni : Precompiled binary linux_ubuntu_16_64: Aug 21 2020

========================= summary, please fix: =========================

  • just be aware: login shell ‘bash’, but our code examples use ‘tcsh’
  • missing R packages (see rPkgsInstall)video

Ugh, R… I don’t know why life is so difficult with it… But anyways…

Can you please try copy+pasting each of these lines? (I would copy+paste the first one, and you will be asked for your administrative password, and then you can copy+paste the others all at once, if you want, and the admin password will be saved to apply to the others for a short interval):


sudo add-apt-repository -y "ppa:marutter/rrutter3.5"
sudo add-apt-repository -y "ppa:marutter/c2d4u3.5"

sudo apt update

sudo apt install -y r-cran-brms

–pt

Just tried it.
I got an error message with the last command “sudo apt install -y r-cran-brms” stating:

Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
r-cran-brms : Depends: r-cran-rstan but it is not going to be installed
Depends: r-cran-shinystan but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Ideas?
Thanks.

Hmm, I think that error message "Unable to correct problems, you have held broken packages. " means that a previous install of something didn’t complete successfully.

What is the output of:


apt-mark showhold

?

–pt

I don’t get any output when I enter that command.
The output is as follows:

chammo20@DESKTOP-BB7NQKM:~$ apt-mark showhold
chammo20@DESKTOP-BB7NQKM:~$ apt-mark hold
E: No packages found
chammo20@DESKTOP-BB7NQKM:~$ apt-mark unhold
E: No packages found
chammo20@DESKTOP-BB7NQKM:~$
chammo20@DESKTOP-BB7NQKM:~$ apt-mark showauto
adwaita-icon-theme
aspell
aspell-en
at-spi2-core
avahi-daemon
binutils
binutils-common
binutils-x86-64-linux-gnu
blt
bubblewrap
bzip2-doc
cpp
cpp-7
dbus-user-session
dconf-gsettings-backend
dconf-service
desktop-file-utils
dictionaries-common
dpkg-dev
emacsen-common
enchant
evince-common
fakeroot
fontconfig
fontconfig-config
fonts-dejavu-core
fonts-droid-fallback
fonts-lyx
fonts-noto-mono
g++
g+±7
gcc
gcc-6-base
gcc-7
gcc-7-base
gcr
gedit-common
geoclue-2.0
gfortran
gfortran-7
ghostscript
gir1.2-atk-1.0
gir1.2-freedesktop
gir1.2-gdesktopenums-3.0
gir1.2-gdkpixbuf-2.0
gir1.2-gnomedesktop-3.0
gir1.2-gtk-3.0
gir1.2-gtksource-3.0
gir1.2-harfbuzz-0.0
gir1.2-notify-0.7
gir1.2-pango-1.0
gir1.2-peas-1.0
gir1.2-soup-2.4
glib-networking
glib-networking-common
glib-networking-services
gnome-desktop3-data
gnome-icon-theme
gnome-keyring
gnome-keyring-pkcs11
gnome-settings-daemon
gnome-settings-daemon-schemas
gnome-shell-common
gnome-terminal-data
gnome-tweaks
gsettings-desktop-schemas
gsfonts
gstreamer1.0-gl
gstreamer1.0-plugins-base
gstreamer1.0-plugins-good
gstreamer1.0-pulseaudio
gstreamer1.0-x
gtk-update-icon-cache
gvfs
gvfs-backends
gvfs-common
gvfs-daemons
gvfs-libs
hicolor-icon-theme
humanity-icon-theme
hunspell-en-us
icu-devtools
iio-sensor-proxy
javascript-common
libaa1
libalgorithm-diff-perl
libalgorithm-diff-xs-perl
libalgorithm-merge-perl
libarchive13
libasan4
libasound2
libasound2-data
libasound2-plugins
libaspell15
libasyncns0
libatasmart4
libatk-bridge2.0-0
libatk1.0-0
libatk1.0-data
libatomic1
libatspi2.0-0
libaudio2
libauthen-sasl-perl
libavahi-client3
libavahi-common-data
libavahi-common3
libavahi-core7
libavahi-glib1
libavc1394-0
libbinutils
libblas-dev
libblas3
libblockdev-crypto2
libblockdev-fs2
libblockdev-loop2
libblockdev-part-err2
libblockdev-part2
libblockdev-swap2
libblockdev-utils2
libblockdev2
libbrotli1
libbz2-dev
libc-dev-bin
libc6-dev
libcaca0
libcairo-gobject2
libcairo2
libcanberra-gtk3-0
libcanberra-gtk3-module
libcanberra0
libcc1-0
libcdio-cdda2
libcdio-paranoia2
libcdio17
libcdparanoia0
libcilkrts5
libcolord2
libcroco3
libcups2
libcupsfilters1
libcupsimage2
libdaemon0
libdata-dump-perl
libdatrie1
libdbus-glib-1-2
libdbusmenu-glib4
libdbusmenu-gtk3-4
libdconf1
libdee-1.0-4
libdjvulibre-text
libdjvulibre21
libdpkg-perl
libdrm-amdgpu1
libdrm-dev
libdrm-intel1
libdrm-nouveau2
libdrm-radeon1
libdv4
libegl-mesa0
libegl1
libenchant1c2a
libencode-locale-perl
libepoxy0
libevdocument3-4
libevview3-3
libexempi3
libexif12
libfakeroot
libfile-basedir-perl
libfile-desktopentry-perl
libfile-fcntllock-perl
libfile-listing-perl
libfile-mimeinfo-perl
libflac8
libfont-afm-perl
libfontconfig1
libfontenc1
libfreetype6
libgail-3-0
libgbm1
libgcc-7-dev
libgck-1-0
libgcr-base-3-1
libgcr-ui-3-1
libgd3
libgdata-common
libgdata22
libgdk-pixbuf2.0-0
libgdk-pixbuf2.0-bin
libgdk-pixbuf2.0-common
libgeoclue-2-0
libgeocode-glib0
libgfortran-7-dev
libgfortran4
libgl1
libgl1-mesa-dev
libgl1-mesa-dri
libgl1-mesa-glx
libglapi-mesa
libgles1
libgles2
libglib2.0-bin
libglib2.0-dev
libglib2.0-dev-bin
libglu1-mesa
libglvnd-core-dev
libglvnd-dev
libglvnd0
libglx-mesa0
libglx0
libgnome-autoar-0-0
libgnome-desktop-3-17
libgoa-1.0-0b
libgoa-1.0-common
libgomp1
libgpgme11
libgphoto2-6
libgphoto2-l10n
libgphoto2-port12
libgraphene-1.0-0
libgraphite2-3
libgraphite2-dev
libgs9
libgs9-common
libgsl23
libgslcblas0
libgspell-1-1
libgspell-1-common
libgstreamer-gl1.0-0
libgstreamer-plugins-base1.0-0
libgstreamer-plugins-good1.0-0
libgstreamer1.0-0
libgtk-3-0
libgtk-3-bin
libgtk-3-common
libgtksourceview-3.0-1
libgtksourceview-3.0-common
libgudev-1.0-0
libgweather-3-15
libgweather-common
libgxps2
libharfbuzz-dev
libharfbuzz-gobject0
libharfbuzz-icu0
libharfbuzz0b
libhtml-form-perl
libhtml-format-perl
libhtml-parser-perl
libhtml-tagset-perl
libhtml-tree-perl
libhttp-cookies-perl
libhttp-daemon-perl
libhttp-date-perl
libhttp-message-perl
libhttp-negotiate-perl
libhunspell-1.6-0
libhyphen0
libice6
libicu-dev
libicu-le-hb-dev
libicu-le-hb0
libiculx60
libiec61883-0
libijs-0.35
libimobiledevice6
libio-html-perl
libio-socket-ssl-perl
libipc-system-simple-perl
libisl19
libitm1
libjack-jackd2-0
libjansson4
libjavascriptcoregtk-4.0-18
libjbig0
libjbig2dec0
libjpeg-dev
libjpeg-turbo8
libjpeg-turbo8-dev
libjpeg8
libjpeg8-dev
libjs-jquery
libjs-jquery-ui
libjson-glib-1.0-0
libjson-glib-1.0-common
libkpathsea6
liblapack-dev
liblapack3
liblcms2-2
libldb1
libllvm7
liblsan0
libltdl7
liblwp-mediatypes-perl
liblwp-protocol-https-perl
liblzma-dev
libmailtools-perl
libmbim-glib4
libmbim-proxy
libmm-glib0
libmng2
libmotif-common
libmp3lame0
libmpc3
libmpg123-0
libmpx2
libmtp-common
libmtp-runtime
libmtp9
libmysqlclient20
libnautilus-extension1a
libncurses5-dev
libnet-dbus-perl
libnet-http-perl
libnet-smtp-ssl-perl
libnet-ssleay-perl
libnetpbm10
libnl-3-200
libnl-genl-3-200
libnm0
libnotify4
libnspr4
libnss-mdns
libnss3
liboauth0
libogg0
libopengl0
libopus0
liborc-0.4-0
libpam-gnome-keyring
libpango-1.0-0
libpangocairo-1.0-0
libpangoft2-1.0-0
libpangoxft-1.0-0
libpaper-utils
libpaper1
libparted-fs-resize0
libpciaccess0
libpcre16-3
libpcre2-16-0
libpcre2-32-0
libpcre2-8-0
libpcre2-dev
libpcre2-posix0
libpcre3-dev
libpcre32-3
libpcrecpp0v5
libpcsclite1
libpeas-1.0-0
libpeas-common
libpixman-1-0
libplist3
libpng-dev
libpng-tools
libpoppler-glib8
libpoppler73
libproxy1v5
libpthread-stubs0-dev
libpulse-mainloop-glib0
libpulse0
libpulsedsp
libpython-stdlib
libpython2.7
libpython2.7-minimal
libpython2.7-stdlib
libqmi-glib5
libqmi-proxy
libqt4-dbus
libqt4-declarative
libqt4-designer
libqt4-help
libqt4-network
libqt4-script
libqt4-scripttools
libqt4-sql
libqt4-sql-mysql
libqt4-svg
libqt4-test
libqt4-xml
libqt4-xmlpatterns
libqtassistantclient4
libqtcore4
libqtdbus4
libqtgui4
libquadmath0
libraw1394-11
libreadline-dev
librest-0.7-0
librsvg2-2
librsvg2-common
libsamplerate0
libsecret-1-0
libsecret-common
libsensors4
libshout3
libsm6
libsmbclient
libsndfile1
libsoup-gnome2.4-1
libsoup2.4-1
libspectre1
libspeex1
libspeexdsp1
libssl-doc
libstartup-notification0
libstdc+±7-dev
libstemmer0d
libtag1v5
libtag1v5-vanilla
libtalloc2
libtcl8.6
libtdb1
libtevent0
libthai-data
libthai0
libtheora0
libtie-ixhash-perl
libtiff5
libtimedate-perl
libtinfo-dev
libtk8.6
libtracker-sparql-2.0-0
libtry-tiny-perl
libtsan0
libtwolame0
libubsan0
libudisks2-0
libunity-protocol-private0
libunity-scopes-json-def-desktop
libunity9
libupower-glib3
liburi-perl
libusbmuxd4
libv4l-0
libv4lconvert0
libvisual-0.4-0
libvolume-key1
libvorbis0a
libvorbisenc2
libvorbisfile3
libvpx5
libvte-2.91-0
libvte-2.91-common
libwacom-bin
libwacom-common
libwacom2
libwavpack1
libwayland-client0
libwayland-cursor0
libwayland-egl1
libwayland-server0
libwbclient0
libwebkit2gtk-4.0-37
libwebp6
libwebpdemux2
libwebpmux3
libwebrtc-audio-processing1
libwoff1
libwww-perl
libwww-robotrules-perl
libx11-dev
libx11-doc
libx11-protocol-perl
libx11-xcb-dev
libx11-xcb1
libxau-dev
libxaw7
libxcb-dri2-0
libxcb-dri2-0-dev
libxcb-dri3-0
libxcb-dri3-dev
libxcb-glx0
libxcb-glx0-dev
libxcb-present-dev
libxcb-present0
libxcb-randr0
libxcb-randr0-dev
libxcb-render0
libxcb-render0-dev
libxcb-shape0
libxcb-shape0-dev
libxcb-shm0
libxcb-sync-dev
libxcb-sync1
libxcb-util1
libxcb-xfixes0
libxcb-xfixes0-dev
libxcb1-dev
libxcomposite1
libxcursor1
libxdamage-dev
libxdamage1
libxdmcp-dev
libxext-dev
libxfixes-dev
libxfixes3
libxfont2
libxft2
libxi6
libxinerama1
libxkbcommon0
libxkbfile1
libxml-parser-perl
libxml-twig-perl
libxml-xpathengine-perl
libxmu6
libxpm4
libxrandr2
libxrender1
libxshmfence-dev
libxshmfence1
libxss1
libxt6
libxtst6
libxv1
libxxf86dga1
libxxf86vm-dev
libxxf86vm1
libyelp0
libzeitgeist-2.0-0
linux-libc-dev
make
manpages-dev
mesa-common-dev
modemmanager
mutter-common
mysql-common
nautilus-data
nautilus-extension-gnome-terminal
notification-daemon
p11-kit
p11-kit-modules
perl-openssl-defaults
pinentry-gnome3
pkg-config
poppler-data
pulseaudio
pulseaudio-utils
python
python-backports.functools-lru-cache
python-cycler
python-dateutil
python-matplotlib-data
python-minimal
python-numpy
python-olefile
python-pil
python-pyparsing
python-sip
python-six
python-subprocess32
python-talloc
python-tk
python-tz
python2.7
python2.7-minimal
python3-cairo
python3-distutils
python3-gi-cairo
python3-lib2to3
qdbus
qt-at-spi
qtchooser
qtcore4-l10n
r-base-core
r-cran-boot
r-cran-class
r-cran-cluster
r-cran-codetools
r-cran-foreign
r-cran-kernsmooth
r-cran-lattice
r-cran-mass
r-cran-matrix
r-cran-mgcv
r-cran-nlme
r-cran-nnet
r-cran-rpart
r-cran-spatial
r-cran-survival
r-doc-html
r-recommended
rtkit
samba-libs
sound-theme-freedesktop
tk8.6-blt2.5
ttf-bitstream-vera
ubuntu-mono
udisks2
unzip
upower
usb-modeswitch
usb-modeswitch-data
usbmuxd
wpasupplicant
x11-common
x11-utils
x11-xkb-utils
x11-xserver-utils
x11proto-core-dev
x11proto-damage-dev
x11proto-dev
x11proto-fixes-dev
x11proto-xext-dev
x11proto-xf86vidmode-dev
xbitmaps
xdg-utils
xfonts-encodings
xfonts-utils
xorg-sgml-doctools
xserver-common
xtrans-dev
xul-ext-ubufox
yelp
yelp-xsl
zenity
zenity-common
zip
zlib1g-dev
chammo20@DESKTOP-BB7NQKM:~$ apt-mark showmanual
accountsservice
acl
acpid
adduser
apparmor
apport
apport-symptoms
apt
apt-utils
at
base-files
base-passwd
bash
bash-completion
bc
bcache-tools
bind9-host
bsdmainutils
bsdutils
btrfs-progs
btrfs-tools
build-essential
busybox-initramfs
busybox-static
byobu
bzip2
ca-certificates
cloud-guest-utils
cloud-init
cloud-initramfs-copymods
cloud-initramfs-dyn-netconf
command-not-found
command-not-found-data
console-setup
console-setup-linux
coreutils
cpio
cron
cryptsetup
cryptsetup-bin
curl
dash
dbus
debconf
debconf-i18n
debianutils
diffutils
dirmngr
distro-info-data
dmeventd
dmidecode
dmsetup
dns-root-data
dnsmasq-base
dnsutils
dosfstools
dpkg
e2fsprogs
eatmydata
ebtables
ed
eject
eog
ethtool
evince
fdisk
file
findutils
firefox
fonts-ubuntu-console
friendly-recovery
ftp
fuse
gawk
gcc-8-base
gdisk
gedit
geoip-database
gettext-base
gir1.2-glib-2.0
git
git-man
gnome-icon-theme-symbolic
gnome-terminal
gnome-tweak-tool
gnupg
gnupg-l10n
gnupg-utils
gpg
gpg-agent
gpg-wks-client
gpg-wks-server
gpgconf
gpgsm
gpgv
grep
groff-base
gsl-bin
gzip
hdparm
hostname
htop
info
init
init-system-helpers
initramfs-tools
initramfs-tools-bin
initramfs-tools-core
install-info
iproute2
iptables
iputils-ping
iputils-tracepath
irqbalance
isc-dhcp-client
isc-dhcp-common
iso-codes
kbd
keyboard-configuration
klibc-utils
kmod
krb5-locales
landscape-common
language-selector-common
less
libaccountsservice0
libacl1
libapparmor1
libapt-inst2.0
libapt-pkg5.0
libargon2-0
libasn1-8-heimdal
libassuan0
libatm1
libattr1
libaudit-common
libaudit1
libbind9-160
libblkid1
libbsd0
libbz2-1.0
libc-bin
libc6
libcap-ng0
libcap2
libcap2-bin
libcom-err2
libcryptsetup12
libcurl3-gnutls
libcurl4
libcurl4-openssl-dev
libdb5.3
libdbus-1-3
libdebconfclient0
libdevmapper-event1.02.1
libdevmapper1.02.1
libdns-export1100
libdns1100
libdrm-common
libdrm2
libdumbnet1
libeatmydata1
libedit2
libelf1
liberror-perl
libestr0
libevent-2.1-6
libexpat1
libext2fs2
libfastjson4
libfdisk1
libffi6
libfribidi0
libfuse2
libgcc1
libgcrypt20
libgdbm-compat4
libgdbm5
libgeoip1
libgfortran3
libgirepository-1.0-1
libglib2.0-0
libglib2.0-data
libglu1-mesa-dev
libglw1-mesa
libgmp10
libgnutls30
libgpg-error0
libgpm2
libgssapi-krb5-2
libgssapi3-heimdal
libhcrypto4-heimdal
libheimbase1-heimdal
libheimntlm0-heimdal
libhogweed4
libhx509-5-heimdal
libicu60
libidn11
libidn2-0
libip4tc0
libip6tc0
libiptc0
libirs160
libisc-export169
libisc169
libisccc160
libisccfg160
libisns0
libjpeg62
libjson-c3
libk5crypto3
libkeyutils1
libklibc
libkmod2
libkrb5-26-heimdal
libkrb5-3
libkrb5support0
libksba8
libldap-2.4-2
libldap-common
liblocale-gettext-perl
liblvm2app2.2
liblvm2cmd2.02
liblwres160
liblxc-common
liblxc1
liblz4-1
liblzma5
liblzo2-2
libmagic-mgc
libmagic1
libmnl0
libmount1
libmpdec2
libmpfr6
libmspack0
libncurses5
libncursesw5
libnetfilter-conntrack3
libnettle6
libnewt0.52
libnfnetlink0
libnghttp2-14
libnih1
libnpth0
libnss-systemd
libntfs-3g88
libnuma1
libp11-kit0
libpam-cap
libpam-modules
libpam-modules-bin
libpam-runtime
libpam-systemd
libpam0g
libparted2
libpcap0.8
libpci3
libpcre3
libperl5.26
libpipeline1
libplymouth4
libpng16-16
libpolkit-agent-1-0
libpolkit-backend-1-0
libpolkit-gobject-1-0
libpopt0
libprocps6
libpsl5
libpython3-stdlib
libpython3.6
libpython3.6-minimal
libpython3.6-stdlib
libreadline5
libreadline7
libroken18-heimdal
librtmp1
libsasl2-2
libsasl2-modules
libsasl2-modules-db
libseccomp2
libselinux1
libsemanage-common
libsemanage1
libsepol1
libsigsegv2
libslang2
libsmartcols1
libsqlite3-0
libss2
libssl-dev
libssl1.0.0
libssl1.1
libstdc++6
libsystemd0
libtasn1-6
libtext-charwidth-perl
libtext-iconv-perl
libtext-wrapi18n-perl
libtinfo5
libudev1
libunistring2
libunwind8
libusb-1.0-0
libutempter0
libuuid1
libwind0-heimdal
libwrap0
libx11-6
libx11-data
libxau6
libxcb1
libxdmcp6
libxext6
libxm4
libxml2
libxml2-dev
libxmlsec1
libxmlsec1-openssl
libxmuu1
libxslt1.1
libxtables12
libyaml-0-2
libzstd1
linux-base
locales
login
logrotate
lsb-base
lsb-release
lshw
lsof
ltrace
lvm2
lxcfs
lxd
lxd-client
man-db
manpages
mawk
mdadm
mime-support
mlocate
mount
mtr-tiny
multiarch-support
nano
nautilus
ncurses-base
ncurses-bin
ncurses-term
net-tools
netbase
netcat-openbsd
netpbm
netplan.io
networkd-dispatcher
nplan
ntfs-3g
open-iscsi
open-vm-tools
openssh-client
openssh-server
openssh-sftp-server
openssl
overlayroot
parted
passwd
pastebinit
patch
pciutils
perl
perl-base
perl-modules-5.26
pinentry-curses
plymouth
plymouth-theme-ubuntu-text
policykit-1
pollinate
popularity-contest
powermgmt-base
procps
psmisc
publicsuffix
python-apt-common
python-matplotlib
python-qt4
python3
python3-apport
python3-apt
python3-asn1crypto
python3-attr
python3-automat
python3-blinker
python3-certifi
python3-cffi-backend
python3-chardet
python3-click
python3-colorama
python3-commandnotfound
python3-configobj
python3-constantly
python3-cryptography
python3-dbus
python3-debconf
python3-debian
python3-distro-info
python3-distupgrade
python3-gdbm
python3-gi
python3-httplib2
python3-hyperlink
python3-idna
python3-incremental
python3-jinja2
python3-json-pointer
python3-jsonpatch
python3-jsonschema
python3-jwt
python3-markupsafe
python3-minimal
python3-newt
python3-oauthlib
python3-openssl
python3-pam
python3-pkg-resources
python3-problem-report
python3-pyasn1
python3-pyasn1-modules
python3-requests
python3-requests-unixsocket
python3-serial
python3-service-identity
python3-six
python3-software-properties
python3-systemd
python3-twisted
python3-twisted-bin
python3-update-manager
python3-urllib3
python3-yaml
python3-zope.interface
python3.6
python3.6-minimal
r-base-dev
readline-common
rsync
rsyslog
run-one
screen
sed
sensible-utils
shared-mime-info
snapd
software-properties-common
sosreport
squashfs-tools
ssh-import-id
strace
sudo
systemd
systemd-sysv
sysvinit-utils
tar
tcpdump
tcsh
telnet
time
tmux
tzdata
ubuntu-advantage-tools
ubuntu-keyring
ubuntu-minimal
ubuntu-release-upgrader-core
ubuntu-server
ubuntu-standard
ucf
udev
ufw
uidmap
unattended-upgrades
update-manager-core
update-notifier-common
ureadahead
usbutils
util-linux
uuid-runtime
vim
vim-common
vim-runtime
vim-tiny
wget
whiptail
xauth
xdelta3
xdg-user-dirs
xfonts-100dpi
xfonts-base
xfsprogs
xkb-data
xterm
xvfb
xxd
xz-utils
zerofree
zlib1g

Any other thoughts?
Thank you again

Can you try running this:


sudo apt-get install -f

to see if that will fix your broken installation? What output/final lines does that give?

–pt

It didn’t fix it.
the output is:

chammo20@DESKTOP-BB7NQKM:~$ sudo apt-get install -f
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
libstartup-notification0 libxcb-util1
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 377 not upgraded.

OK, so it doesn’t appear like there is something broken in the apt install, which is good.

Since the initial message said it wouldn’t install some dependencies, can you try installing those explicitly first:


sudo apt install -y r-cran-rstan r-cran-shinystan

and if those go well (note: those unfortunately take a long time to build), then try the:


sudo apt install -y r-cran-brms

again?

–pt

I’m now getting the following error message (shown below)
It states that I can’t install r-cran-stan b/c I don’t have r-cran-v8
In trying to install r-cran-v8 it states that I don’t have libnode64 and it won’t let me install libnode64

See below error message:

chammo20@DESKTOP-BB7NQKM:~$ sudo apt install -y r-cran-rstan r-cran-shinystan
[sudo] password for chammo20:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
r-cran-rstan : Depends: r-cran-v8 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
chammo20@DESKTOP-BB7NQKM:~$ sudo apt install -y r-cran-v8 r-cran-rstan r-cran-shinystan
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
r-cran-v8 : Depends: libnode64 but it is not installable
E: Unable to correct problems, you have held broken packages.
chammo20@DESKTOP-BB7NQKM:~$ sudo apt install -y libnode64 r-cran-v8 r-cran-rstan r-cran-shinystan
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package libnode64 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘libnode64’ has no installation candidate

Crisis…

Just to check your sources list, what is the output of:


grep -H cloud /etc/apt/sources.list

?

–pt

Output:

chammo20@DESKTOP-BB7NQKM:~$ grep -H cloud /etc/apt/sources.list
/etc/apt/sources.list:deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/
/etc/apt/sources.list:deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/

Yeah, that seems fine (only one of those lines is necessary to have in that file, but having 2 shouldn’t be a problem).

Ummm, I pinged our R installation expert (=Justin) about this to see if he has any ideas about this… Sorry, I am not sure why things are so problematic.

One question: did you upgrade your R from a previous existing version, or was this a clean system and you installed R v3.6 from the start?

–pt

I tried to install AFNI sometime last year ran into errors and then decided to delay taking the bootcamp till this year.
So I could have partially installed an older version of R.