Package: python3-mock Version: 4.0.3-1 user@host:~/ops/all$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages have been kept back: apache2 apache2-bin apache2-data apache2-utils apt apt-utils awscli bash bind9 bind9-host bind9utils binutils bsd-mailx bsdmainutils bsdutils busybox ca-certificates certbot coreutils cron curl dash dbus dmsetup dnsutils dpkg e2fsprogs findutils fuse gdisk gnupg gnupg-agent gpgv groff-base grub-common grub-pc grub-pc-bin grub2-common iamerican ibritish ienglish-common initramfs-tools initramfs-tools-core iproute2 iptables iputils-ping irqbalance isc-dhcp-client ispell less libapache2-mod-svn libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libaugeas0 libblkid1 libbsd0 libc-bin libc6 libcurl3-gnutls libdbus-1-3 libdevmapper1.02.1 libedit2 libexpat1 libfdisk1 libfreetype6 libfuse2 libglib2.0-0 libgnutls30 libgpg-error0 libgssapi-krb5-2 libidn2-0 libiptc0 libk5crypto3 libkrb5-3 libkrb5support0 liblcms2-2 libldap-2.4-2 liblocale-gettext-perl libmount1 libncurses5 libncursesw5 libp11-kit0 libpam-modules libpam-modules-bin libpam-systemd libpci3 libpng16-16 libpopt0 libpsl5 libpython3-stdlib librtmp1 libselinux1 libsemanage-common libsemanage1 libserf-1-1 libslang2 libsmartcols1 libsqlite3-0 libss2 libssl1.1 libstdc++6 libsvn1 libsystemd0 libtext-charwidth-perl libtext-iconv-perl libtiff5 libtinfo5 libudev1 libuuid1 libwebp6 libwrap0 libx11-6 libxapian30 libxml2 libxtables12 linux-image-amd64 locales login logrotate lsof man-db mawk mime-support mount nano ncurses-base ncurses-bin ncurses-term net-tools ntp open-vm-tools openssh-client openssh-server openssh-sftp-server openssl passwd pciutils perl perl-base pinentry-curses postfix postfix-sqlite procps python3 python3-acme python3-botocore python3-certbot python3-certbot-apache python3-cffi-backend python3-colorama python3-cryptography python3-minimal python3-openssl python3-pil python3-pkg-resources python3-requests python3-setuptools python3-urllib3 python3-zope.hookable python3-zope.interface rename rsyslog ruby screen subversion sudo systemd systemd-sysv tar tcpd udev util-linux util-linux-locales vim-common vim-tiny wget whois zerofree 0 upgraded, 0 newly installed, 0 to remove and 180 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Setting up python3-mock (4.0.3-1) ... File "/usr/lib/python3/dist-packages/mock/mock.py", line 765 mock_name = f'{self._extract_mock_name()}.{name}' ^ SyntaxError: invalid syntax
dpkg: error processing package python3-mock (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: python3-mock E: Sub-process /usr/bin/dpkg returned an error code (1) user@host:~/ops/all$