Ubuntu Pastebin

Paste from apw at Wed, 12 Apr 2017 07:42:54 +0000

Download as text
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
Script started on Wed 12 Apr 2017 08:30:22 BST
#
# Remove existing newer snapd and associated helper packages.
#
mru@kowtow-z64:~$ sudo apt-get purge snapd snap-confine ubuntu-core-launcher
[sudo] password for mru: 
Reading package lists... 0%

Reading package lists... 100%

Reading package lists... Done

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree       

Reading state information... 0%

Reading state information... 0%

Reading state information... Done

Package 'snap-confine' is not installed, so not removed
Package 'ubuntu-core-launcher' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  account-plugin-tools account-plugin-ubuntuone cgmanager checkbox-gui espeak-data fonts-stix
  libboost-locale1.62.0 libcolamd2 libebitdo1 libespeak1 libglew2.0 libjsoncpp1 libllvm3.9
  libmagickcore-6.q16-2 libmirplatform14 libmirserver42 liborcus-0.11-0 libportaudio2 libraw15
  libsuitesparseconfig4 libubuntu-app-launch3 libubuntuoneauth-2.0-0 linux-headers-4.9.0-11
  linux-headers-4.9.0-11-generic linux-image-4.9.0-11-generic linux-image-extra-4.9.0-11-generic
  linux-signed-image-4.9.0-11-generic lp-solve mir-platform-graphics-mesa-kms11
  mir-platform-graphics-mesa-x11 pyotherside python3-olefile qml-module-ubuntuone
  signon-plugin-password ubuntuone-client-data ubuntuone-credentials-common unity-scope-click
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
  snapd*
0 to upgrade, 0 to newly install, 1 to remove and 268 not to upgrade.
After this operation, 33.6 MB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... (Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 241319 files and directories currently installed.)
Removing snapd (2.23.6+17.04.1) ...
Warning: Stopping snapd.service, but it can still be activated by:
  snapd.socket
