4

I'm connecting to internet with my pc using Ethernet cable, I just have one internet cable input and one RJ45 cable, so I cant share internet with my Raspberry.

is there any solution to install Rapsbian packages from Ubuntu by just accessing Raspbian SD card on Ubuntu and using chroot command, and run apt-get as though I'm on raspberry??

Ghanima
  • 15,958
  • 17
  • 65
  • 125

1 Answers1

14

First, install two packages on your Ubuntu system: qemu-user, and proot.

After you mount the Raspbian SD card, you can do the equivalent of a 'chroot' with:

sudo proot -q qemu-arm -S /mnt/path/to/raspbian/

From there, you can use apt-get commands as though you are actually on the Raspberry Pi. (Use the exit command to exit.)

nerd65536
  • 256
  • 2
  • 3