I’m using WSL2.
In R, I tried to install packages. For example:
> install.packages("tidyverse")
But I’m getting a Failed to create bus connection
error.
Traceback:
Failed to create bus connection: No such file or directory
Warning in system("timedatectl", intern = TRUE) :
running command 'timedatectl' had status 1
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Failed to create bus connection: No such file or directory
Warning in system("timedatectl", intern = TRUE) :
running command 'timedatectl' had status 1
** testing if installed package can be loaded from final location
Failed to create bus connection: No such file or directory
Warning in system("timedatectl", intern = TRUE) :
running command 'timedatectl' had status 1
** testing if installed package keeps a record of temporary installation path
* DONE (tidyverse)
The downloaded source packages are in
‘/tmp/RtmpD1g9KP/downloaded_packages’
I’ve tried to install the dbus package:
sudo apt-get update
sudo apt-get install dbus
And am still getting the error after reboot.
I also tried:
sudo systemctl status
but it returns:
System has not been booted with systemd as init system (PID 1). Can't operate.