Processing triggers for man-db (2.7.6.1-2) ...
(Reading database ... (Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 241280 files and directories currently installed.)
Removing snapd (2.23.6+17.04.1) ...
Purging configuration files for snapd (2.23.6+17.04.1) ...
Final directory cleanup
Discarding preserved snap namespaces
umount: /run/snapd/ns/*.mnt: mountpoint not found
umount: /run/snapd/ns/: mountpoint not found
Removing snapd state
#
# Confirm we have no profiles installed
#
mru@kowtow-z64:~$ ls /etc/apparmor.d/*snapd*
ls: cannot access '/etc/apparmor.d/*snap*': No such file or directory
#
# Install old version 2.22.6+17.04
#
mru@kowtow-z64:~$ ls *.deb
snap-confine_2.22.6+17.04_amd64.deb  ubuntu-core-launcher_2.22.6+17.04_amd64.deb
snapd_2.22.6+17.04_amd64.deb
mru@kowtow-z64:~$ sudo dpkg -i *.devb
Selecting previously unselected package snap-confine.
(Reading database ... (Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 241277 files and directories currently installed.)
Preparing to unpack snap-confine_2.22.6+17.04_amd64.deb ...
Unpacking snap-confine (2.22.6+17.04) ...
Selecting previously unselected package snapd.
Preparing to unpack snapd_2.22.6+17.04_amd64.deb ...
Unpacking snapd (2.22.6+17.04) ...
Selecting previously unselected package ubuntu-core-launcher.
Preparing to unpack ubuntu-core-launcher_2.22.6+17.04_amd64.deb ...
Unpacking ubuntu-core-launcher (2.22.6+17.04) ...
Setting up snap-confine (2.22.6+17.04) ...
Setting up snapd (2.22.6+17.04) ...
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.autoimport.service → /lib/systemd/system/snapd.autoimport.service.
Created symlink /etc/systemd/system/timers.target.wants/snapd.refresh.timer → /lib/systemd/system/snapd.refresh.timer.
Created symlink /etc/systemd/system/sockets.target.wants/snapd.socket → /lib/systemd/system/snapd.socket.
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.service → /lib/systemd/system/snapd.service.
Created symlink /etc/systemd/system/final.target.wants/snapd.system-shutdown.service → /lib/systemd/system/snapd.system-shutdown.service.
Setting up ubuntu-core-launcher (2.22.6+17.04) ...
Processing triggers for man-db (2.7.6.1-2) ...
#
# Confirm we have the profile in the old name.
#
mru@kowtow-z64:~$ ls /etc/apparmor.d/*snap*
/etc/apparmor.d/usr.lib.snapd.snap-confine
#
# Remove _just_ snapd
#
mru@kowtow-z64:~$ sudo apt-get purge snapd
Reading package lists... 0%

Reading package lists... 100%

Reading package lists... Done

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree       

Reading state information... 0%

Reading state information... 0%

Reading state information... Done

The following packages were automatically installed and are no longer required:
  account-plugin-tools account-plugin-ubuntuone cgmanager checkbox-gui espeak-data fonts-stix
  libboost-locale1.62.0 libcolamd2 libebitdo1 libespeak1 libglew2.0 libjsoncpp1 libllvm3.9
  libmagickcore-6.q16-2 libmirplatform14 libmirserver42 liborcus-0.11-0 libportaudio2 libraw15
  libsuitesparseconfig4 libubuntu-app-launch3 libubuntuoneauth-2.0-0 linux-headers-4.9.0-11
  linux-headers-4.9.0-11-generic linux-image-4.9.0-11-generic linux-image-extra-4.9.0-11-generic
  linux-signed-image-4.9.0-11-generic lp-solve mir-platform-graphics-mesa-kms11
  mir-platform-graphics-mesa-x11 pyotherside python3-olefile qml-module-ubuntuone
  signon-plugin-password ubuntuone-client-data ubuntuone-credentials-common unity-scope-click
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
  snapd*
0 to upgrade, 0 to newly install, 1 to remove and 270 not to upgrade.
After this operation, 32.5 MB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... (Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 241325 files and directories currently installed.)
Removing snapd (2.22.6+17.04) ...
Warning: Stopping snapd.service, but it can still be activated by:
  snapd.socket
Processing triggers for man-db (2.7.6.1-2) ...
(Reading database ... (Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 241296 files and directories currently installed.)
Removing snapd (2.22.6+17.04) ...
Purging configuration files for snapd (2.22.6+17.04) ...
Final directory cleanup
Discarding preserved snap namespaces
umount: /run/snapd/ns/*.mnt: mountpoint not found
umount: /run/snapd/ns/: mountpoint not found
Removing snapd state
#
# Confirm we still have the profile on disk.
#
mru@kowtow-z64:~$ ls /etc/apparmor.d/*snap*
/etc/apparmor.d/usr.lib.snapd.snap-confine
#
# Install the latest snapd again.
#
mru@kowtow-z64:~$ sudo apt-get install snapd
Reading package lists... 0%

Reading package lists... 100%

Reading package lists... Done

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree       

Reading state information... 0%

Reading state information... 0%

Reading state information... Done

The following packages were automatically installed and are no longer required:
  account-plugin-tools account-plugin-ubuntuone cgmanager checkbox-gui espeak-data fonts-stix
  libboost-locale1.62.0 libcolamd2 libebitdo1 libespeak1 libglew2.0 libjsoncpp1 libllvm3.9
  libmagickcore-6.q16-2 libmirplatform14 libmirserver42 liborcus-0.11-0 libportaudio2 libraw15
  libsuitesparseconfig4 libubuntu-app-launch3 libubuntuoneauth-2.0-0 linux-headers-4.9.0-11
  linux-headers-4.9.0-11-generic linux-image-4.9.0-11-generic linux-image-extra-4.9.0-11-generic
  linux-signed-image-4.9.0-11-generic lp-solve mir-platform-graphics-mesa-kms11
  mir-platform-graphics-mesa-x11 pyotherside python3-olefile qml-module-ubuntuone
  signon-plugin-password ubuntuone-client-data ubuntuone-credentials-common unity-scope-click
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  snap-confine ubuntu-core-launcher
The following NEW packages will be installed
  snapd
The following packages will be upgraded:
  snap-confine ubuntu-core-launcher
2 to upgrade, 1 to newly install, 0 to remove and 268 not to upgrade.
Need to get 0 B/6,215 kB of archives.
After this operation, 33.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... (Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 241294 files and directories currently installed.)
Preparing to unpack .../ubuntu-core-launcher_2.23.6+17.04.1_amd64.deb ...
Unpacking ubuntu-core-launcher (2.23.6+17.04.1) over (2.22.6+17.04) ...
Preparing to unpack .../snap-confine_2.23.6+17.04.1_amd64.deb ...
Unpacking snap-confine (2.23.6+17.04.1) over (2.22.6+17.04) ...
Selecting previously unselected package snapd.
Preparing to unpack .../snapd_2.23.6+17.04.1_amd64.deb ...
Unpacking snapd (2.23.6+17.04.1) ...
Setting up snapd (2.23.6+17.04.1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.autoimport.service → /lib/systemd/system/snapd.autoimport.service.
Created symlink /etc/systemd/system/timers.target.wants/snapd.refresh.timer → /lib/systemd/system/snapd.refresh.timer.
Created symlink /etc/systemd/system/sockets.target.wants/snapd.socket → /lib/systemd/system/snapd.socket.
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.service → /lib/systemd/system/snapd.service.
Created symlink /etc/systemd/system/final.target.wants/snapd.system-shutdown.service → /lib/systemd/system/snapd.system-shutdown.service.
Processing triggers for man-db (2.7.6.1-2) ...
Setting up ubuntu-core-launcher (2.23.6+17.04.1) ...
Setting up snap-confine (2.23.6+17.04.1) ...
#
# Note we have both profiles installed now.
#
mru@kowtow-z64:~$ ls /etc/apparmor.d/*snap*
/etc/apparmor.d/usr.lib.snapd.snap-confine  /etc/apparmor.d/usr.lib.snapd.snap-confine.real
#
# All done.
#
mru@kowtow-z64:~$ 
mru@kowtow-z64:~$ exit

Script done on Wed 12 Apr 2017 08:34:06 BST
Download as text