以下のサイトを参考にしましたが,自分の場合は問題があるパッケージがlinux-baseというもので
サイトの手順では該当するパッケージをremoveしていましたが,linux-baseはやばい感じしかしないのでどうすればいいかわかりません
解決策をご享受していただけると助かります
https://www.ostechnix.com/fix-sub-process-usr-bin-dpkg-returned-an-error-code-1-in-ubuntu/
sudo apt updateを行う
riku@riku-HP-ENVY-x360-Convertible-13-ag0xxx:~$ sudo apt update [sudo] password for riku: Get:1 https://repo.steampowered.com/steam stable InRelease [2,852 B] Get:2 https://repo.steampowered.com/steam stable/steam Sources [565 B] , , , Building dependency tree Reading state information... Done 5 packages can be upgraded. Run 'apt list --upgradable' to see them. W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target Translations (contrib/i18n/Translation-ja) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target DEP-11-icons-hidpi (contrib/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 N: Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository 'http://download.virtualbox.org/virtualbox/debian focal InRelease' doesn't support architecture 'i386' W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target Translations (contrib/i18n/Translation-ja) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target DEP-11-icons-hidpi (contrib/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59 W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
sudo apt upgradeを行う
riku@riku-HP-ENVY-x360-Convertible-13-ag0xxx:~$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done , , , Setting up linux-base (4.5ubuntu3.1) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another p rocess: Resource temporarily unavailable dpkg: error processing package linux-base (--configure): installed linux-base package post-installation script subprocess returned error exit status 1 Setting up thunderbird (1:68.10.0+build1-0ubuntu0.20.04.1) ... Setting up thunderbird-locale-en (1:68.10.0+build1-0ubuntu0.20.04.1) ... Setting up thunderbird-locale-en-us (1:68.10.0+build1-0ubuntu0.20.04.1) ... Setting up thunderbird-locale-ja (1:68.10.0+build1-0ubuntu0.20.04.1) ... Setting up thunderbird-gnome-support (1:68.10.0+build1-0ubuntu0.20.04.1) ... Processing triggers for mime-support (3.64ubuntu1) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for gnome-menus (3.36.0-1ubuntu1) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for desktop-file-utils (0.24-1ubuntu3) ... Errors were encountered while processing: linux-base E: Sub-process /usr/bin/dpkg returned an error code (1)
dpkgの依存関係を確認してみる
sudo dpkg --configure -a [sudo] password for riku: Setting up linux-base (4.5ubuntu3.1) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing package linux-base (--configure): installed linux-base package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: linux-base
sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: dkms libgsoap-2.8.91 libllvm9 libvncserver1 virtualbox-dkms Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable Setting up linux-base (4.5ubuntu3.1) ... debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable dpkg: error processing package linux-base (--configure): installed linux-base package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: linux-base E: Sub-process /usr/bin/dpkg returned an error code (1)
grep '^[^#]' /etc/apt/sources.list
riku@riku-HP-ENVY-x360-Convertible-13-ag0xxx:~$ grep '^[^#]' /etc/apt/sources.list deb http://jp.archive.ubuntu.com/ubuntu/ focal main restricted deb http://jp.archive.ubuntu.com/ubuntu/ focal-updates main restricted deb http://jp.archive.ubuntu.com/ubuntu/ focal universe deb http://jp.archive.ubuntu.com/ubuntu/ focal-updates universe deb http://jp.archive.ubuntu.com/ubuntu/ focal multiverse deb http://jp.archive.ubuntu.com/ubuntu/ focal-updates multiverse deb http://jp.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu focal-security main restricted deb http://security.ubuntu.com/ubuntu focal-security universe deb http://security.ubuntu.com/ubuntu focal-security multiverse deb http://download.virtualbox.org/virtualbox/debian focal contrib deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian focal contrib
回答2件
あなたの回答
tips
プレビュー