root@orangepizeroplus2:/home/pi# apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: cpp-6 curl g++-6 gcc-6 gcc-6-base libasan3 libatomic1 libcc1-0 libcurl3 libcurl3-gnutls libgcc-6-dev libgcc1 libgomp1 libitm1 libstdc++-6-dev libstdc++6 libtasn1-6 libubsan0 linux-dtb-next-sunxi64 linux-image-next-sunxi64 linux-libc-dev tzdata 22 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 36.5 MB of archives. After this operation, 361 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://security.debian.org stretch/updates/main arm64 libubsan0 arm64 6.3.0-18+deb9u1 [95.0 kB] Get:2 http://apt.armbian.com stretch/main arm64 linux-dtb-next-sunxi64 arm64 5.41 [29.2 kB] Get:3 http://security.debian.org stretch/updates/main arm64 gcc-6-base arm64 6.3.0-18+deb9u1 [180 kB] Get:4 http://apt.armbian.com stretch/main arm64 linux-image-next-sunxi64 arm64 5.41 [15.0 MB] Get:5 http://security.debian.org stretch/updates/main arm64 libstdc++6 arm64 6.3.0-18+deb9u1 [362 kB] Get:6 http://security.debian.org stretch/updates/main arm64 libgomp1 arm64 6.3.0-18+deb9u1 [59.7 kB] Get:7 http://security.debian.org stretch/updates/main arm64 libitm1 arm64 6.3.0-18+deb9u1 [24.2 kB] Get:8 http://security.debian.org stretch/updates/main arm64 libatomic1 arm64 6.3.0-18+deb9u1 [6,414 B] Get:9 http://security.debian.org stretch/updates/main arm64 libasan3 arm64 6.3.0-18+deb9u1 [268 kB] Get:10 http://cdn-fastly.deb.debian.org/debian stretch-updates/main arm64 tzdata all 2018c-0+deb9u1 [264 kB] Get:11 http://security.debian.org stretch/updates/main arm64 cpp-6 arm64 6.3.0-18+deb9u1 [5,092 kB] Get:12 http://security.debian.org stretch/updates/main arm64 libcc1-0 arm64 6.3.0-18+deb9u1 [27.0 kB] Get:13 http://security.debian.org stretch/updates/main arm64 g++-6 arm64 6.3.0-18+deb9u1 [5,551 kB] Get:14 http://security.debian.org stretch/updates/main arm64 gcc-6 arm64 6.3.0-18+deb9u1 [5,433 kB] Get:15 http://security.debian.org stretch/updates/main arm64 libgcc-6-dev arm64 6.3.0-18+deb9u1 [545 kB] Get:16 http://security.debian.org stretch/updates/main arm64 libstdc++-6-dev arm64 6.3.0-18+deb9u1 [1,397 kB] Get:17 http://security.debian.org stretch/updates/main arm64 libgcc1 arm64 1:6.3.0-18+deb9u1 [30.0 kB] Get:18 http://security.debian.org stretch/updates/main arm64 libtasn1-6 arm64 4.10-1.1+deb9u1 [45.7 kB] Get:19 http://security.debian.org stretch/updates/main arm64 curl arm64 7.52.1-5+deb9u4 [222 kB] Get:20 http://security.debian.org stretch/updates/main arm64 libcurl3 arm64 7.52.1-5+deb9u4 [254 kB] Get:21 http://security.debian.org stretch/updates/main arm64 libcurl3-gnutls arm64 7.52.1-5+deb9u4 [253 kB] Get:22 http://security.debian.org stretch/updates/main arm64 linux-libc-dev arm64 4.9.82-1+deb9u3 [1,292 kB] Fetched 36.5 MB in 30s (1,186 kB/s) Preconfiguring packages ... (Reading database ... 32525 files and directories currently installed.) Preparing to unpack .../libubsan0_6.3.0-18+deb9u1_arm64.deb ... Unpacking libubsan0:arm64 (6.3.0-18+deb9u1) over (6.3.0-18) ... Preparing to unpack .../gcc-6-base_6.3.0-18+deb9u1_arm64.deb ... Unpacking gcc-6-base:arm64 (6.3.0-18+deb9u1) over (6.3.0-18) ... Setting up gcc-6-base:arm64 (6.3.0-18+deb9u1) ... (Reading database ... 32525 files and directories currently installed.) Preparing to unpack .../libstdc++6_6.3.0-18+deb9u1_arm64.deb ... Unpacking libstdc++6:arm64 (6.3.0-18+deb9u1) over (6.3.0-18) ... Setting up libstdc++6:arm64 (6.3.0-18+deb9u1) ... (Reading database ... 32525 files and directories currently installed.) Preparing to unpack .../00-libgomp1_6.3.0-18+deb9u1_arm64.deb ... Unpacking libgomp1:arm64 (6.3.0-18+deb9u1) over (6.3.0-18) ... Preparing to unpack .../01-libitm1_6.3.0-18+deb9u1_arm64.deb ... Unpacking libitm1:arm64 (6.3.0-18+deb9u1) over (6.3.0-18) ... Preparing to unpack .../02-libatomic1_6.3.0-18+deb9u1_arm64.deb ... Unpacking libatomic1:arm64 (6.3.0-18+deb9u1) over (6.3.0-18) ... Preparing to unpack .../03-libasan3_6.3.0-18+deb9u1_arm64.deb ... Unpacking libasan3:arm64 (6.3.0-18+deb9u1) over (6.3.0-18) ... Preparing to unpack .../04-cpp-6_6.3.0-18+deb9u1_arm64.deb ... Unpacking cpp-6 (6.3.0-18+deb9u1) over (6.3.0-18) ... dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt dpkg-deb: error: subprocess returned error exit status 2 dpkg: error processing archive /tmp/apt-dpkg-install-Jg2rrV/04-cpp-6_6.3.0-18+deb9u1_arm64.deb (--unpack): cannot copy extracted data for './usr/bin/aarch64-linux-gnu-cpp-6' to '/usr/bin/aarch64-linux-gnu-cpp-6.dpkg-new': unexpected end of file or stream Preparing to unpack .../05-libcc1-0_6.3.0-18+deb9u1_arm64.deb ... Unpacking libcc1-0:arm64 (6.3.0-18+deb9u1) over (6.3.0-18) ... Preparing to unpack .../06-g++-6_6.3.0-18+deb9u1_arm64.deb ... Unpacking g++-6 (6.3.0-18+deb9u1) over (6.3.0-18) ... dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt dpkg-deb: error: subprocess returned error exit status 2 dpkg: error processing archive /tmp/apt-dpkg-install-Jg2rrV/06-g++-6_6.3.0-18+deb9u1_arm64.deb (--unpack): cannot copy extracted data for './usr/lib/gcc/aarch64-linux-gnu/6/cc1plus' to '/usr/lib/gcc/aarch64-linux-gnu/6/cc1plus.dpkg-new': unexpected end of file or stream Preparing to unpack .../07-gcc-6_6.3.0-18+deb9u1_arm64.deb ... Unpacking gcc-6 (6.3.0-18+deb9u1) over (6.3.0-18) ... dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt dpkg-deb: error: subprocess returned error exit status 2 dpkg: error processing archive /tmp/apt-dpkg-install-Jg2rrV/07-gcc-6_6.3.0-18+deb9u1_arm64.deb (--unpack): cannot copy extracted data for './usr/bin/aarch64-linux-gnu-gcc-6' to '/usr/bin/aarch64-linux-gnu-gcc-6.dpkg-new': unexpected end of file or stream Preparing to unpack .../08-libgcc-6-dev_6.3.0-18+deb9u1_arm64.deb ... Unpacking libgcc-6-dev:arm64 (6.3.0-18+deb9u1) over (6.3.0-18) ... dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt dpkg-deb: error: subprocess returned error exit status 2 dpkg: error processing archive /tmp/apt-dpkg-install-Jg2rrV/08-libgcc-6-dev_6.3.0-18+deb9u1_arm64.deb (--unpack): cannot copy extracted data for './usr/lib/gcc/aarch64-linux-gnu/6/include/arm_neon.h' to '/usr/lib/gcc/aarch64-linux-gnu/6/include/arm_neon.h.dpkg-new': unexpected end of file or stream Preparing to unpack .../09-libstdc++-6-dev_6.3.0-18+deb9u1_arm64.deb ... Unpacking libstdc++-6-dev:arm64 (6.3.0-18+deb9u1) over (6.3.0-18) ... dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt dpkg-deb: error: subprocess returned error exit status 2 dpkg: error processing archive /tmp/apt-dpkg-install-Jg2rrV/09-libstdc++-6-dev_6.3.0-18+deb9u1_arm64.deb (--unpack): cannot copy extracted data for './usr/lib/gcc/aarch64-linux-gnu/6/libstdc++fs.a' to '/usr/lib/gcc/aarch64-linux-gnu/6/libstdc++fs.a.dpkg-new': unexpected end of file or stream Preparing to unpack .../10-libgcc1_1%3a6.3.0-18+deb9u1_arm64.deb ... Unpacking libgcc1:arm64 (1:6.3.0-18+deb9u1) over (1:6.3.0-18) ... Errors were encountered while processing: /tmp/apt-dpkg-install-Jg2rrV/04-cpp-6_6.3.0-18+deb9u1_arm64.deb /tmp/apt-dpkg-install-Jg2rrV/06-g++-6_6.3.0-18+deb9u1_arm64.deb /tmp/apt-dpkg-install-Jg2rrV/07-gcc-6_6.3.0-18+deb9u1_arm64.deb /tmp/apt-dpkg-install-Jg2rrV/08-libgcc-6-dev_6.3.0-18+deb9u1_arm64.deb /tmp/apt-dpkg-install-Jg2rrV/09-libstdc++-6-dev_6.3.0-18+deb9u1_arm64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)