dpkg-preconfigure throws syntax and not found error when installing any package












0















I have a Debian Stretch 9.3 image with a modified rootfs (not by me) with less packages than usual to prevent an increased footprint, i.e., graphical environment.



I am trying to figure out what is preventing new packages from installing.



Here is a sample output:



root@var-som-mx7:~# apt-get install curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ca-certificates libcurl3 libidn2-0 libnghttp2-14 libpsl5 librtmp1
libunistring0 openssl publicsuffix
The following NEW packages will be installed:
ca-certificates curl libcurl3 libidn2-0 libnghttp2-14 libpsl5 librtmp1
libunistring0 openssl publicsuffix
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,956 kB of archives.
After this operation, 4,052 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.ch.debian.org/debian stretch/main armhf openssl armhf 1.1.0f-3+deb9u2 [703 kB]
Get:2 http://ftp.ch.debian.org/debian stretch/main armhf ca-certificates all 20161130+nmu1+deb9u1 [182 kB]
Get:3 http://ftp.ch.debian.org/debian stretch/main armhf libunistring0 armhf 0.9.6+really0.9.3-0.1 [255 kB]
Get:4 http://ftp.ch.debian.org/debian stretch/main armhf libidn2-0 armhf 0.16-1+deb9u1 [58.8 kB]
Get:5 http://ftp.ch.debian.org/debian stretch/main armhf libnghttp2-14 armhf 1.18.1-1 [69.1 kB]
Get:6 http://ftp.ch.debian.org/debian stretch/main armhf libpsl5 armhf 0.17.0-3 [40.7 kB]
Get:7 http://ftp.ch.debian.org/debian stretch/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-1+b1 [55.1 kB]
Get:8 http://ftp.ch.debian.org/debian stretch/main armhf libcurl3 armhf 7.52.1-5+deb9u8 [264 kB]
Get:9 http://ftp.ch.debian.org/debian stretch/main armhf curl armhf 7.52.1-5+deb9u8 [223 kB]
Get:10 http://ftp.ch.debian.org/debian stretch/main armhf publicsuffix all 20181003.1334-0+deb9u1 [104 kB]
Fetched 1,956 kB in 1min 2s (31.2 kB/s)
/usr/sbin/dpkg-preconfigure: 6: /usr/sbin/dpkg-preconfigure: BEGIN: not found
/usr/sbin/dpkg-preconfigure: 1: eval: qq{: not found
/usr/sbin/dpkg-preconfigure: 8: /usr/sbin/dpkg-preconfigure: use: not found
/usr/sbin/dpkg-preconfigure: 9: /usr/sbin/dpkg-preconfigure: use: not found
/usr/sbin/dpkg-preconfigure: 10: /usr/sbin/dpkg-preconfigure: Syntax error: "(" unexpected
Selecting previously unselected package openssl.
(Reading database ... 18795 files and directories currently installed.)
Preparing to unpack .../0-openssl_1.1.0f-3+deb9u2_armhf.deb ...
Unpacking openssl (1.1.0f-3+deb9u2) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../1-ca-certificates_20161130+nmu1+deb9u1_all.deb ...
Unpacking ca-certificates (20161130+nmu1+deb9u1) ...
Selecting previously unselected package libunistring0:armhf.
Preparing to unpack .../2-libunistring0_0.9.6+really0.9.3-0.1_armhf.deb ...
Unpacking libunistring0:armhf (0.9.6+really0.9.3-0.1) ...
Selecting previously unselected package libidn2-0:armhf.
Preparing to unpack .../3-libidn2-0_0.16-1+deb9u1_armhf.deb ...
Unpacking libidn2-0:armhf (0.16-1+deb9u1) ...
Selecting previously unselected package libnghttp2-14:armhf.
Preparing to unpack .../4-libnghttp2-14_1.18.1-1_armhf.deb ...
Unpacking libnghttp2-14:armhf (1.18.1-1) ...
Selecting previously unselected package libpsl5:armhf.
Preparing to unpack .../5-libpsl5_0.17.0-3_armhf.deb ...
Unpacking libpsl5:armhf (0.17.0-3) ...
Selecting previously unselected package librtmp1:armhf.
Preparing to unpack .../6-librtmp1_2.4+20151223.gitfa8646d.1-1+b1_armhf.deb ...
Unpacking librtmp1:armhf (2.4+20151223.gitfa8646d.1-1+b1) ...
Selecting previously unselected package libcurl3:armhf.
Preparing to unpack .../7-libcurl3_7.52.1-5+deb9u8_armhf.deb ...
Unpacking libcurl3:armhf (7.52.1-5+deb9u8) ...
Selecting previously unselected package curl.
Preparing to unpack .../8-curl_7.52.1-5+deb9u8_armhf.deb ...
Unpacking curl (7.52.1-5+deb9u8) ...
Selecting previously unselected package publicsuffix.
Preparing to unpack .../9-publicsuffix_20181003.1334-0+deb9u1_all.deb ...
Unpacking publicsuffix (20181003.1334-0+deb9u1) ...
Setting up libnghttp2-14:armhf (1.18.1-1) ...
Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-1+b1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up publicsuffix (20181003.1334-0+deb9u1) ...
Setting up libunistring0:armhf (0.9.6+really0.9.3-0.1) ...
Setting up openssl (1.1.0f-3+deb9u2) ...
Setting up ca-certificates (20161130+nmu1+deb9u1) ...
/usr/share/debconf/frontend: 5: /usr/share/debconf/frontend: use: not found
/usr/share/debconf/frontend: 6: /usr/share/debconf/frontend: use: not found
/usr/share/debconf/frontend: 7: /usr/share/debconf/frontend: use: not found
/usr/share/debconf/frontend: 8: /usr/share/debconf/frontend: Syntax error: "(" unexpected
dpkg: error processing package ca-certificates (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libidn2-0:armhf (0.16-1+deb9u1) ...
Setting up libpsl5:armhf (0.17.0-3) ...
Setting up libcurl3:armhf (7.52.1-5+deb9u8) ...
Setting up curl (7.52.1-5+deb9u8) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Errors were encountered while processing:
ca-certificates
E: Sub-process /usr/bin/dpkg returned an error code (1)



Errors like BEGIN: not found and Syntax error: "(" unexpected appear no matter what package I try to install.



I have tried comparing the outputs of systemd-analyze blame and systemd-analyze critical-chain with the working image but I did not find anything strange so far.









share









New contributor




Ricardo Cavalheiro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I have a Debian Stretch 9.3 image with a modified rootfs (not by me) with less packages than usual to prevent an increased footprint, i.e., graphical environment.



    I am trying to figure out what is preventing new packages from installing.



    Here is a sample output:



    root@var-som-mx7:~# apt-get install curl
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following additional packages will be installed:
    ca-certificates libcurl3 libidn2-0 libnghttp2-14 libpsl5 librtmp1
    libunistring0 openssl publicsuffix
    The following NEW packages will be installed:
    ca-certificates curl libcurl3 libidn2-0 libnghttp2-14 libpsl5 librtmp1
    libunistring0 openssl publicsuffix
    0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
    Need to get 1,956 kB of archives.
    After this operation, 4,052 kB of additional disk space will be used.
    Do you want to continue? [Y/n]
    Get:1 http://ftp.ch.debian.org/debian stretch/main armhf openssl armhf 1.1.0f-3+deb9u2 [703 kB]
    Get:2 http://ftp.ch.debian.org/debian stretch/main armhf ca-certificates all 20161130+nmu1+deb9u1 [182 kB]
    Get:3 http://ftp.ch.debian.org/debian stretch/main armhf libunistring0 armhf 0.9.6+really0.9.3-0.1 [255 kB]
    Get:4 http://ftp.ch.debian.org/debian stretch/main armhf libidn2-0 armhf 0.16-1+deb9u1 [58.8 kB]
    Get:5 http://ftp.ch.debian.org/debian stretch/main armhf libnghttp2-14 armhf 1.18.1-1 [69.1 kB]
    Get:6 http://ftp.ch.debian.org/debian stretch/main armhf libpsl5 armhf 0.17.0-3 [40.7 kB]
    Get:7 http://ftp.ch.debian.org/debian stretch/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-1+b1 [55.1 kB]
    Get:8 http://ftp.ch.debian.org/debian stretch/main armhf libcurl3 armhf 7.52.1-5+deb9u8 [264 kB]
    Get:9 http://ftp.ch.debian.org/debian stretch/main armhf curl armhf 7.52.1-5+deb9u8 [223 kB]
    Get:10 http://ftp.ch.debian.org/debian stretch/main armhf publicsuffix all 20181003.1334-0+deb9u1 [104 kB]
    Fetched 1,956 kB in 1min 2s (31.2 kB/s)
    /usr/sbin/dpkg-preconfigure: 6: /usr/sbin/dpkg-preconfigure: BEGIN: not found
    /usr/sbin/dpkg-preconfigure: 1: eval: qq{: not found
    /usr/sbin/dpkg-preconfigure: 8: /usr/sbin/dpkg-preconfigure: use: not found
    /usr/sbin/dpkg-preconfigure: 9: /usr/sbin/dpkg-preconfigure: use: not found
    /usr/sbin/dpkg-preconfigure: 10: /usr/sbin/dpkg-preconfigure: Syntax error: "(" unexpected
    Selecting previously unselected package openssl.
    (Reading database ... 18795 files and directories currently installed.)
    Preparing to unpack .../0-openssl_1.1.0f-3+deb9u2_armhf.deb ...
    Unpacking openssl (1.1.0f-3+deb9u2) ...
    Selecting previously unselected package ca-certificates.
    Preparing to unpack .../1-ca-certificates_20161130+nmu1+deb9u1_all.deb ...
    Unpacking ca-certificates (20161130+nmu1+deb9u1) ...
    Selecting previously unselected package libunistring0:armhf.
    Preparing to unpack .../2-libunistring0_0.9.6+really0.9.3-0.1_armhf.deb ...
    Unpacking libunistring0:armhf (0.9.6+really0.9.3-0.1) ...
    Selecting previously unselected package libidn2-0:armhf.
    Preparing to unpack .../3-libidn2-0_0.16-1+deb9u1_armhf.deb ...
    Unpacking libidn2-0:armhf (0.16-1+deb9u1) ...
    Selecting previously unselected package libnghttp2-14:armhf.
    Preparing to unpack .../4-libnghttp2-14_1.18.1-1_armhf.deb ...
    Unpacking libnghttp2-14:armhf (1.18.1-1) ...
    Selecting previously unselected package libpsl5:armhf.
    Preparing to unpack .../5-libpsl5_0.17.0-3_armhf.deb ...
    Unpacking libpsl5:armhf (0.17.0-3) ...
    Selecting previously unselected package librtmp1:armhf.
    Preparing to unpack .../6-librtmp1_2.4+20151223.gitfa8646d.1-1+b1_armhf.deb ...
    Unpacking librtmp1:armhf (2.4+20151223.gitfa8646d.1-1+b1) ...
    Selecting previously unselected package libcurl3:armhf.
    Preparing to unpack .../7-libcurl3_7.52.1-5+deb9u8_armhf.deb ...
    Unpacking libcurl3:armhf (7.52.1-5+deb9u8) ...
    Selecting previously unselected package curl.
    Preparing to unpack .../8-curl_7.52.1-5+deb9u8_armhf.deb ...
    Unpacking curl (7.52.1-5+deb9u8) ...
    Selecting previously unselected package publicsuffix.
    Preparing to unpack .../9-publicsuffix_20181003.1334-0+deb9u1_all.deb ...
    Unpacking publicsuffix (20181003.1334-0+deb9u1) ...
    Setting up libnghttp2-14:armhf (1.18.1-1) ...
    Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-1+b1) ...
    Processing triggers for libc-bin (2.24-11+deb9u3) ...
    Setting up publicsuffix (20181003.1334-0+deb9u1) ...
    Setting up libunistring0:armhf (0.9.6+really0.9.3-0.1) ...
    Setting up openssl (1.1.0f-3+deb9u2) ...
    Setting up ca-certificates (20161130+nmu1+deb9u1) ...
    /usr/share/debconf/frontend: 5: /usr/share/debconf/frontend: use: not found
    /usr/share/debconf/frontend: 6: /usr/share/debconf/frontend: use: not found
    /usr/share/debconf/frontend: 7: /usr/share/debconf/frontend: use: not found
    /usr/share/debconf/frontend: 8: /usr/share/debconf/frontend: Syntax error: "(" unexpected
    dpkg: error processing package ca-certificates (--configure):
    subprocess installed post-installation script returned error exit status 2
    Setting up libidn2-0:armhf (0.16-1+deb9u1) ...
    Setting up libpsl5:armhf (0.17.0-3) ...
    Setting up libcurl3:armhf (7.52.1-5+deb9u8) ...
    Setting up curl (7.52.1-5+deb9u8) ...
    Processing triggers for libc-bin (2.24-11+deb9u3) ...
    Errors were encountered while processing:
    ca-certificates
    E: Sub-process /usr/bin/dpkg returned an error code (1)



    Errors like BEGIN: not found and Syntax error: "(" unexpected appear no matter what package I try to install.



    I have tried comparing the outputs of systemd-analyze blame and systemd-analyze critical-chain with the working image but I did not find anything strange so far.









    share









    New contributor




    Ricardo Cavalheiro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I have a Debian Stretch 9.3 image with a modified rootfs (not by me) with less packages than usual to prevent an increased footprint, i.e., graphical environment.



      I am trying to figure out what is preventing new packages from installing.



      Here is a sample output:



      root@var-som-mx7:~# apt-get install curl
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following additional packages will be installed:
      ca-certificates libcurl3 libidn2-0 libnghttp2-14 libpsl5 librtmp1
      libunistring0 openssl publicsuffix
      The following NEW packages will be installed:
      ca-certificates curl libcurl3 libidn2-0 libnghttp2-14 libpsl5 librtmp1
      libunistring0 openssl publicsuffix
      0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
      Need to get 1,956 kB of archives.
      After this operation, 4,052 kB of additional disk space will be used.
      Do you want to continue? [Y/n]
      Get:1 http://ftp.ch.debian.org/debian stretch/main armhf openssl armhf 1.1.0f-3+deb9u2 [703 kB]
      Get:2 http://ftp.ch.debian.org/debian stretch/main armhf ca-certificates all 20161130+nmu1+deb9u1 [182 kB]
      Get:3 http://ftp.ch.debian.org/debian stretch/main armhf libunistring0 armhf 0.9.6+really0.9.3-0.1 [255 kB]
      Get:4 http://ftp.ch.debian.org/debian stretch/main armhf libidn2-0 armhf 0.16-1+deb9u1 [58.8 kB]
      Get:5 http://ftp.ch.debian.org/debian stretch/main armhf libnghttp2-14 armhf 1.18.1-1 [69.1 kB]
      Get:6 http://ftp.ch.debian.org/debian stretch/main armhf libpsl5 armhf 0.17.0-3 [40.7 kB]
      Get:7 http://ftp.ch.debian.org/debian stretch/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-1+b1 [55.1 kB]
      Get:8 http://ftp.ch.debian.org/debian stretch/main armhf libcurl3 armhf 7.52.1-5+deb9u8 [264 kB]
      Get:9 http://ftp.ch.debian.org/debian stretch/main armhf curl armhf 7.52.1-5+deb9u8 [223 kB]
      Get:10 http://ftp.ch.debian.org/debian stretch/main armhf publicsuffix all 20181003.1334-0+deb9u1 [104 kB]
      Fetched 1,956 kB in 1min 2s (31.2 kB/s)
      /usr/sbin/dpkg-preconfigure: 6: /usr/sbin/dpkg-preconfigure: BEGIN: not found
      /usr/sbin/dpkg-preconfigure: 1: eval: qq{: not found
      /usr/sbin/dpkg-preconfigure: 8: /usr/sbin/dpkg-preconfigure: use: not found
      /usr/sbin/dpkg-preconfigure: 9: /usr/sbin/dpkg-preconfigure: use: not found
      /usr/sbin/dpkg-preconfigure: 10: /usr/sbin/dpkg-preconfigure: Syntax error: "(" unexpected
      Selecting previously unselected package openssl.
      (Reading database ... 18795 files and directories currently installed.)
      Preparing to unpack .../0-openssl_1.1.0f-3+deb9u2_armhf.deb ...
      Unpacking openssl (1.1.0f-3+deb9u2) ...
      Selecting previously unselected package ca-certificates.
      Preparing to unpack .../1-ca-certificates_20161130+nmu1+deb9u1_all.deb ...
      Unpacking ca-certificates (20161130+nmu1+deb9u1) ...
      Selecting previously unselected package libunistring0:armhf.
      Preparing to unpack .../2-libunistring0_0.9.6+really0.9.3-0.1_armhf.deb ...
      Unpacking libunistring0:armhf (0.9.6+really0.9.3-0.1) ...
      Selecting previously unselected package libidn2-0:armhf.
      Preparing to unpack .../3-libidn2-0_0.16-1+deb9u1_armhf.deb ...
      Unpacking libidn2-0:armhf (0.16-1+deb9u1) ...
      Selecting previously unselected package libnghttp2-14:armhf.
      Preparing to unpack .../4-libnghttp2-14_1.18.1-1_armhf.deb ...
      Unpacking libnghttp2-14:armhf (1.18.1-1) ...
      Selecting previously unselected package libpsl5:armhf.
      Preparing to unpack .../5-libpsl5_0.17.0-3_armhf.deb ...
      Unpacking libpsl5:armhf (0.17.0-3) ...
      Selecting previously unselected package librtmp1:armhf.
      Preparing to unpack .../6-librtmp1_2.4+20151223.gitfa8646d.1-1+b1_armhf.deb ...
      Unpacking librtmp1:armhf (2.4+20151223.gitfa8646d.1-1+b1) ...
      Selecting previously unselected package libcurl3:armhf.
      Preparing to unpack .../7-libcurl3_7.52.1-5+deb9u8_armhf.deb ...
      Unpacking libcurl3:armhf (7.52.1-5+deb9u8) ...
      Selecting previously unselected package curl.
      Preparing to unpack .../8-curl_7.52.1-5+deb9u8_armhf.deb ...
      Unpacking curl (7.52.1-5+deb9u8) ...
      Selecting previously unselected package publicsuffix.
      Preparing to unpack .../9-publicsuffix_20181003.1334-0+deb9u1_all.deb ...
      Unpacking publicsuffix (20181003.1334-0+deb9u1) ...
      Setting up libnghttp2-14:armhf (1.18.1-1) ...
      Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-1+b1) ...
      Processing triggers for libc-bin (2.24-11+deb9u3) ...
      Setting up publicsuffix (20181003.1334-0+deb9u1) ...
      Setting up libunistring0:armhf (0.9.6+really0.9.3-0.1) ...
      Setting up openssl (1.1.0f-3+deb9u2) ...
      Setting up ca-certificates (20161130+nmu1+deb9u1) ...
      /usr/share/debconf/frontend: 5: /usr/share/debconf/frontend: use: not found
      /usr/share/debconf/frontend: 6: /usr/share/debconf/frontend: use: not found
      /usr/share/debconf/frontend: 7: /usr/share/debconf/frontend: use: not found
      /usr/share/debconf/frontend: 8: /usr/share/debconf/frontend: Syntax error: "(" unexpected
      dpkg: error processing package ca-certificates (--configure):
      subprocess installed post-installation script returned error exit status 2
      Setting up libidn2-0:armhf (0.16-1+deb9u1) ...
      Setting up libpsl5:armhf (0.17.0-3) ...
      Setting up libcurl3:armhf (7.52.1-5+deb9u8) ...
      Setting up curl (7.52.1-5+deb9u8) ...
      Processing triggers for libc-bin (2.24-11+deb9u3) ...
      Errors were encountered while processing:
      ca-certificates
      E: Sub-process /usr/bin/dpkg returned an error code (1)



      Errors like BEGIN: not found and Syntax error: "(" unexpected appear no matter what package I try to install.



      I have tried comparing the outputs of systemd-analyze blame and systemd-analyze critical-chain with the working image but I did not find anything strange so far.









      share









      New contributor




      Ricardo Cavalheiro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I have a Debian Stretch 9.3 image with a modified rootfs (not by me) with less packages than usual to prevent an increased footprint, i.e., graphical environment.



      I am trying to figure out what is preventing new packages from installing.



      Here is a sample output:



      root@var-som-mx7:~# apt-get install curl
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following additional packages will be installed:
      ca-certificates libcurl3 libidn2-0 libnghttp2-14 libpsl5 librtmp1
      libunistring0 openssl publicsuffix
      The following NEW packages will be installed:
      ca-certificates curl libcurl3 libidn2-0 libnghttp2-14 libpsl5 librtmp1
      libunistring0 openssl publicsuffix
      0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
      Need to get 1,956 kB of archives.
      After this operation, 4,052 kB of additional disk space will be used.
      Do you want to continue? [Y/n]
      Get:1 http://ftp.ch.debian.org/debian stretch/main armhf openssl armhf 1.1.0f-3+deb9u2 [703 kB]
      Get:2 http://ftp.ch.debian.org/debian stretch/main armhf ca-certificates all 20161130+nmu1+deb9u1 [182 kB]
      Get:3 http://ftp.ch.debian.org/debian stretch/main armhf libunistring0 armhf 0.9.6+really0.9.3-0.1 [255 kB]
      Get:4 http://ftp.ch.debian.org/debian stretch/main armhf libidn2-0 armhf 0.16-1+deb9u1 [58.8 kB]
      Get:5 http://ftp.ch.debian.org/debian stretch/main armhf libnghttp2-14 armhf 1.18.1-1 [69.1 kB]
      Get:6 http://ftp.ch.debian.org/debian stretch/main armhf libpsl5 armhf 0.17.0-3 [40.7 kB]
      Get:7 http://ftp.ch.debian.org/debian stretch/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-1+b1 [55.1 kB]
      Get:8 http://ftp.ch.debian.org/debian stretch/main armhf libcurl3 armhf 7.52.1-5+deb9u8 [264 kB]
      Get:9 http://ftp.ch.debian.org/debian stretch/main armhf curl armhf 7.52.1-5+deb9u8 [223 kB]
      Get:10 http://ftp.ch.debian.org/debian stretch/main armhf publicsuffix all 20181003.1334-0+deb9u1 [104 kB]
      Fetched 1,956 kB in 1min 2s (31.2 kB/s)
      /usr/sbin/dpkg-preconfigure: 6: /usr/sbin/dpkg-preconfigure: BEGIN: not found
      /usr/sbin/dpkg-preconfigure: 1: eval: qq{: not found
      /usr/sbin/dpkg-preconfigure: 8: /usr/sbin/dpkg-preconfigure: use: not found
      /usr/sbin/dpkg-preconfigure: 9: /usr/sbin/dpkg-preconfigure: use: not found
      /usr/sbin/dpkg-preconfigure: 10: /usr/sbin/dpkg-preconfigure: Syntax error: "(" unexpected
      Selecting previously unselected package openssl.
      (Reading database ... 18795 files and directories currently installed.)
      Preparing to unpack .../0-openssl_1.1.0f-3+deb9u2_armhf.deb ...
      Unpacking openssl (1.1.0f-3+deb9u2) ...
      Selecting previously unselected package ca-certificates.
      Preparing to unpack .../1-ca-certificates_20161130+nmu1+deb9u1_all.deb ...
      Unpacking ca-certificates (20161130+nmu1+deb9u1) ...
      Selecting previously unselected package libunistring0:armhf.
      Preparing to unpack .../2-libunistring0_0.9.6+really0.9.3-0.1_armhf.deb ...
      Unpacking libunistring0:armhf (0.9.6+really0.9.3-0.1) ...
      Selecting previously unselected package libidn2-0:armhf.
      Preparing to unpack .../3-libidn2-0_0.16-1+deb9u1_armhf.deb ...
      Unpacking libidn2-0:armhf (0.16-1+deb9u1) ...
      Selecting previously unselected package libnghttp2-14:armhf.
      Preparing to unpack .../4-libnghttp2-14_1.18.1-1_armhf.deb ...
      Unpacking libnghttp2-14:armhf (1.18.1-1) ...
      Selecting previously unselected package libpsl5:armhf.
      Preparing to unpack .../5-libpsl5_0.17.0-3_armhf.deb ...
      Unpacking libpsl5:armhf (0.17.0-3) ...
      Selecting previously unselected package librtmp1:armhf.
      Preparing to unpack .../6-librtmp1_2.4+20151223.gitfa8646d.1-1+b1_armhf.deb ...
      Unpacking librtmp1:armhf (2.4+20151223.gitfa8646d.1-1+b1) ...
      Selecting previously unselected package libcurl3:armhf.
      Preparing to unpack .../7-libcurl3_7.52.1-5+deb9u8_armhf.deb ...
      Unpacking libcurl3:armhf (7.52.1-5+deb9u8) ...
      Selecting previously unselected package curl.
      Preparing to unpack .../8-curl_7.52.1-5+deb9u8_armhf.deb ...
      Unpacking curl (7.52.1-5+deb9u8) ...
      Selecting previously unselected package publicsuffix.
      Preparing to unpack .../9-publicsuffix_20181003.1334-0+deb9u1_all.deb ...
      Unpacking publicsuffix (20181003.1334-0+deb9u1) ...
      Setting up libnghttp2-14:armhf (1.18.1-1) ...
      Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-1+b1) ...
      Processing triggers for libc-bin (2.24-11+deb9u3) ...
      Setting up publicsuffix (20181003.1334-0+deb9u1) ...
      Setting up libunistring0:armhf (0.9.6+really0.9.3-0.1) ...
      Setting up openssl (1.1.0f-3+deb9u2) ...
      Setting up ca-certificates (20161130+nmu1+deb9u1) ...
      /usr/share/debconf/frontend: 5: /usr/share/debconf/frontend: use: not found
      /usr/share/debconf/frontend: 6: /usr/share/debconf/frontend: use: not found
      /usr/share/debconf/frontend: 7: /usr/share/debconf/frontend: use: not found
      /usr/share/debconf/frontend: 8: /usr/share/debconf/frontend: Syntax error: "(" unexpected
      dpkg: error processing package ca-certificates (--configure):
      subprocess installed post-installation script returned error exit status 2
      Setting up libidn2-0:armhf (0.16-1+deb9u1) ...
      Setting up libpsl5:armhf (0.17.0-3) ...
      Setting up libcurl3:armhf (7.52.1-5+deb9u8) ...
      Setting up curl (7.52.1-5+deb9u8) ...
      Processing triggers for libc-bin (2.24-11+deb9u3) ...
      Errors were encountered while processing:
      ca-certificates
      E: Sub-process /usr/bin/dpkg returned an error code (1)



      Errors like BEGIN: not found and Syntax error: "(" unexpected appear no matter what package I try to install.



      I have tried comparing the outputs of systemd-analyze blame and systemd-analyze critical-chain with the working image but I did not find anything strange so far.







      debian linux-kernel apt





      share









      New contributor




      Ricardo Cavalheiro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share









      New contributor




      Ricardo Cavalheiro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share








      edited 5 mins ago









      PersianGulf

      6,94543461




      6,94543461






      New contributor




      Ricardo Cavalheiro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 6 mins ago









      Ricardo CavalheiroRicardo Cavalheiro

      1




      1




      New contributor




      Ricardo Cavalheiro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Ricardo Cavalheiro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Ricardo Cavalheiro is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Ricardo Cavalheiro is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497363%2fdpkg-preconfigure-throws-syntax-and-not-found-error-when-installing-any-package%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Ricardo Cavalheiro is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Ricardo Cavalheiro is a new contributor. Be nice, and check out our Code of Conduct.













          Ricardo Cavalheiro is a new contributor. Be nice, and check out our Code of Conduct.












          Ricardo Cavalheiro is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f497363%2fdpkg-preconfigure-throws-syntax-and-not-found-error-when-installing-any-package%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          CARDNET

          Boot-repair Failure: Unable to locate package grub-common:i386

          Aws NAT - Aws IGW- Aws router