teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

grep '^[^#]' /etc/apt/sources.listの結果酒精

2020/07/10 01:24

投稿

rikuou
rikuou

スコア25

title CHANGED
File without changes
body CHANGED
@@ -104,4 +104,22 @@
104
104
  Errors were encountered while processing:
105
105
  linux-base
106
106
  E: Sub-process /usr/bin/dpkg returned an error code (1)
107
+ ```
108
+
109
+ **grep '^[^#]' /etc/apt/sources.list**
110
+
111
+ ```
112
+ riku@riku-HP-ENVY-x360-Convertible-13-ag0xxx:~$ grep '^[^#]' /etc/apt/sources.list
113
+ deb http://jp.archive.ubuntu.com/ubuntu/ focal main restricted
114
+ deb http://jp.archive.ubuntu.com/ubuntu/ focal-updates main restricted
115
+ deb http://jp.archive.ubuntu.com/ubuntu/ focal universe
116
+ deb http://jp.archive.ubuntu.com/ubuntu/ focal-updates universe
117
+ deb http://jp.archive.ubuntu.com/ubuntu/ focal multiverse
118
+ deb http://jp.archive.ubuntu.com/ubuntu/ focal-updates multiverse
119
+ deb http://jp.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
120
+ deb http://security.ubuntu.com/ubuntu focal-security main restricted
121
+ deb http://security.ubuntu.com/ubuntu focal-security universe
122
+ deb http://security.ubuntu.com/ubuntu focal-security multiverse
123
+ deb http://download.virtualbox.org/virtualbox/debian focal contrib
124
+ deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian focal contrib
107
125
  ```

2

sudo apt update後に sudo apt upgradeを行った際のエラー

2020/07/10 01:24

投稿

rikuou
rikuou

スコア25

title CHANGED
@@ -1,1 +1,1 @@
1
- Ubuntu18.04で Errors were encountered while processing: の解決方法
1
+ Ubuntu18.04で apt upgradeを行った際に生じる Errors were encountered while processing: の解決方法
body CHANGED
File without changes

1

sudo apt update後に sudo apt upgradeを行った際のエラー

2020/07/10 01:03

投稿

rikuou
rikuou

スコア25

title CHANGED
File without changes
body CHANGED
@@ -4,7 +4,77 @@
4
4
 
5
5
  https://www.ostechnix.com/fix-sub-process-usr-bin-dpkg-returned-an-error-code-1-in-ubuntu/
6
6
 
7
+ sudo apt updateを行う
7
8
  ```
9
+ riku@riku-HP-ENVY-x360-Convertible-13-ag0xxx:~$ sudo apt update
10
+ [sudo] password for riku:
11
+ Get:1 https://repo.steampowered.com/steam stable InRelease [2,852 B]
12
+ Get:2 https://repo.steampowered.com/steam stable/steam Sources [565 B]
13
+ ,
14
+ ,
15
+ ,
16
+ Building dependency tree
17
+ Reading state information... Done
18
+ 5 packages can be upgraded. Run 'apt list --upgradable' to see them.
19
+ W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
20
+ W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
21
+ W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
22
+ W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
23
+ W: Target Translations (contrib/i18n/Translation-ja) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
24
+ 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
25
+ 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
26
+ 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
27
+ 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
28
+ 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
29
+ W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
30
+ W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
31
+ 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'
32
+ W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
33
+ W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
34
+ W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
35
+ W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
36
+ W: Target Translations (contrib/i18n/Translation-ja) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
37
+ 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
38
+ 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
39
+ 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
40
+ 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
41
+ 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
42
+ W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
43
+ W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list:59
44
+
45
+ ```
46
+ sudo apt upgradeを行う
47
+ ```
48
+ riku@riku-HP-ENVY-x360-Convertible-13-ag0xxx:~$ sudo apt upgrade
49
+ Reading package lists... Done
50
+ Building dependency tree
51
+ Reading state information... Done
52
+ ,
53
+ ,
54
+ ,
55
+ Setting up linux-base (4.5ubuntu3.1) ...
56
+ debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another p
57
+ rocess: Resource temporarily unavailable
58
+ dpkg: error processing package linux-base (--configure):
59
+ installed linux-base package post-installation script subprocess returned error
60
+ exit status 1
61
+ Setting up thunderbird (1:68.10.0+build1-0ubuntu0.20.04.1) ...
62
+ Setting up thunderbird-locale-en (1:68.10.0+build1-0ubuntu0.20.04.1) ...
63
+ Setting up thunderbird-locale-en-us (1:68.10.0+build1-0ubuntu0.20.04.1) ...
64
+ Setting up thunderbird-locale-ja (1:68.10.0+build1-0ubuntu0.20.04.1) ...
65
+ Setting up thunderbird-gnome-support (1:68.10.0+build1-0ubuntu0.20.04.1) ...
66
+ Processing triggers for mime-support (3.64ubuntu1) ...
67
+ Processing triggers for hicolor-icon-theme (0.17-2) ...
68
+ Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
69
+ Processing triggers for man-db (2.9.1-1) ...
70
+ Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
71
+ Errors were encountered while processing:
72
+ linux-base
73
+ E: Sub-process /usr/bin/dpkg returned an error code (1)
74
+ ```
75
+
76
+ dpkgの依存関係を確認してみる
77
+ ```
8
78
  sudo dpkg --configure -a
9
79
  [sudo] password for riku:
10
80
  Setting up linux-base (4.5ubuntu3.1) ...