ntp upgrade leads to error

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
djdehaan
Posts: 46
Joined: Thursday 11 June 2015 23:36
Target OS: Windows
Domoticz version: 2023.2
Location: Utrecht, NL
Contact:

ntp upgrade leads to error

Post 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
jannl
Posts: 673
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: ntp upgrade leads to error

Post by jannl »

Is there enough diskspace on your sd. You may need to expand the root partition
djdehaan
Posts: 46
Joined: Thursday 11 June 2015 23:36
Target OS: Windows
Domoticz version: 2023.2
Location: Utrecht, NL
Contact:

Re: ntp upgrade leads to error

Post 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)?
djdehaan
Posts: 46
Joined: Thursday 11 June 2015 23:36
Target OS: Windows
Domoticz version: 2023.2
Location: Utrecht, NL
Contact:

Re: ntp upgrade leads to error

Post 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
nukie
Posts: 17
Joined: Friday 28 November 2014 18:41
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.5817
Location: Sweden
Contact:

Re: ntp upgrade leads to error

Post by nukie »

RPi 3 Domoticz, Z-stick Gen5, RFXtrx433E, Philips HUE
RPi 3 Domoticz, Z-stick Gen5, RFXtrx433E
Tellstick ZnetV2, Samsung smartthings, Ikea Trådfri
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest