Page 1 of 1

ntp upgrade leads to error

Posted: Friday 06 November 2015 22:19
by djdehaan
Hi,

I downloaded the SD image, put it on the SD, launched my PI, then started update -> OK, but then
i entered sudo apt-get upgrade and the following happens:

The following packages will be upgraded:
ntp
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/525 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: error: parsing file '/var/lib/dpkg/available' near line 0:
EOF after field name `'
E: Sub-process /usr/bin/dpkg returned an error code (2)
pi@raspberrypi ~ $

Anyone an idea how to solve this?

Thanks,
DJ

Re: ntp upgrade leads to error

Posted: Saturday 07 November 2015 8:27
by jannl
Is there enough diskspace on your sd. You may need to expand the root partition

Re: ntp upgrade leads to error

Posted: Saturday 07 November 2015 11:20
by djdehaan
Hi Jannl,

I did do raspi-config / expand filesystem.

pi@raspberrypi ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 1.1G 13G 8% /
devtmpfs 483M 0 483M 0% /dev
tmpfs 98M 216K 98M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 195M 0 195M 0% /run/shm
/dev/mmcblk0p1 56M 20M 37M 36% /boot
pi@raspberrypi ~ $

That means there is enough space, does it (I am not sure)?

Re: ntp upgrade leads to error

Posted: Saturday 07 November 2015 11:57
by djdehaan
I just tried this:
I downloaded the previous image "domoticz-raspberrypi-sdcard-2563.7z"
Wrote it to SD, fired the Pi with it, expanded the filesys, did update and then upgrade.

The upgrade is much longer, includes ntp, but runs fine! It thus seems to be related to the new Image??

>>dump
pi@raspberrypi ~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
bind9-host firmware-realtek libbind9-80 libdns88 libexpat1 libexpat1-dev libisc84 libisccc80 libisccfg82
liblwres80 libmp3lame0 libraspberrypi-bin libraspberrypi0 libsqlite3-0 libssl-dev libssl-doc libssl1.0.0
mosquitto nodejs ntp openssl raspberrypi-bootloader raspi-config rpcbind sudo tzdata unzip
27 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 47.2 MB of archives.
After this operation, 4,805 kB of additional disk space will be used.
Do you want to continue [Y/n]? y

Re: ntp upgrade leads to error

Posted: Thursday 12 November 2015 20:09
by nukie