dpkg interrupted error when using apt-get install.

Hi,

I’m trying to install v4l-utils on my BBB running Debian (Nov 12 22015 update; the Distro is running on a 32GB ADATA Class 10 SDCard) but i keep getting the "dpkg was interrupted, you must run manually ‘dpkg --configure -a’ to correct the problem ", and each time i run that command, it runs forever. I have also tried to run some commands with apt-get install but still getting the same error. Sometimes it locks the admin such that i wont be able to update the BBB.

I am using ssh to access the BBB and also sharing Internet via the same USB cable (If the info is relevant).

I need your help in solving this problem.

Thanks

I formatted the SDCard and created another bootable SDCard. Sshed into it and updated the distro but the problem came when using apt-get upgrade, it upgrades some dependencies but then reaches a point it keeps on executing on and on. It has been doing that for 4hrs now. Below are the statements that are repeatedly displayin in the terminal;

ACTION Regenerating Makefile
make: Leaving directory ‘/root/.c9/node_modules/pty.js/buld’
make: Entering directory ‘/root/.9/node_module/pty.jsbuild’
make: Warning: File ‘…/…/…/…/.node-gyp/0.10.42/common.gypt’ has modification time 7.6+06 s in the future

Can someone iut there assist me?

Sync up your clock..

c9-core-installer (aka cloud9 on port 3000) relies on nodejs/npm to
install a few dependicys...

Last week we also transitioned from, nodejs 0.10.x -> 0.12.x and npm
1.2.x -> 3.7.1

So make sure you clock is synced:

systemd-timesync

then

sudo apt-get update
sudo apt-get upgrade

Regards,

Thank you. Just tried the systemd-timesync command but its saying

-bash: systemd-timesync: command not found

I’m sorry im a newbie, how do i type the command?

I have also tried the ntpdate -b -s -u pool.ntp.org command, not sure if it works the same way with your command.

Thank you. Just tried the systemd-timesync command but its saying

-bash: systemd-timesync: command not found

I'm sorry im a newbie, how do i type the command?

opps, missed the extra d:

https://www.freedesktop.org/software/systemd/man/systemd-timesyncd.service.html

I have also tried the ntpdate -b -s -u pool.ntp.org command, not sure if
it works the same way with your command.

sudo ntpdate pool.ntp.org should also work (we switched from ntpdate
-> systemd-timesyncd)

Regards,

Hi Robert,

Still getting the same error (command not found).

Looked for the file in /usr/lib/systemd/systemd-timesyncd, a file path in that link you included but the file does not exist.

Are there some packages i have to install first to run the command?

sudo systemctl start systemd-timesyncd

then:
sudo journalctl -f

to see it syncing..

Regards,

Aftrler running that command to initialise syncin, i got : Failed to issue method call: Unit name systemd-timesyncd is not valid

I have removed the c9-core-installer. Tried reinstalling it but still getting to that looping point even after time sync (using ntpdate command).

What can be the problems associated working without cloud 9? Does it mean i wont be able to use node.js too?
I dont intend to work with the cloud IDE though

Try

ntpdate-debian

then

sudo update
sudo upgrade

Regards,
John

I have removed the c9-core-installer. Tried reinstalling it but still
getting to that looping point even after time sync (using ntpdate command).

Odd, it's working for me:

https://gist.github.com/RobertCNelson/9af8de2221a1c380504a

What can be the problems associated working without cloud 9? Does it mean i
wont be able to use node.js too?
I dont intend to work with the cloud IDE though

Cloud9 ide depends on node.js... So removing c9-core-installer will
not affect node.js..

Regards,

Finally, it has worked. I reinstalled c9-core-installer after running these commands first; npm i chjj/pty.js --save and npm install -g node-gyp

Thank you.