home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 21236 
 Chris Green to Chris Green 
 Re: dpkg error, what to do about it? 
 25 Jan 25 12:30:42 
 
INTL 3:770/1 3:770/3
REPLYADDR cl@isbd.net
REPLYTO 3:770/3.0 UUCP
MSGID:  aa6753b7
REPLY:  36b143ca
PID: SoupGate-Win32 v1.05
Chris Green  wrote:
> I just installed pigpiod in a Pi 4B and got the following error:-
>
>     root@homepi# apt install pigpiod
>     Reading package lists... Done
>     Building dependency tree... Done
>     Reading state information... Done
>     The following additional packages will be installed:
>       libpigpio1
>     The following NEW packages will be installed:
>       libpigpio1 pigpiod
>     0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
>     Need to get 99.4 kB of archives.
>     After this operation, 331 kB of additional disk space will be used.
>     Do you want to continue? [Y/n] y
>     Get:1 http://archive.raspberrypi.org/debian bookworm/main arm64
>     libpigpio1 arm64 1.79-1+rpt1 [89.2 kB]
>     Get:2 http://archive.raspberrypi.org/debian bookworm/main arm64
>     pigpiod arm64 1.79-1+rpt1 [10.3 kB]
>     Fetched 99.4 kB in 0s (800 kB/s)
>     Selecting previously unselected package libpigpio1.
>     dpkg: unrecoverable fatal error, aborting:
>      files list file for package 'libasyncns0:arm64' is missing final
>     newline
>     E: Sub-process /usr/bin/dpkg returned an error code (2)
>     root@homepi#
>
> That looks a bit worrying.  It feels as if maybe some sort of clear
> out and re-installation might clear things up, but I'm not quite sure
> what.
>
The fix turns out to be fairly simple.  You go and find the file which
has the missing newline (probably due to an interrupted download or
some such) and remove it.  The dpkg files in question are in directory
/var/lib/dpkg/info.  Once removed simply 'apt reinstall' the package
and all is well again.

I found the solution on an ubuntu list.

--
Chris Green
ยท

--- SoupGate-Win32 v1.05
 * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
SEEN-BY: 10/0 1 19/10 103/705 105/81 106/201 124/5016 128/187 129/305
SEEN-BY: 153/757 7715 154/110 218/0 1 601 700 840 220/70 221/1 6 360
SEEN-BY: 226/17 30 100 227/114 229/110 111 114 200 206 275 300 317
SEEN-BY: 229/400 426 428 470 550 616 664 700 705 240/1120 266/512
SEEN-BY: 267/800 291/111 292/854 301/1 113 812 310/31 320/219 322/757
SEEN-BY: 335/364 341/66 342/200 396/45 460/58 633/280 712/848 770/1
SEEN-BY: 770/3 100 330 340 772/210 220 230 902/26 2320/105 5020/400
SEEN-BY: 5020/1042 5075/35
PATH: 770/3 1 218/840 221/6 301/1 218/700 229/426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca