3

I have accidentally removed my dbus file on my Raspberry Pi 3 Raspbian OS ( full Operating system version) (not raspbian lite). I used the command apt-get remove dbus to do this uninstall of dbus.

After the removal nearly finished (Did not completly finish), about 90% done, the Pi froze so I restarted then it only allowed a terminal on launch. How do I fix this? what commands can I use on the termanal?

This is what I tried to do so far to restore the raspbian OS: (sudo bash was to use root in subsequent commands):


sudo bash 

apt-get install --reinstall dbus

apt-get install dbus

apt-get purge dbus

apt-get install dbus

All the above attempts where entirely unsuccessful and one command even caused a reboot loop for about a hour, untell I pulled the plug on it again.

What other options are there available for me to use? What did I miss? I did some research prior to posting this question, and found that i eather have to reflash image or reinstall desktop interface. How do i do this? I dont want to reflash. Is this my only option?

User98764431
  • 569
  • 1
  • 19
  • 33

1 Answers1

4

Removing your dbus would have removed most of your installed packages, so I think you would be running a very bare system. I would re-burn an image, but I guess you could try an install a desktop xserver back on it, most likely have to many errors though.

Install desktop on Raspberry Pi

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install --no-install-recommends xserver-xorg

sudo apt-get install --no-install-recommends xinit

sudo apt-get install raspberrypi-ui-mods

sudo apt-get install --no-install-recommends raspberrypi-ui-mods lxterminal gvfs

sudo apt-get install rc-gui
Dr.Rabbit
  • 1,016
  • 6
  • 10