#StackBounty: #package-management #wine #aptitude Aptitude wants to remove hundreds of packages when I try to install wine

Bounty: 50

I wanted to install Wine (doesn’t matter whether it will be stable, development or staging), following the steps from the official website, but I get the following

sudo aptitude install winehq-staging
The following NEW packages will be installed:
  glib-networking:i386{a} gstreamer1.0-plugins-base:i386{ab} i965-va-driver:i386{a} libasn1-8-heimdal:i386{a} libasound2:i386{ab} libasound2-plugins:i386{a} libasyncns0:i386{a} libatk-bridge2.0-0:i386{a} 
  libatk1.0-0:i386{a} libatspi2.0-0:i386{a} libavahi-client3:i386{a} libavahi-common-data:i386{a} libavahi-common3:i386{a} libblkid1:i386{ab} libcairo-gobject2:i386{a} libcairo2:i386{a} libcap2:i386{a} 
  libcapi20-3{a} libcdparanoia0:i386{a} libcolord2:i386{a} libcups2:i386{a} libdatrie1:i386{a} libdb5.3:i386{ab} libdbus-1-3:i386{a} libegl1:i386{a} libepoxy0:i386{a} libexif12:i386{a} libflac8:i386{a} 
  libfontconfig1:i386{a} libfreetype6:i386{ab} libgd3:i386{a} libgdk-pixbuf2.0-0:i386{a} libglib2.0-0:i386{ab} libgmp10:i386{a} libgnutls30:i386{a} libgphoto2-6:i386{a} libgphoto2-port12:i386{a} 
  libgpm2:i386{a} libgraphite2-3:i386{a} libgssapi-krb5-2:i386{a} libgssapi3-heimdal:i386{a} libgstreamer-plugins-base1.0-0:i386{ab} libgstreamer1.0-0:i386{ab} libgtk-3-0:i386{ab} libharfbuzz0b:i386{ab} 
  libhcrypto4-heimdal:i386{a} libheimbase1-heimdal:i386{a} libheimntlm0-heimdal:i386{a} libhogweed4:i386{a} libhx509-5-heimdal:i386{a} libidn2-0:i386{a} libieee1284-3:i386{a} libjack-jackd2-0:i386{a} 
  libjbig0:i386{a} libjson-glib-1.0-0:i386{a} libk5crypto3:i386{a} libkeyutils1:i386{ab} libkrb5-26-heimdal:i386{a} libkrb5-3:i386{a} libkrb5support0:i386{a} libldap-2.4-2:i386{a} libltdl7:i386{a} 
  libmount1:i386{ab} libncurses5:i386{ab} libnettle6:i386{a} libodbc1{a} libodbc1:i386{a} libogg0:i386{a} libopenal1:i386{a} libopus0:i386{a} liborc-0.4-0:i386{a} libp11-kit0:i386{a} libpango-1.0-0:i386{a} 
  libpangocairo-1.0-0:i386{a} libpangoft2-1.0-0:i386{a} libpcap0.8:i386{a} libpixman-1-0:i386{a} libpng16-16:i386{a} libproxy1v5:i386{a} libpulse0:i386{ab} librest-0.7-0:i386{a} libroken18-heimdal:i386{a} 
  libsamplerate0:i386{a} libsane1:i386{a} libsasl2-2:i386{a} libsasl2-modules:i386{a} libsasl2-modules-db:i386{a} libsdl2-2.0-0{a} libsdl2-2.0-0:i386{a} libsndfile1:i386{a} libsndio6.1:i386{a} 
  libsoup-gnome2.4-1:i386{a} libsoup2.4-1:i386{a} libspeexdsp1:i386{a} libsqlite3-0:i386{a} libssl1.1:i386{a} libsystemd0:i386{ab} libtasn1-6:i386{a} libthai0:i386{a} libtheora0:i386{a} libtiff5:i386{ab} 
  libunistring2:i386{a} libusb-1.0-0:i386{a} libuuid1:i386{ab} libva-drm2:i386{a} libva-x11-2:i386{a} libva2:i386{a} libvisual-0.4-0:i386{a} libvorbis0a:i386{a} libvorbisenc2:i386{a} libvulkan1:i386{a} 
  libwayland-client0:i386{a} libwayland-cursor0:i386{a} libwayland-egl1-mesa:i386{a} libwebp6:i386{a} libwind0-heimdal:i386{a} libwrap0:i386{a} libxcb-render0:i386{a} libxcb-shm0:i386{a} 
  libxcb-xfixes0:i386{a} libxkbcommon0:i386{a} libxpm4:i386{a} mesa-va-drivers:i386{a} va-driver-all:i386{a} wine-staging{a} wine-staging-amd64{a} wine-staging-i386:i386{a} winehq-staging 
0 packages upgraded, 128 newly installed, 0 to remove and 4 not upgraded.
Need to get 77.4 MB of archives. After unpacking 555 MB will be used.
The following packages have unmet dependencies:
 libsystemd0 : Breaks: libsystemd0:i386 (!= 237-3ubuntu10) but 237-3ubuntu7 is to be installed
 libsystemd0:i386 : Breaks: libsystemd0 (!= 237-3ubuntu7) but 237-3ubuntu10 is installed
 libgtk-3-0 : Breaks: libgtk-3-0:i386 (!= 3.22.30-1ubuntu1) but 3.22.29-3ubuntu1 is to be installed
 libgtk-3-0:i386 : Breaks: libgtk-3-0 (!= 3.22.29-3ubuntu1) but 3.22.30-1ubuntu1 is installed
 libasound2-data : Breaks: libasound2:i386 (< 1.1.3-5ubuntu0.1) but 1.1.3-5 is to be installed
 libmount1 : Breaks: libmount1:i386 (!= 2.31.1-0.4ubuntu3.1) but 2.31.1-0.4ubuntu3 is to be installed
 libmount1:i386 : Breaks: libmount1 (!= 2.31.1-0.4ubuntu3) but 2.31.1-0.4ubuntu3.1 is installed
 libncurses5 : Breaks: libncurses5:i386 (!= 6.1-1ubuntu1.18.04) but 6.1-1ubuntu1 is to be installed
 libncurses5:i386 : Depends: libtinfo5:i386 (= 6.1-1ubuntu1) but 6.1-1ubuntu1.18.04 is installed
                    Breaks: libncurses5 (!= 6.1-1ubuntu1) but 6.1-1ubuntu1.18.04 is installed
 gstreamer1.0-plugins-base : Breaks: gstreamer1.0-plugins-base:i386 (!= 1.14.1-1ubuntu1~ubuntu18.04.1) but 1.14.0-2ubuntu1 is to be installed
 gstreamer1.0-plugins-base:i386 : Breaks: gstreamer1.0-plugins-base (!= 1.14.0-2ubuntu1) but 1.14.1-1ubuntu1~ubuntu18.04.1 is installed
 libblkid1 : Breaks: libblkid1:i386 (!= 2.31.1-0.4ubuntu3.1) but 2.31.1-0.4ubuntu3 is to be installed
 libblkid1:i386 : Breaks: libblkid1 (!= 2.31.1-0.4ubuntu3) but 2.31.1-0.4ubuntu3.1 is installed
 libtiff5 : Breaks: libtiff5:i386 (!= 4.0.9-5) but 4.0.9-4ubuntu1 is to be installed
 libtiff5:i386 : Breaks: libtiff5 (!= 4.0.9-4ubuntu1) but 4.0.9-5 is installed
 libpulse0 : Breaks: libpulse0:i386 (!= 1:11.1-1ubuntu7.1) but 1:11.1-1ubuntu7 is to be installed
 libpulse0:i386 : Breaks: libpulse0 (!= 1:11.1-1ubuntu7) but 1:11.1-1ubuntu7.1 is installed
 libuuid1 : Breaks: libuuid1:i386 (!= 2.31.1-0.4ubuntu3.1) but 2.31.1-0.4ubuntu3 is to be installed
 libuuid1:i386 : Breaks: libuuid1 (!= 2.31.1-0.4ubuntu3) but 2.31.1-0.4ubuntu3.1 is installed
 libkeyutils1 : Breaks: libkeyutils1:i386 (!= 1.5.9-9.2ubuntu2) but 1.5.9-9.2ubuntu1 is to be installed
 libkeyutils1:i386 : Breaks: libkeyutils1 (!= 1.5.9-9.2ubuntu1) but 1.5.9-9.2ubuntu2 is installed
 libgstreamer-plugins-base1.0-0 : Breaks: libgstreamer-plugins-base1.0-0:i386 (!= 1.14.1-1ubuntu1~ubuntu18.04.1) but 1.14.0-2ubuntu1 is to be installed
 libgstreamer-plugins-base1.0-0:i386 : Breaks: libgstreamer-plugins-base1.0-0 (!= 1.14.0-2ubuntu1) but 1.14.1-1ubuntu1~ubuntu18.04.1 is installed
 libdb5.3 : Breaks: libdb5.3:i386 (!= 5.3.28-13.1ubuntu1) but 5.3.28-13.1 is to be installed
 libdb5.3:i386 : Breaks: libdb5.3 (!= 5.3.28-13.1) but 5.3.28-13.1ubuntu1 is installed
 libasound2 : Breaks: libasound2:i386 (!= 1.1.3-5ubuntu0.1) but 1.1.3-5 is to be installed
 libasound2:i386 : Breaks: libasound2 (!= 1.1.3-5) but 1.1.3-5ubuntu0.1 is installed
 libfreetype6 : Breaks: libfreetype6:i386 (!= 2.8.1-2ubuntu2) but 2.8.1-2ubuntu1 is to be installed
 libfreetype6:i386 : Breaks: libfreetype6 (!= 2.8.1-2ubuntu1) but 2.8.1-2ubuntu2 is installed
 libharfbuzz0b : Breaks: libharfbuzz0b:i386 (!= 1.7.2-1ubuntu1) but 1.7.2-1 is to be installed
 libharfbuzz0b:i386 : Breaks: libharfbuzz0b (!= 1.7.2-1) but 1.7.2-1ubuntu1 is installed
 libgstreamer1.0-0 : Breaks: libgstreamer1.0-0:i386 (!= 1.14.1-1~ubuntu18.04.1) but 1.14.0-1 is to be installed
 libgstreamer1.0-0:i386 : Breaks: libgstreamer1.0-0 (!= 1.14.0-1) but 1.14.1-1~ubuntu18.04.1 is installed
 libglib2.0-0 : Breaks: libglib2.0-0:i386 (!= 2.56.1-2ubuntu1) but 2.56.0-4ubuntu1 is to be installed
 libglib2.0-0:i386 : Breaks: libglib2.0-0 (!= 2.56.0-4ubuntu1) but 2.56.1-2ubuntu1 is installed
open: 297; closed: 2888; defer: 45; conflict: 96                                                                                                                                                                  oThe following actions will resolve these dependencies:

      Keep the following packages at their current version:                          
1)      glib-networking:i386 [Not Installed]                                         
2)      gstreamer1.0-plugins-base:i386 [Not Installed]                               
3)      libasound2:i386 [Not Installed]                                              
4)      libasound2-plugins:i386 [Not Installed]                                      
5)      libatk-bridge2.0-0:i386 [Not Installed]                                      
6)      libatk1.0-0:i386 [Not Installed]                                             
7)      libatspi2.0-0:i386 [Not Installed]                                           
8)      libavahi-client3:i386 [Not Installed]                                        
9)      libblkid1:i386 [Not Installed]                                               
10)     libcairo-gobject2:i386 [Not Installed]                                       
11)     libcairo2:i386 [Not Installed]                                               
12)     libcolord2:i386 [Not Installed]                                              
13)     libcups2:i386 [Not Installed]                                                
14)     libdb5.3:i386 [Not Installed]                                                
15)     libdbus-1-3:i386 [Not Installed]                                             
16)     libfontconfig1:i386 [Not Installed]                                          
17)     libfreetype6:i386 [Not Installed]                                            
18)     libgd3:i386 [Not Installed]                                                  
19)     libgdk-pixbuf2.0-0:i386 [Not Installed]                                      
20)     libglib2.0-0:i386 [Not Installed]                                            
21)     libgphoto2-6:i386 [Not Installed]                                            
22)     libgssapi-krb5-2:i386 [Not Installed]                                        
23)     libgstreamer-plugins-base1.0-0:i386 [Not Installed]                          
24)     libgstreamer1.0-0:i386 [Not Installed]                                       
25)     libgtk-3-0:i386 [Not Installed]                                              
26)     libharfbuzz0b:i386 [Not Installed]                                           
27)     libjson-glib-1.0-0:i386 [Not Installed]                                      
28)     libkeyutils1:i386 [Not Installed]                                            
29)     libkrb5-3:i386 [Not Installed]                                               
30)     libldap-2.4-2:i386 [Not Installed]                                           
31)     libmount1:i386 [Not Installed]                                               
32)     libncurses5:i386 [Not Installed]                                             
33)     libopenal1:i386 [Not Installed]                                              
34)     libpango-1.0-0:i386 [Not Installed]                                          
35)     libpangocairo-1.0-0:i386 [Not Installed]                                     
36)     libpangoft2-1.0-0:i386 [Not Installed]                                       
37)     libpulse0:i386 [Not Installed]                                               
38)     librest-0.7-0:i386 [Not Installed]                                           
39)     libsane1:i386 [Not Installed]                                                
40)     libsasl2-2:i386 [Not Installed]                                              
41)     libsasl2-modules-db:i386 [Not Installed]                                     
42)     libsdl2-2.0-0:i386 [Not Installed]                                           
43)     libsndio6.1:i386 [Not Installed]                                             
44)     libsoup-gnome2.4-1:i386 [Not Installed]                                      
45)     libsoup2.4-1:i386 [Not Installed]                                            
46)     libsystemd0:i386 [Not Installed]                                             
47)     libtheora0:i386 [Not Installed]                                              
48)     libtiff5:i386 [Not Installed]                                                
49)     libuuid1:i386 [Not Installed]                                                
50)     wine-staging [Not Installed]                                                 
51)     wine-staging-i386:i386 [Not Installed]                                       
52)     winehq-staging [Not Installed]                                               

      Leave the following dependencies unresolved:                                   
53)     libgstreamer-plugins-base1.0-0:i386 recommends gstreamer1.0-plugins-base:i386
54)     libopenal1:i386 recommends libasound2:i386 (>= 1.0.16)                       
55)     wine-staging-i386:i386 recommends libcairo2:i386 (>= 1.2.4)                  
56)     wine-staging-i386:i386 recommends libcups2:i386 (>= 1.4.0)                   
57)     wine-staging-i386:i386 recommends libdbus-1-3:i386 (>= 1.9.14)               
58)     wine-staging-i386:i386 recommends libfontconfig1:i386 (>= 2.12)              
59)     wine-staging-i386:i386 recommends libfreetype6:i386 (>= 2.2.1)               
60)     wine-staging-i386:i386 recommends libgssapi-krb5-2:i386 (>= 1.6.dfsg.2)      
61)     wine-staging-i386:i386 recommends libgtk-3-0:i386 (>= 3.0.0)                 
62)     wine-staging-i386:i386 recommends libkrb5-3:i386 (>= 1.6.dfsg.2)             
63)     wine-staging-i386:i386 recommends libncurses5:i386 (>= 6)                    
64)     wine-staging-i386:i386 recommends libsane1:i386 (>= 1.0.24)                  
65)     wine-staging-i386:i386 recommends libsdl2-2.0-0:i386 (>= 2.0.8)              
66)     wine-staging-i386:i386 recommends libtiff5:i386 (>= 4.0.3)                   



Accept this solution? [Y/n/q/?]
The following actions will resolve these dependencies:

If I go with Y, I just get

No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

If on the other hadn I go with n, I am prompted with another choice

The following actions will resolve these dependencies:

      Remove the following packages:                                                                  
1)      cheese [3.28.0-1ubuntu1 (bionic, now)]                                                        
2)      evince [3.28.2-1 (bionic, now)]                                                               
3)      gnome-control-center [1:3.28.1-0ubuntu1.18.04.2 (now)]                                        
4)      gnome-video-effects [0.4.3-1ubuntu1 (bionic, now)]                                            
5)      gstreamer1.0-plugins-bad [1.14.1-1ubuntu1~ubuntu18.04.1 (now)]                                
6)      gstreamer1.0-plugins-base [1.14.1-1ubuntu1~ubuntu18.04.1 (now)]                               
7)      gstreamer1.0-plugins-good [1.14.1-1ubuntu1~ubuntu18.04.1 (now)]                               
8)      indicator-bluetooth [0.0.6+17.10.20170605-0ubuntu3 (bionic, now)]                             
9)      libcheese-gtk25 [3.28.0-1ubuntu1 (bionic, now)]                                               
10)     libcheese8 [3.28.0-1ubuntu1 (bionic, now)]                                                    
11)     libevview3-3 [3.28.2-1 (bionic, now)]                                                         
12)     rhythmbox [3.4.2-4ubuntu1 (bionic, now)]                                                      
13)     rhythmbox-plugin-alternative-toolbar [0.18.0-1 (bionic, now)]                                 
14)     rhythmbox-plugin-zeitgeist [3.4.2-4ubuntu1 (bionic, now)]                                     
15)     rhythmbox-plugins [3.4.2-4ubuntu1 (bionic, now)]                                              
16)     totem [3.26.0-0ubuntu6 (bionic, now)]                                                         
17)     totem-plugins [3.26.0-0ubuntu6 (bionic, now)]                                                 
18)     unity-control-center [15.04.0+18.04.20180216-0ubuntu1 (bionic, now)]                          

      Install the following packages:                                                                 
19)     libmate-panel-applet-4-1 [1.20.1-0ubuntu1 (bionic)]                                           
20)     mate-power-manager [1.20.1-0ubuntu1 (bionic)]                                                 
21)     mate-power-manager-common [1.20.1-0ubuntu1 (bionic)]                                          
22)     mupdf [1.12.0+ds1-1 (bionic)]                                                                 

      Keep the following packages at their current version:                                           
23)     glib-networking:i386 [Not Installed]                                                          
24)     gstreamer1.0-plugins-base:i386 [Not Installed]                                                
25)     libasound2:i386 [Not Installed]                                                               
26)     libasound2-plugins:i386 [Not Installed]                                                       
27)     libatk-bridge2.0-0:i386 [Not Installed]                                                       
28)     libatk1.0-0:i386 [Not Installed]                                                              
29)     libatspi2.0-0:i386 [Not Installed]                                                            
30)     libavahi-client3:i386 [Not Installed]                                                         
31)     libblkid1:i386 [Not Installed]                                                                
32)     libcairo-gobject2:i386 [Not Installed]                                                        
33)     libcairo2:i386 [Not Installed]                                                                
34)     libcolord2:i386 [Not Installed]                                                               
35)     libcups2:i386 [Not Installed]                                                                 
36)     libdb5.3:i386 [Not Installed]                                                                 
37)     libdbus-1-3:i386 [Not Installed]                                                              
38)     libfontconfig1:i386 [Not Installed]                                                           
39)     libfreetype6:i386 [Not Installed]                                                             
40)     libgd3:i386 [Not Installed]                                                                   
41)     libgdk-pixbuf2.0-0:i386 [Not Installed]                                                       
42)     libglib2.0-0:i386 [Not Installed]                                                             
43)     libgphoto2-6:i386 [Not Installed]                                                             
44)     libgssapi-krb5-2:i386 [Not Installed]                                                         
45)     libgstreamer-plugins-base1.0-0:i386 [Not Installed]                                           
46)     libgstreamer1.0-0:i386 [Not Installed]                                                        
47)     libgtk-3-0:i386 [Not Installed]                                                               
48)     libharfbuzz0b:i386 [Not Installed]                                                            
49)     libjson-glib-1.0-0:i386 [Not Installed]                                                       
50)     libkeyutils1:i386 [Not Installed]                                                             
51)     libkrb5-3:i386 [Not Installed]                                                                
52)     libldap-2.4-2:i386 [Not Installed]                                                            
53)     libmount1:i386 [Not Installed]                                                                
54)     libncurses5:i386 [Not Installed]                                                              
55)     libopenal1:i386 [Not Installed]                                                               
56)     libpango-1.0-0:i386 [Not Installed]                                                           
57)     libpangocairo-1.0-0:i386 [Not Installed]                                                      
58)     libpangoft2-1.0-0:i386 [Not Installed]                                                        
59)     libpulse0:i386 [Not Installed]                                                                
60)     librest-0.7-0:i386 [Not Installed]                                                            
61)     libsane1:i386 [Not Installed]                                                                 
62)     libsasl2-2:i386 [Not Installed]                                                               
63)     libsasl2-modules-db:i386 [Not Installed]                                                      
64)     libsdl2-2.0-0:i386 [Not Installed]                                                            
65)     libsndio6.1:i386 [Not Installed]                                                              
66)     libsoup-gnome2.4-1:i386 [Not Installed]                                                       
67)     libsoup2.4-1:i386 [Not Installed]                                                             
68)     libsystemd0:i386 [Not Installed]                                                              
69)     libtheora0:i386 [Not Installed]                                                               
70)     libtiff5:i386 [Not Installed]                                                                 
71)     libuuid1:i386 [Not Installed]                                                                 
72)     wine-staging [Not Installed]                                                                  
73)     wine-staging-i386:i386 [Not Installed]                                                        
74)     winehq-staging [Not Installed]                                                                

      Leave the following dependencies unresolved:                                                    
75)     gnome-bluetooth recommends gnome-control-center | unity-control-center                        
76)     rhythmbox-data recommends rhythmbox                                                           
77)     libgstreamer-plugins-base1.0-0:i386 recommends gstreamer1.0-plugins-base:i386                 
78)     indicator-datetime recommends unity-control-center (>= 14.04.3) | gnome-control-center        
79)     indicator-session recommends unity-control-center | gnome-control-center | mate-control-center
80)     libwebkitgtk-3.0-0 recommends gstreamer1.0-plugins-base                                       
81)     libwebkitgtk-3.0-0 recommends gstreamer1.0-plugins-good                                       
82)     libopenal1:i386 recommends libasound2:i386 (>= 1.0.16)                                        
83)     wine-staging-i386:i386 recommends libncurses5:i386 (>= 6)                                     
84)     libspice-server1 recommends gstreamer1.0-plugins-base                                         
85)     libspice-server1 recommends gstreamer1.0-plugins-good                                         
86)     libwebkit2gtk-4.0-37 recommends gstreamer1.0-plugins-good                                     
87)     libgstreamer-plugins-base1.0-0 recommends gstreamer1.0-plugins-base                           
88)     gnome-online-accounts recommends gnome-control-center (>= 3.6.1)                              
89)     gnome-shell recommends gnome-control-center                                                   
90)     unity recommends unity-control-center                                                         
91)     unity-session recommends rhythmbox-plugin-zeitgeist                                           
92)     unity-services recommends indicator-bluetooth                                                 



Accept this solution? [Y/n/q/?]

which, when accepted with Y, takes me to

The following NEW packages will be installed:
  libmate-panel-applet-4-1{a} mate-power-manager{a} mate-power-manager-common{a} mupdf{a} 
The following packages will be REMOVED:
  activity-log-manager{u} apache2-bin{u} apg{u} cheese{a} cheese-common{u} evince{a} evince-common{u} freepats{u} gir1.2-rb-3.0{u} gir1.2-totem-1.0{u} gir1.2-totemplparser-1.0{u} gnome-control-center{a} 
  gnome-control-center-faces{u} gnome-user-share{u} gnome-video-effects{a} grilo-plugins-0.3-base{u} gstreamer1.0-clutter-3.0{u} gstreamer1.0-plugins-bad{a} gstreamer1.0-plugins-base{a} 
  gstreamer1.0-plugins-good{a} gstreamer1.0-x{u} indicator-bluetooth{a} libapache2-mod-dnssd{u} libapr1{u} libaprutil1{u} libaprutil1-dbd-sqlite3{u} libaprutil1-ldap{u} libcdparanoia0{u} libcheese-gtk25{a} 
  libcheese8{a} libcolord-gtk1{u} libde265-0{u} libdmapsharing-3.0-2{u} libdv4{u} libevdocument3-4{u} libevview3-3{a} libfluidsynth1{u} libgeonames-common{u} libgeonames0{u} libgmime-3.0-0{u} 
  libgom-1.0-0{u} libgpod-common{u} libgpod4{u} libgrilo-0.3-0{u} libgssdp-1.0-3{u} libgstreamer-plugins-good1.0-0{u} libgupnp-1.0-4{u} libgupnp-igd-1.0-4{u} libgxps2{u} libiec61883-0{u} liblilv-0-0{u} 
  liblua5.3-0{u} libmediaart-2.0-0{u} libmjpegutils-2.1-0{u} libmms0{u} libmodplug1{u} libmpeg2encpp-2.1-0{u} libmplex2-2.1-0{u} libnice10{u} libnm-gtk0{u} libnss-myhostname{u} libofa0{u} 
  librhythmbox-core10{u} libsbc1{u} libserd-0-0{u} libsgutils2-2{u} libsord-0-0{u} libsoundtouch1{u} libspandsp2{u} libspectre1{u} libsratom-0-0{u} libsrtp2-1{u} libtimezonemap-data{u} libtimezonemap1{u} 
  libtotem-plparser-common{u} libtotem-plparser18{u} libtotem0{u} libunity-control-center1{u} libv4l-0{u} libv4lconvert0{u} libvisual-0.4-0{u} libvo-aacenc0{u} libwhoopsie-preferences0{u} 
  libwildmidi-config{u} libwildmidi2{u} libzbar0{u} media-player-info{u} python3-mako{u} python3-markupsafe{u} realmd{u} rhythmbox{a} rhythmbox-data{u} rhythmbox-plugin-alternative-toolbar{a} 
  rhythmbox-plugin-zeitgeist{a} rhythmbox-plugins{a} totem{a} totem-common{u} totem-plugins{a} ubuntu-system-service{u} unity-control-center{a} whoopsie-preferences{u} 
0 packages upgraded, 4 newly installed, 101 to remove and 4 not upgraded.
Need to get 21.5 MB of archives. After unpacking 57.5 MB will be freed.
Do you want to continue? [Y/n/?]

So it wants to remove 101 packages and install 4 other ones which don’t seem related to wine-staging. Also some of the packages that it wants to remove seem important to me – like ubuntu-system-service. Is it safe to proceed ot this will break my system?

I recently upgraded from 17.10 to 18.04 and I have also updated the kernel to 4.17.9-041709-generic. I am on a 64-bit system. Everything seems ok apart form the fact that sometimes after resuming from a locked screen the desktop is frozen, so I have to restart. I have looked for simialr issues on the internet, but I didn’t find anything.


Get this bounty!!!

#StackBounty: #apt #package-management #dpkg #hashsum VirutalBox: apt download / hashing problem (APT Hash Sum Mismatch)

Bounty: 50

I’m trying to install docker with apt from the https://download.docker.com/linux/debian/ repo.

Unfortunately installation always fails with a hash mismatch warning. I have already tried everything suggested in this post https://askubuntu.com/questions/41605/trouble-downloading-packages-list-due-to-a-hash-sum-mismatch-error without any success.

The thing is when I compare the hash of the following error

Fetched 21.4 MB in 17s (1,290 kB/s)                                                                                          
E: Failed to fetch https://download.docker.com/linux/debian/dists/buster/pool/stable/amd64/containerd.io_1.2.13-2_amd64.deb  Hash Sum mismatch
   Hashes of expected file:
    - SHA512:e0432c524abf9d915d42eab87c0a6cf4bd589cf2f250652253f98099c7961196f59ea0eb3f5683b05eafd969254e614739dc5681da0573b09a2eab64ab4efcfd
    - SHA256:71209f4a958d94639cba81ba3469d0aa9eff3da484106580959f5cf1fd116666
    - SHA1:08fd3a4a4e82a1c0452c6bbd5803b19315c7e968 [weak]
    - MD5Sum:2ed3788e04a8a8787ea83b8b3a00152f [weak]
    - Filesize:21404482 [weak]
   Hashes of received file:
    - SHA512:24c80b4371056e0b7c34a7e9abde3ee62ecfb8ee5dbbb8db4a48104b16574749588ca00f71bc4d7c4fe148a9f706e86a9a2b4ac1f5f7955bfb316950f093de49
    - SHA256:81753f427efcc308215d8a604e020743ab86ff2c45d67d86f35291d14550e203
    - SHA1:316d0bbe37b28c9da64bfa263e2b31a3bbe7199e [weak]
    - MD5Sum:8dacbbff65f077d567ab1bff2cc2ad4b [weak]
    - Filesize:21404482 [weak]
   Last modification reported: Fri, 15 May 2020 03:23:56 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

with the output of md5sum containerd.io_1.2.13-2_amd64.deb (file downloaded manually from https://download.docker.com/linux/debian/dists/buster/pool/stable/amd64/containerd.io_1.2.13-2_amd64.deb)

I get the md5 hash 2ed3788e04a8a8787ea83b8b3a00152f containerd.io_1.2.13-2_amd64.deb which is exactly what apt claims is the expected value.

So my only guess is that apt is either downloading something wrong or hashes the wrong way. This sound quite strange to me and I could not find any help searching for this.

Here is my sources.list

$ cat /etc/apt/sources.list
# 

# deb cdrom:[Official Debian GNU/Linux Live 10.4.0 xfce 2020-05-09T10:59]/ buster main

# deb cdrom:[Official Debian GNU/Linux Live 10.4.0 xfce 2020-05-09T10:59]/ buster main

deb http://ftp.tu-clausthal.de/debian/ buster main
deb-src http://ftp.tu-clausthal.de/debian/ buster main

deb http://security.debian.org/debian-security buster/updates main
deb-src http://security.debian.org/debian-security buster/updates main

# buster-updates, previously known as 'volatile'
deb http://ftp.tu-clausthal.de/debian/ buster-updates main
deb-src http://ftp.tu-clausthal.de/debian/ buster-updates main

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
deb [arch=amd64] https://download.docker.com/linux/debian buster stable

Debian is running in a virtual machine. Host system is Windows 10.

Thanks for any advice!


Get this bounty!!!

#StackBounty: #apt #package-management #dpkg #hashsum apt download / hashing problem (APT Hash Sum Mismatch)

Bounty: 50

I’m trying to install docker with apt from the https://download.docker.com/linux/debian/ repo.

Unfortunately installation always fails with a hash mismatch warning. I have already tried everything suggested in this post https://askubuntu.com/questions/41605/trouble-downloading-packages-list-due-to-a-hash-sum-mismatch-error without any success.

The thing is when I compare the hash of the following error

Fetched 21.4 MB in 17s (1,290 kB/s)                                                                                          
E: Failed to fetch https://download.docker.com/linux/debian/dists/buster/pool/stable/amd64/containerd.io_1.2.13-2_amd64.deb  Hash Sum mismatch
   Hashes of expected file:
    - SHA512:e0432c524abf9d915d42eab87c0a6cf4bd589cf2f250652253f98099c7961196f59ea0eb3f5683b05eafd969254e614739dc5681da0573b09a2eab64ab4efcfd
    - SHA256:71209f4a958d94639cba81ba3469d0aa9eff3da484106580959f5cf1fd116666
    - SHA1:08fd3a4a4e82a1c0452c6bbd5803b19315c7e968 [weak]
    - MD5Sum:2ed3788e04a8a8787ea83b8b3a00152f [weak]
    - Filesize:21404482 [weak]
   Hashes of received file:
    - SHA512:24c80b4371056e0b7c34a7e9abde3ee62ecfb8ee5dbbb8db4a48104b16574749588ca00f71bc4d7c4fe148a9f706e86a9a2b4ac1f5f7955bfb316950f093de49
    - SHA256:81753f427efcc308215d8a604e020743ab86ff2c45d67d86f35291d14550e203
    - SHA1:316d0bbe37b28c9da64bfa263e2b31a3bbe7199e [weak]
    - MD5Sum:8dacbbff65f077d567ab1bff2cc2ad4b [weak]
    - Filesize:21404482 [weak]
   Last modification reported: Fri, 15 May 2020 03:23:56 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

with the output of md5sum containerd.io_1.2.13-2_amd64.deb (file downloaded manually from https://download.docker.com/linux/debian/dists/buster/pool/stable/amd64/containerd.io_1.2.13-2_amd64.deb)

I get the md5 hash 2ed3788e04a8a8787ea83b8b3a00152f containerd.io_1.2.13-2_amd64.deb which is exactly what apt claims is the expected value.

So my only guess is that apt is either downloading something wrong or hashes the wrong way. This sound quite strange to me and I could not find any help searching for this.

Thanks for any advice!


Get this bounty!!!

#StackBounty: #16.04 #package-management #python How to install tkinter for python 3.8?

Bounty: 50

I have Python 3.8 on Ubuntu 16.04.

I installed python3-tk (it is required for showing plots in matplotlib):

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-tk is already the newest version (3.5.1-1).
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.

and python3.8-tk:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3.8-tk is already the newest version (3.8.2-1+xenial1).
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.

But it is not found:

$ python3.8 -m tkinter
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/runpy.py", line 184, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/local/lib/python3.8/runpy.py", line 143, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/usr/local/lib/python3.8/runpy.py", line 110, in _get_module_details
    __import__(pkg_name)
  File "/usr/local/lib/python3.8/tkinter/__init__.py", line 36, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'

What is the correct way to install it?


Get this bounty!!!

#StackBounty: #apt #package-management #dpkg #debian dpkg: error processing package linux-firmware (–configure)

Bounty: 50

I get the following error, when i install/uninstall a package on my Ubuntu 16.04 machine. Please help.

sudo apt-get install slack
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  amd64-microcode intel-microcode iucode-tool libstd-rust-1.36 linux-headers-4.15.0-76 linux-headers-4.15.0-76-generic linux-headers-generic-hwe-16.04
  linux-modules-4.15.0-76-generic thermald
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  slack
0 upgraded, 1 newly installed, 0 to remove and 255 not upgraded.
3 not fully installed or removed.
Need to get 1,550 B of archives.
After this operation, 25.6 kB of additional disk space will be used.
Get:1 https://packagecloud.io/slacktechnologies/slack/debian jessie/main amd64 slack all 1.2.1 [1,550 B]
Fetched 1,550 B in 4s (361 B/s)   
Selecting previously unselected package slack.
(Reading database ... 438564 files and directories currently installed.)
Preparing to unpack .../archives/slack_1.2.1_all.deb ...
Unpacking slack (1.2.1) ...
Setting up initramfs-tools (0.122ubuntu8.14) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.157.22) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-58-generic
cp: cannot create regular file '/var/tmp/mkinitramfs_LmQYTP/init': No such file or directory
/usr/sbin/mkinitramfs:276: no such file or directory: /var/tmp/mkinitramfs_LmQYTP/conf/arch.conf
mkdir: cannot create directory ‘/var/tmp/mkinitramfs_LmQYTP//conf’: File exists
cp: failed to access '/var/tmp/mkinitramfs_LmQYTP//conf/conf.d': Not a directory
touch: cannot touch '/var/tmp/mkinitramfs_LmQYTP/etc/fstab': No such file or directory
ln: failed to create symbolic link '/var/tmp/mkinitramfs_LmQYTP/etc/mtab': No such file or directory
mkdir: cannot create directory ‘/var/tmp/mkinitramfs_LmQYTP/sbin’: File exists
E: /usr/share/initramfs-tools/hooks/brltty failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.15.0-58-generic with 1.
dpkg: error processing package linux-firmware (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up linux-image-4.15.0-72-generic (4.15.0-72.81~16.04.1) ...
Setting up slack (1.2.1) ...
Processing triggers for initramfs-tools (0.122ubuntu8.14) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-58-generic
cp: cannot create regular file '/var/tmp/mkinitramfs_OIbFBx//lib/modules/4.15.0-58-generic/kernel/drivers/phy/samsung/phy-exynos-usb2.ko': No such file or directory
cp: cannot create regular file '/var/tmp/mkinitramfs_OIbFBx//lib/modules/4.15.0-58-generic/kernel/drivers/usb/phy/phy-generic.ko': No such file or directory
rm: cannot remove '/var/tmp/mkinitramfs_OIbFBx/lib/modules/4.15.0-58-generic/kernel/drivers': Directory not empty
cp: cannot create regular file '/var/tmp/mkinitramfs_OIbFBx/init': No such file or directory
/usr/sbin/mkinitramfs:276: no such file or directory: /var/tmp/mkinitramfs_OIbFBx/conf/arch.conf
mkdir: cannot create directory ‘/var/tmp/mkinitramfs_OIbFBx//conf’: File exists
cp: failed to access '/var/tmp/mkinitramfs_OIbFBx//conf/conf.d': Not a directory
touch: cannot touch '/var/tmp/mkinitramfs_OIbFBx/etc/fstab': No such file or directory
ln: failed to create symbolic link '/var/tmp/mkinitramfs_OIbFBx/etc/mtab': No such file or directory
mkdir: cannot create directory ‘/var/tmp/mkinitramfs_OIbFBx/sbin’: File exists
E: /usr/share/initramfs-tools/hooks/brltty failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.15.0-58-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for linux-image-4.15.0-72-generic (4.15.0-72.81~16.04.1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.15.0-72-generic
cp: cannot create regular file '/var/tmp/mkinitramfs_c2rv1o//lib/modules/4.15.0-72-generic/kernel/drivers/usb/phy/phy-generic.ko': No such file or directory
rm: cannot remove '/var/tmp/mkinitramfs_c2rv1o/lib/modules/4.15.0-72-generic/kernel/drivers': Directory not empty
cp: cannot create regular file '/var/tmp/mkinitramfs_c2rv1o/init': No such file or directory
/usr/sbin/mkinitramfs:276: no such file or directory: /var/tmp/mkinitramfs_c2rv1o/conf/arch.conf
mkdir: cannot create directory ‘/var/tmp/mkinitramfs_c2rv1o//conf’: File exists
cp: failed to access '/var/tmp/mkinitramfs_c2rv1o//conf/conf.d': Not a directory
touch: cannot touch '/var/tmp/mkinitramfs_c2rv1o/etc/fstab': No such file or directory
ln: failed to create symbolic link '/var/tmp/mkinitramfs_c2rv1o/etc/mtab': No such file or directory
mkdir: cannot create directory ‘/var/tmp/mkinitramfs_c2rv1o/sbin’: File exists
E: /usr/share/initramfs-tools/hooks/brltty failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.15.0-72-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-4.15.0-72-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-firmware
 initramfs-tools
 linux-image-4.15.0-72-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)


Get this bounty!!!

#StackBounty: #14.04 #apt #package-management #upgrade #updates Stuck with broken apt-get unable to update my VPS or do any installations

Bounty: 50

First time posting here since I’ve usually been able to go around and fix my issues with help of google, but this time I think I’m in a bit of a pickle.

I have a VPS running on DigitalOcean which I use for personal projects. I had it set up a long time ago, I think it was even pre-installed by DO for me, possibly.
It’s running Ubuntu 14.04 so I decided it’s time to upgrade it – big mistake.

I ran some casual updates with sudo apt-get update && sudo apt-get upgrade Before running sudo do-release-upgrade.

At one of these the problems started – it seems that apt-get remove is not able to remove old kernel version? But I might be misreading the information absolutely since, sadly, I am not that proficient with Linux updates.

I will try to list all of the command outputs I’ve read might be useful. Any tips on how to get out of this mess are appreciated.

df -hT output:

root@web:~# df -hT

Filesystem     Type      Size  Used Avail Use% Mounted on
udev           devtmpfs  487M  4.0K  487M   1% /dev
tmpfs          tmpfs     100M  344K  100M   1% /run
/dev/vda1      ext4       20G  4.7G   14G  25% /
none           tmpfs     4.0K     0  4.0K   0% /sys/fs/cgroup
none           tmpfs     5.0M     0  5.0M   0% /run/lock
none           tmpfs     497M     0  497M   0% /run/shm
none           tmpfs     100M     0  100M   0% /run/user

Seems I’m good with the space on the server

sudo apt-get autoremove & sudo apt-get remove --purge --auto-remove output:

root@web:~# sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 linux-image-3.13.0-79-generic : Depends: initramfs-tools (>= 0.36ubuntu6) but it is not installed
                                 Recommends: grub-pc or
                                             grub-efi-amd64 or
                                             grub-efi-ia32 or
                                             grub but it is not installed or
                                             lilo (>= 19.1) but it is not installed
 linux-image-3.13.0-83-generic : Depends: initramfs-tools (>= 0.36ubuntu6) but it is not installed
                                 Recommends: grub-pc or
                                             grub-efi-amd64 or
                                             grub-efi-ia32 or
                                             grub but it is not installed or
                                             lilo (>= 19.1) but it is not installed
E: Unmet dependencies. Try using -f.

autoremove with fix flag:

root@web:~# sudo apt-get -f autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  bash-completion cloud-guest-utils coreutils dpkg ifupdown
  init-system-helpers initramfs-tools initramfs-tools-bin initramfs-tools-core
  initscripts klibc-utils libalgorithm-diff-xs-perl libapparmor-perl libblkid1
  libdbd-mysql-perl libdbi-perl libfdisk1 libfile-fcntllock-perl libgcrypt20
  libgpg-error0 libklibc liblocale-gettext-perl libmount1 libmysqlclient20
  libncurses5 libncursesw5 libperl5.22 libselinux1 libsmartcols1
  libsub-name-perl libsystemd0 libtext-charwidth-perl libtext-iconv-perl
  libtinfo5 libudev1 lsb-base perl perl-base perl-modules-5.22 rename
  sysvinit-utils udev util-linux
Suggested packages:
  rdnssd libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl
  rng-tools perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl
  bootlogd sash kbd console-tools util-linux-locales
The following packages will be REMOVED:
  libterm-readkey-perl libtext-soundex-perl linux-headers-3.13.0-79
  linux-headers-3.13.0-79-generic linux-image-3.13.0-79-generic
  linux-image-extra-3.13.0-79-generic mysql-client-5.5 perl-modules
The following NEW packages will be installed:
  initramfs-tools initramfs-tools-core libfdisk1 libgcrypt20 libmysqlclient20
  libperl5.22 libsmartcols1 libsystemd0 perl-modules-5.22 rename udev
The following packages will be upgraded:
  bash-completion cloud-guest-utils coreutils dpkg ifupdown
  init-system-helpers initramfs-tools-bin initscripts klibc-utils
  libalgorithm-diff-xs-perl libapparmor-perl libblkid1 libdbd-mysql-perl
  libdbi-perl libfile-fcntllock-perl libgpg-error0 libklibc
  liblocale-gettext-perl libmount1 libncurses5 libncursesw5 libselinux1
  libsub-name-perl libtext-charwidth-perl libtext-iconv-perl libtinfo5
  libudev1 lsb-base perl perl-base sysvinit-utils util-linux
32 upgraded, 11 newly installed, 8 to remove and 277 not upgraded.
4 not fully installed or removed.
Need to get 0 B/16.2 MB of archives.
After this operation, 279 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Extracting templates from packages: 100%
(Reading database ... 143659 files and directories currently installed.)
Removing linux-image-extra-3.13.0-79-generic (3.13.0-79.123) ...
depmod: FATAL: could not load /boot/System.map-3.13.0-79-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-79-generic /boot/vmlinuz-3.13.0-79-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-79-generic /boot/vmlinuz-3.13.0-79-generic
/etc/kernel/postinst.d/initramfs-tools: 33: /etc/kernel/postinst.d/initramfs-tools: update-initramfs: not found
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 127
dpkg: error processing package linux-image-extra-3.13.0-79-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Removing linux-image-3.13.0-79-generic (3.13.0-79.123) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-79-generic /boot/vmlinuz-3.13.0-79-generic
/etc/kernel/postrm.d/initramfs-tools: 33: /etc/kernel/postrm.d/initramfs-tools: update-initramfs: not found
run-parts: /etc/kernel/postrm.d/initramfs-tools exited with return code 127
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.13.0-79-generic.postrm line 328.
dpkg: error processing package linux-image-3.13.0-79-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-3.13.0-79-generic
 linux-image-3.13.0-79-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo apt-get -f install output:

root@web:~# sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  bash-completion cloud-guest-utils coreutils dpkg ifupdown
  init-system-helpers initramfs-tools initramfs-tools-bin initramfs-tools-core
  initscripts klibc-utils libalgorithm-diff-xs-perl libapparmor-perl libblkid1
  libdbd-mysql-perl libdbi-perl libfdisk1 libfile-fcntllock-perl libgcrypt20
  libgpg-error0 libklibc liblocale-gettext-perl libmount1 libmysqlclient20
  libncurses5 libncursesw5 libperl5.22 libselinux1 libsmartcols1
  libsub-name-perl libsystemd0 libtext-charwidth-perl libtext-iconv-perl
  libtinfo5 libudev1 lsb-base perl perl-base perl-modules-5.22 rename
  sysvinit-utils udev util-linux
Suggested packages:
  rdnssd libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl
  rng-tools perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl
  bootlogd sash kbd console-tools util-linux-locales
The following packages will be REMOVED:
  libterm-readkey-perl libtext-soundex-perl linux-image-3.13.0-79-generic
  linux-image-extra-3.13.0-79-generic mysql-client-5.5 perl-modules
The following NEW packages will be installed:
  initramfs-tools initramfs-tools-core libfdisk1 libgcrypt20 libmysqlclient20
  libperl5.22 libsmartcols1 libsystemd0 perl-modules-5.22 rename udev
The following packages will be upgraded:
  bash-completion cloud-guest-utils coreutils dpkg ifupdown
  init-system-helpers initramfs-tools-bin initscripts klibc-utils
  libalgorithm-diff-xs-perl libapparmor-perl libblkid1 libdbd-mysql-perl
  libdbi-perl libfile-fcntllock-perl libgpg-error0 libklibc
  liblocale-gettext-perl libmount1 libncurses5 libncursesw5 libselinux1
  libsub-name-perl libtext-charwidth-perl libtext-iconv-perl libtinfo5
  libudev1 lsb-base perl perl-base sysvinit-utils util-linux
32 upgraded, 11 newly installed, 6 to remove and 277 not upgraded.
4 not fully installed or removed.
Need to get 0 B/16.2 MB of archives.
After this operation, 202 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Extracting templates from packages: 100%
(Reading database ... 143659 files and directories currently installed.)
Removing linux-image-extra-3.13.0-79-generic (3.13.0-79.123) ...
depmod: FATAL: could not load /boot/System.map-3.13.0-79-generic: No such file or directory
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-79-generic /boot/vmlinuz-3.13.0-79-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-79-generic /boot/vmlinuz-3.13.0-79-generic
/etc/kernel/postinst.d/initramfs-tools: 33: /etc/kernel/postinst.d/initramfs-tools: update-initramfs: not found
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 127
dpkg: error processing package linux-image-extra-3.13.0-79-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Removing linux-image-3.13.0-79-generic (3.13.0-79.123) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-79-generic /boot/vmlinuz-3.13.0-79-generic
/etc/kernel/postrm.d/initramfs-tools: 33: /etc/kernel/postrm.d/initramfs-tools: update-initramfs: not found
run-parts: /etc/kernel/postrm.d/initramfs-tools exited with return code 127
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.13.0-79-generic.postrm line 328.
dpkg: error processing package linux-image-3.13.0-79-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 linux-image-extra-3.13.0-79-generic
 linux-image-3.13.0-79-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

ls -l /boot output:

root@web:~# ls -l /boot
total 70752
-rw-r--r-- 1 root root  1165578 Mar 10  2016 abi-3.13.0-83-generic
-rw-r--r-- 1 root root   166221 May  9  2019 config-3.13.0-170-generic
-rw-r--r-- 1 root root   165918 Mar 10  2016 config-3.13.0-83-generic
-rw-r--r-- 1 root root   191071 Nov 13 22:00 config-4.4.0-170-generic
drwxr-xr-x 5 root root     4096 Dec 29 08:09 grub
-rw-r--r-- 1 root root 20352301 Dec 29 08:05 initrd.img-3.13.0-170-generic
-rw-r--r-- 1 root root 20176312 Dec 29 08:05 initrd.img-3.13.0-79-generic
-rw-r--r-- 1 root root   176500 Mar 12  2014 memtest86+.bin
-rw-r--r-- 1 root root   178176 Mar 12  2014 memtest86+.elf
-rw-r--r-- 1 root root   178680 Mar 12  2014 memtest86+_multiboot.bin
-rw------- 1 root root  3418683 May  9  2019 System.map-3.13.0-170-generic
-rw------- 1 root root  3393725 Mar 10  2016 System.map-3.13.0-83-generic
-rw------- 1 root root  3913902 Nov 13 22:00 System.map-4.4.0-170-generic
-rw------- 1 root root  5909496 May 14  2019 vmlinuz-3.13.0-170-generic
-rw------- 1 root root  5827776 Mar 10  2016 vmlinuz-3.13.0-83-generic
-rw------- 1 root root  7208856 Nov 14 10:33 vmlinuz-4.4.0-170-generic

uname -a output:

root@web:~# uname -a
Linux web 3.13.0-83-generic #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

dpkg -l | grep linux-image output:

root@web:~# dpkg -l | grep linux-image
ii  linux-image-3.13.0-170-generic          3.13.0-170.220                                  amd64        Signed kernel image generic
rc  linux-image-3.13.0-77-generic           3.13.0-77.121                                   amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rH  linux-image-3.13.0-79-generic           3.13.0-79.123                                   amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
iU  linux-image-3.13.0-83-generic           3.13.0-83.127                                   amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
iF  linux-image-4.4.0-170-generic           4.4.0-170.199                                   amd64        Signed kernel image generic
rc  linux-image-extra-3.13.0-77-generic     3.13.0-77.121                                   amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
rH  linux-image-extra-3.13.0-79-generic     3.13.0-79.123                                   amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
ii  linux-image-generic                     4.4.0.170.178                                   amd64        Generic Linux kernel image

dpkg -l | egrep -v '^ii|rc' output:

root@web:~# dpkg -l | egrep -v '^ii|rc'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
+++-=======================================-===============================================-============-===============================================================================
rH  linux-image-3.13.0-79-generic           3.13.0-79.123                                   amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rH  linux-image-3.13.0-83-generic           3.13.0-83.127                                   amd64        Linux kernel image for version 3.13.0 on 64 bit x86 SMP
iF  linux-image-4.4.0-170-generic           4.4.0-170.199                                   amd64        Signed kernel image generic
rH  linux-image-extra-3.13.0-79-generic     3.13.0-79.123                                   amd64        Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP


Get this bounty!!!

#StackBounty: #16.04 #package-management #docker Alternative to Docker that is less restrictive for maintaining package dependencies

Bounty: 50

I work on robotics on ROS running with Xenial, but this applies to any application running on Ubuntu. With a team of engineers, its rather hard to keep everyone’s test station uniform in package versions. A while back, we had a testbed break completely since a new update/upgrade changed much of a package functionality.

I want to avoid this and have a solution that allows me to duplicate these testbeds with ease.

I realize that Docker is the popular solution for this, but the container solution is a little bit too restrictive for my needs. I don’t mind reinstalling drivers and etc and I’m finding it cumbersome to deal with Docker specific issues in getting my original testbed running(especially as it requires multi-containers).

Is there a solution available that can achieve my needs without going as far as a container like Docker?

The dumb method would just be clone my entire testbed…maybe that’s still the best for me?


Get this bounty!!!

#StackBounty: #package-management #19.04 #sensors #held-packages libsensors5 or libsensors-config upgrade problem

Bounty: 50

After upgrading my Ubuntu from 18.10 to 19.04 some packages were held back but I didn’t really care since I thought the issues will be resolved in a few weeks when dependencies will be upgradeable to proper versions for my OS. After a while that didn’t happen and I’ve poked around these “held back” packages and see a problem, that also explains why my system load indicator widget and other sensors dependent widgets stopped working.

There are only 2 packages left that are held back: libsnmp30 sysstat. Both depend in one way or the other on libsensors5 which in turn depends on libsensors-config. Now I could try installing libsensors-config via sudo apt install libsensors-config but the (last) output that I get makes me think that’s not a good idea, right?

$ sudo apt install sysstat
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 sysstat : Depends: libsensors5 (>= 1:3.5.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt install libsensors5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 libsensors5 : Depends: libsensors-config but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
$ sudo apt install libsensors-config
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  accountsservice-ubuntu-schemas acl activity-log-manager aglfn apg appmenu-qt apt-config-icons-large apt-config-icons-large-hidpi apturl-common argyll argyll-ref bamfdaemon blender-data breeze-cursor-theme breeze-gtk-theme calculix-ccx catdoc cheese-common cinnamon-desktop-data cinnamon-l10n colord-data debconf-kde-data docbook-xml
  docbook-xsl epstool evolution-data-server-common fonts-dejavu fonts-dejavu-extra fonts-freefont-otf fonts-hack fonts-noto-hinted fprintd freecad-common freecad-runtime gdal-data geoclue geoclue-ubuntu-geoip gir1.2-accounts-1.0 gir1.2-accountsservice-1.0 gir1.2-gck-1 gir1.2-gcr-3 gir1.2-gdata-0.0 gir1.2-gdm-1.0
  gir1.2-gnomebluetooth-1.0 gir1.2-gstreamer-1.0 gir1.2-gweather-3.0 gir1.2-javascriptcoregtk-4.0 gir1.2-nm-1.0 gir1.2-nma-1.0 gir1.2-signon-1.0 gir1.2-totemplparser-1.0 gir1.2-upowerglib-1.0 gist gjs gkbd-capplet gnome-calculator gnome-control-center-faces gnome-screensaver gnome-session-common gnome-todo-common gnome-video-effects
  gnuplot-data grilo-plugins-0.3-base gvfs-libs haveged hddtemp hdf5-helpers hplip-data hwdata ibverbs-providers ieee-data indicator-appmenu indicator-datetime indicator-keyboard indicator-messages indicator-power indicator-printers indicator-session indicator-sound inxi jayatana kactivities-bin kate5-data kde-cli-tools-data
  kde-style-qtcurve-qt4 kdelibs5-data kdeplasma-addons-data kdiff3-doc kdoctools5 khotkeys-data kio-extras-data kpackagetool5 ktexteditor-data ktorrent-data kwayland-data kwin-data libaccounts-glib0 libaccounts-qt5-1 libaec-dev libaec0 libappstreamqt2 libaribb24-0 libarmadillo9 libarpack2 libattica0.4 libbamf3-2
  libbasicusageenvironment1 libblas-dev libblosc1 libboost-program-options1.67.0 libboost-python1.67.0 libboost-regex1.67.0 libbrotli1 libcaf-openmpi-3 libcamel-1.2-62 libcddb2 libcdio-cdda2 libcdio-paranoia2 libcfitsio7 libcharls2 libchm1 libcinnamon-desktop4 libclang1-8 libclutter-1.0-common libcoarrays-openmpi-dev libcogl-common
  libcolord-gtk1 libcolorhug2 libcolumbus1-common libcolumbus1v5 libcue2 libcxsparse3 libdap25 libdapclient6v5 libdazzle-1.0-0 libdbusmenu-qt2 libdcmtk14 libdecoration0 libdlrestrictions1 libdmapsharing-3.0-2 libdmtx0a libdolphinvcs5 libdouble-conversion1 libdrm-dev libdvbpsi10 libebackend-1.2-10 libebml4v5 libebook-1.2-19
  libebook-contacts-1.2-2 libecal-1.2-19 libedata-book-1.2-25 libedata-cal-1.2-29 libedataserver-1.2-24 libeditorconfig0 libegl-mesa0 libegl1 libegl1-mesa libepsilon1 libepub0 libevdev2 libevent-2.1-6 libevent-core-2.1-6 libevent-pthreads-2.1-6 libfabric1 libfakekey0 libfam0 libfcitx-config4 libfcitx-gclient1 libfcitx-utils0 libfltk1.3
  libfprint0 libframe6 libfreeimage3 libfreexl1 libfyba0 libgail-3-0 libgbm1 libgdal20 libgdata-common libgdata22 libgdbm5 libgdcm2.8 libgdm1 libgeis1 libgeoclue0 libgeonames-common libgeonames0 libgeos-3.7.1 libgeos-c1v5 libgeotiff2 libgif7 libgit2-27 libgjs0g libglapi-mesa libgles1 libgles2 libglpk40 libglvnd-core-dev libglvnd0
  libgnome-autoar-0-0 libgnome-todo libgnomekbd-common libgnomekbd8 libgom-1.0-0 libgphoto2-6 libgphoto2-l10n libgphoto2-port12 libgpod-common libgpod4 libgps23 libgrail6 libgrantlee-templates5 libgraphene-1.0-0 libgraphicsmagick++-q16-12 libgraphicsmagick-q16-3 libgrilo-0.3-0 libgroupsock8 libgsettings-qt1 libgsf-1-114 libgsf-1-common
  libgsound0 libhavege1 libhdf4-0-alt libhdf5-103 libhdf5-cpp-103 libhdf5-dev libhdf5-openmpi-103 libhfstospell10 libhttp-parser2.8 libhwloc-dev libhwloc-plugins libhwloc5 libibverbs-dev libibverbs1 libido3-0.1-0 libieee1284-3 libimagequant0 libinput-bin libinput10 libixml10 libjavascriptcoregtk-4.0-18 libjemalloc2 libjpeg-dev
  libjpeg-turbo8-dev libjpeg8-dev libjs-jquery-ui libjsoncpp1 libjxr0 libkaccounts1 libkdecorations2-5v5 libkdecorations2private6 libkdecore5 libkdeui5 libkf5activities5 libkf5activitiesstats1 libkf5archive5 libkf5attica5 libkf5auth-data libkf5balooengine5 libkf5bluezqt-data libkf5bluezqt6 libkf5bookmarks-data libkf5calendarevents5
  libkf5codecs-data libkf5codecs5 libkf5completion-data libkf5config-bin libkf5config-data libkf5configcore5 libkf5configgui5 libkf5configwidgets-data libkf5coreaddons-data libkf5coreaddons5 libkf5dbusaddons-bin libkf5dbusaddons-data libkf5dbusaddons5 libkf5declarative-data libkf5dnssd-data libkf5dnssd5 libkf5doctools5
  libkf5emoticons-data libkf5filemetadata-bin libkf5filemetadata-data libkf5filemetadata3 libkf5globalaccel-data libkf5guiaddons5 libkf5holidays-data libkf5holidays5 libkf5i18n-data libkf5i18n5 libkf5iconthemes-data libkf5itemmodels5 libkf5itemviews-data libkf5jobwidgets-data libkf5js5 libkf5jsapi5 libkf5jsembed-data libkf5kcmutils-data
  libkf5kdcraw5 libkf5kdelibs4support-data libkf5kexiv2-15.0.0 libkf5khtml-data libkf5kiontlm5 libkf5kipi-data libkf5konq-data libkf5networkmanagerqt6 libkf5newstuff-data libkf5notifications-data libkf5notifyconfig-data libkf5package-data libkf5package5 libkf5parts-data libkf5people-data libkf5peoplebackend5 libkf5prison5 libkf5pty-data
  libkf5pty5 libkf5screen-bin libkf5screen7 libkf5service-data libkf5service5 libkf5solid5-data libkf5sonnet5-data libkf5sonnetcore5 libkf5su-data libkf5syndication5abi1 libkf5syntaxhighlighting-data libkf5syntaxhighlighting5 libkf5sysguard-data libkf5texteditor5-libjs-underscore libkf5textwidgets-data libkf5threadweaver5
  libkf5unitconversion-data libkf5unitconversion5 libkf5wallet-data libkf5waylandclient5 libkf5waylandserver5 libkf5widgetsaddons-data libkf5windowsystem-data libkf5xmlgui-bin libkf5xmlgui-data libkf5xmlrpcclient-data libkfontinst5 libkfontinstui5 libkmlbase1 libkmldom1 libkmlengine1 libksgrd7 libkwinglutils12 libkwinxrenderutils12
  libkworkspace5-5 liblapack-dev libldb1 liblightdm-gobject-1-0 liblirc-client0 liblivemedia64 liblmdb0 liblog4cplus-1.1-9 liblua5.2-0 libmad0 libmarkdown2 libmatroska6v5 libmbedcrypto3 libmbedtls12 libmbedx509-0 libmedc11 libmediaart-2.0-0 libmetacity1 libmicrodns0 libminizip1 libmozjs-60-0 libmtdev1 libmtp-common libmtp-runtime
  libmtp9 libmuparser2v5 libmysqlclient20 libncurses-dev libnemo-extension1 libnetcdf-c++4 libnetcdf13 libnfs12 libnl-3-dev libnl-route-3-200 libnl-route-3-dev libnm-glib4 libnm-gtk0 libnm-util2 libnuma-dev libnux-4.0-common liboauth0 libocct-foundation-7.3 libocct-modeling-algorithms-7.3 libocct-modeling-data-7.3 libodbc1 libogdi3.2
  libopencolorio1v5 libopencv-core3.2 libopencv-imgcodecs3.2 libopencv-imgproc3.2 libopencv-videoio3.2 libopengl0 libopenimageio2.0 libopenmpi-dev libopenmpi3 libopenmpt-modplug1 libopenvdb5.2 libpackagekitqt5-1 libpam-fprintd libpam-kwallet-common libpam-kwallet5 libpcre2-16-0 libperl5.26 libphonenumber7 libplacebo7
  libplasma-geolocation-interface5 libpmix2 libpoppler-qt5-1 libpowerdevilui5 libprocesscore7 libproj13 libprotobuf-lite17 libproxy-tools libpsm-infinipath1 libpsm2-2 libpthread-stubs0-dev libpyside2-py3-5.11 libqalculate20 libqalculate20-data libqapt3 libqca-qt5-2 libqca-qt5-2-plugins libqhull7 libqmobipocket2 libqrencode4 libqrupdate1
  libqscintilla2-qt5-l10n libqt4-dbus libqt4-declarative libqt4-network libqt4-script libqt4-svg libqt4-xml libqt4-xmlpatterns libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5gui5-gles libqt5multimedia5 libqt5network5 libqt5positioning5 libqt5qml5 libqt5script5 libqt5sensors5 libqt5sql5 libqt5sql5-sqlite libqt5test5 libqt5texttospeech5
  libqt5waylandclient5 libqt5webchannel5 libqt5webengine-data libqt5x11extras5 libqt5xml5 libqt5xmlpatterns5 libqtcurve-utils2 libqtdbus4 libqtgui4 librdmacm1 libre2-5 libreadline-dev librecad-data libresid-builder0c2a libsane-common libscim8v5 libsdl-image1.2 libsdl2-2.0-0 libsgutils2-2 libshiboken2-py3-5.11 libsidplay2 libsignon-glib1
  libsignon-plugins-common1 libsignon-qt5-1 libsmbclient libsnapd-qt1 libsnmp-base libsocket++1 libspatialaudio0 libspatialite7 libspnav0 libspooles2.2 libssh2-1 libsuperlu5 libsysmetrics1 libsz2 libtagc0 libtalloc2 libtbb2 libtevent0 libtext-unidecode-perl libtimezonemap-data libtimezonemap1 libtinyxml2.6.2v5 libtorrent-rasterbar9
  libtracker-control-2.0-0 libtracker-miner-2.0-0 libtracker-sparql-2.0-0 libunity-control-center1 libunity-gtk2-parser0 libunity-gtk3-parser0 libunity-misc4 libunity-settings-daemon1 libupnp13 liburiparser1 liburl-dispatcher1 libusageenvironment3 libva-wayland2 libvlc-bin libvlc5 libvlccore9 libvoikko1 libwayland-server0 libwbclient0
  libwoff1 libwxbase3.0-0v5 libx11-dev libx11-xcb-dev libxapp1 libxatracker2 libxau-dev libxcb-composite0 libxcb-cursor0 libxcb-damage0 libxcb-dpms0 libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0 libxcb-glx0-dev libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present-dev libxcb-randr0-dev libxcb-record0 libxcb-render-util0
  libxcb-render0-dev libxcb-res0 libxcb-shape0 libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0 libxcb-xinput0 libxcb-xkb1 libxcb-xv0 libxcb1-dev libxdamage-dev libxdmcp-dev libxerces-c3.2 libxext-dev libxfixes-dev libxfont2 libxkbcommon-x11-0 libxklavier16 libxml2-utils libxshmfence-dev libxvmc1 libxxf86dga1
  libxxf86vm-dev libyaml-cpp0.6 libzeitgeist-1.0-1 libzipios++0v5 mesa-common-dev mesa-vulkan-drivers metacity-common mobile-broadband-provider-info mysql-common nautilus-data nemo-data network-manager-gnome octave-common odbcinst odbcinst1debian2 openmpi-bin openmpi-common oxygen-sounds perl-modules-5.26 pgadmin3-data pgagent
  plasma-desktop-data plasma-discover-common policykit-1-gnome powerdevil-data printer-driver-postscript-hp proj-bin proj-data python-matplotlib-data python3-bs4 python3-cycler python3-debconf python3-feedparser python3-html5lib python3-kiwisolver python3-lxml python3-macaroonbakery python3-mako python3-markupsafe python3-matplotlib
  python3-numpy python3-olefile python3-pexpect python3-pil python3-protobuf python3-ptyprocess python3-pyparsing python3-pyside2.qtcore python3-pyside2.qtxml python3-pyside2uic python3-renderpm python3-reportlab python3-reportlab-accel python3-rfc3339 python3-sip python3-soupsieve python3-talloc python3-tz python3-webencodings qdbus
  qdbus-qt5 qml-module-org-kde-bluezqt qml-module-org-kde-kholidays qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings qml-module-qtqml-models2 qt-at-spi qt5-gtk-platformtheme qt5-image-formats-plugins qtchooser qtspeech5-flite-plugin qttranslations5-l10n ruby-json samba-libs sgml-base sgml-data shiboken2 shotwell-common
  signon-plugin-oauth2 sni-qt socat sonnet-plugins sshfs switcheroo-control tex-common texinfo totem-common tracker tracker-extract tracker-miner-fs tree ubuntu-system-service ubuntu-touch-sounds unity-asset-pool unity-gtk-module-common unity-gtk2-module unity-gtk3-module unity-lens-applications unity-lens-files unity-lens-music
  unity-lens-photos unity-lens-video unity-schemas unity-scope-calculator unity-scope-chromiumbookmarks unity-scope-colourlovers unity-scope-devhelp unity-scope-firefoxbookmarks unity-scope-home unity-scope-manpages unity-scope-openclipart unity-scope-texdoc unity-scope-tomboy unity-scope-video-remote unity-scope-virtualbox
  unity-scope-yelp unity-scope-zotero unity-scopes-master-default unity-scopes-runner unity-services update-notifier-common vlc-bin vlc-data vlc-l10n vlc-plugin-base vlc-plugin-notify vlc-plugin-samba vlc-plugin-video-splitter x11-apps x11-session-utils x11-xkb-utils x11proto-core-dev x11proto-damage-dev x11proto-dev x11proto-fixes-dev
  x11proto-xext-dev x11proto-xf86vidmode-dev xapps-common xfonts-base xfonts-scalable xinit xinput xml-core xorg-sgml-doctools xserver-common xserver-xorg-legacy xtrans-dev yelp-xsl zenity-common zlib1g-dev
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libqt5gui5-gles
Suggested packages:
  qtwayland5 lm-sensors
Recommended packages:
  libqt5svg5
The following packages will be REMOVED
  apturl baloo-kf5 blender bluedevil breeze browser-plugin-freshplayer-pepperflash cheese colord compiz compiz-gnome compiz-plugins-default copyq debconf-kde-helper deja-dup dolphin drkonqi evolution-data-server ffmpegthumbs frameworkintegration freecad freecad-python3 gdm3 gir1.2-gst-plugins-base-1.0 gir1.2-mutter-4 gir1.2-rb-3.0
  gir1.2-totem-1.0 gir1.2-webkit2-4.0 gnome-calendar gnome-color-manager gnome-control-center gnome-getting-started-docs gnome-initial-setup gnome-online-accounts gnome-session-bin gnome-shell gnome-shell-extension-appindicator gnome-shell-extension-desktop-icons gnome-shell-extension-ubuntu-dock gnome-startup-applications gnome-todo
  gnome-user-docs gnuplot-qt gstreamer1.0-clutter-3.0 gstreamer1.0-gl gstreamer1.0-gtk3 gvfs gvfs-backends gvfs-daemons gvfs-fuse gwenview hplip hud indicator-bluetooth kaccounts-providers kactivitymanagerd kamera kate kde-baseapps kde-cli-tools kde-config-gtk-style kde-config-screenlocker kde-config-sddm kde-plasma-desktop
  kde-spectacle kde-style-breeze kde-style-breeze-qt4 kde-style-oxygen-qt5 kde-style-qtcurve-qt5 kdeconnect kded5 kdegraphics-thumbnailers kdialog kdiff3 keditbookmarks kfind kgamma5 khelpcenter khotkeys kimageformat-plugins kinfocenter kinit kio kio-extras kmenuedit konqueror konsole konsole-kpart kpackagelauncherqml kross krusader
  kscreen ksshaskpass ktexteditor-katepart ktorrent kwalletmanager kwayland-integration kwin-common kwin-style-breeze kwin-x11 kwrite kwrited libavdevice58 libcheese-gtk25 libcheese8 libclutter-1.0-0 libclutter-gst-3.0-0 libclutter-gtk-1.0-0 libcogl-pango20 libcogl-path20 libcogl20 libcoin80c libcolorcorrect5 libdbusmenu-qt5-2
  libdebconf-kde1 libedataserverui-1.2-2 libfltk-gl1.3 libfreecad-python3-0.18 libgl1 libgl1-mesa-dev libgl1-mesa-dri libgl1-mesa-glx libgl2ps1.4 libglew2.1 libglewmx1.13 libglu1-mesa libglvnd-dev libglx-mesa0 libglx0 libgoa-backend-1.0-1 libgstreamer-gl1.0-0 libhpmud0 libkf5auth5 libkf5authcore5 libkf5baloo5 libkf5baloowidgets-bin
  libkf5baloowidgets-data libkf5baloowidgets5 libkf5bookmarks5 libkf5completion5 libkf5configwidgets5 libkf5crash5 libkf5declarative5 libkf5emoticons-bin libkf5emoticons5 libkf5globalaccel-bin libkf5globalaccel5 libkf5globalaccelprivate5 libkf5iconthemes-bin libkf5iconthemes5 libkf5idletime5 libkf5itemviews5 libkf5jobwidgets5
  libkf5jsembed5 libkf5kcmutils5 libkf5kdelibs4support5 libkf5kdelibs4support5-bin libkf5khtml-bin libkf5khtml5 libkf5kiocore5 libkf5kiofilewidgets5 libkf5kiogui5 libkf5kiowidgets5 libkf5kipi32.0.0 libkf5kirigami2-5 libkf5konq6 libkf5krosscore5 libkf5krossui5 libkf5newstuff5 libkf5newstuffcore5 libkf5notifications5 libkf5notifyconfig5
  libkf5parts-plugins libkf5parts5 libkf5people5 libkf5peoplewidgets5 libkf5plasma5 libkf5plasmaquick5 libkf5plotting5 libkf5purpose-bin libkf5purpose5 libkf5quickaddons5 libkf5runner5 libkf5service-bin libkf5solid5 libkf5sonnetui5 libkf5style5 libkf5su-bin libkf5su5 libkf5texteditor-bin libkf5texteditor5 libkf5textwidgets5
  libkf5wallet-bin libkf5wallet5 libkf5webkit5 libkf5widgetsaddons5 libkf5windowsystem5 libkf5xmlgui5 libkf5xmlrpcclient5 libkscreenlocker5 libktorrent-l10n libktorrent6 libkwalletbackend5-5 libkwin4-effect-builtins1 libkwineffects12 libmutter-4-0 libnux-4.0-0 libocct-data-exchange-7.3 libocct-ocaf-7.3 libocct-visualization-7.3
  liboctave-dev liboctave6 libokular5core9 liboxygenstyle5-5 liboxygenstyleconfig5-5 libphonon4qt5-4 libpolkit-qt5-1-1 libpowerdevilcore2 libprocessui7 libqapt3-runtime libqscintilla2-qt5-13 libqt5designer5 libqt5gui5 libqt5help5 libqt5hunspellinputmethod5 libqt5multimedia5-plugins libqt5multimediagsttools5 libqt5multimediaquick5
  libqt5multimediawidgets5 libqt5opengl5 libqt5printsupport5 libqt5quick5 libqt5quickcontrols2-5 libqt5quicktemplates2-5 libqt5quickwidgets5 libqt5svg5 libqt5virtualkeyboard5 libqt5waylandcompositor5 libqt5webengine5 libqt5webenginecore5 libqt5webenginewidgets5 libqt5webkit5 libqt5widgets5 librecad libsane libsane-hpaio libsensors4
  libsnmp30 libsoqt520 libtaskmanager6 libtotem0 libunity-core-6.0-9 libvtk7.1 libweather-ion7 libwebkit2gtk-4.0-37 libwxgtk3.0-0v5 libyelp0 mesa-utils milou mutter nautilus nautilus-share nemo nemo-fileroller nux-tools octave okular okular-extra-backends pgadmin3 phonon4qt5 phonon4qt5-backend-vlc plasma-browser-integration
  plasma-dataengines-addons plasma-desktop plasma-discover plasma-discover-snap-backend plasma-framework plasma-integration plasma-pa plasma-widgets-addons plasma-workspace polkit-kde-agent-1 powerdevil printer-driver-hpcups python3-pivy python3-pyqt5 python3-pyside2.qtgui python3-pyside2.qtopengl python3-pyside2.qtsvg
  python3-pyside2.qtuitools python3-pyside2.qtwidgets qapt-batch qbittorrent qml-module-org-kde-activities qml-module-org-kde-draganddrop qml-module-org-kde-kcm qml-module-org-kde-kconfig qml-module-org-kde-kcoreaddons qml-module-org-kde-kio qml-module-org-kde-kirigami2 qml-module-org-kde-kquickcontrols
  qml-module-org-kde-kquickcontrolsaddons qml-module-org-kde-kwindowsystem qml-module-org-kde-newstuff qml-module-org-kde-purpose qml-module-org-kde-qqc2desktopstyle qml-module-org-kde-runnermodel qml-module-org-kde-solid qml-module-qtgraphicaleffects qml-module-qtmultimedia qml-module-qtquick-controls
  qml-module-qtquick-controls-styles-breeze qml-module-qtquick-controls2 qml-module-qtquick-dialogs qml-module-qtquick-layouts qml-module-qtquick-privatewidgets qml-module-qtquick-templates2 qml-module-qtquick-virtualkeyboard qml-module-qtquick-window2 qml-module-qtquick2 qml-module-qtwebengine qml-module-qtwebkit
  qml-module-ubuntu-onlineaccounts qtvirtualkeyboard-plugin qtwayland5 rhythmbox-plugins sane-utils sddm sddm-theme-breeze session-shortcuts shotwell simple-scan software-properties-qt sysstat systemsettings totem totem-plugins ubuntu-desktop ubuntu-desktop-minimal ubuntu-docs ubuntu-release-upgrader-gtk ubuntu-release-upgrader-qt
  ubuntu-session unity unity-control-center unity-greeter unity-session unity-settings-daemon update-manager update-notifier user-manager vlc vlc-plugin-qt vlc-plugin-skins2 vlc-plugin-video-output vlc-plugin-visualization x11-utils xdg-desktop-portal-kde xorg xserver-xephyr xserver-xorg xserver-xorg-core xserver-xorg-input-all
  xserver-xorg-input-libinput xserver-xorg-input-synaptics xserver-xorg-input-wacom xserver-xorg-video-all xserver-xorg-video-amdgpu xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-intel xserver-xorg-video-nouveau xserver-xorg-video-qxl xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware
  xwayland yelp zenity
The following NEW packages will be installed
  libqt5gui5-gles libsensors-config
0 to upgrade, 2 to newly install, 378 to remove and 0 not to upgrade.
Need to get 2,829 kB of archives.
After this operation, 1,482 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

Can anyone advise me on what to do here? I don’t know what would happen exactly if I tried installing libsensors-config since it seems to want to remove xserver-*, ubuntu-*, *mesa* (without reinstalling new versions?) and a whole bunch of other important stuff, but I don’t think it’d be good for my system…

I can provide more data if needed.


Get this bounty!!!

#StackBounty: #package-management #upgrade #kernel #update-manager Terminal is frozen after using sudo apt-get dist-upgrade

Bounty: 50

I tried to update my Ubuntu 16.04 through sudo apt-get dist-upgrade, but now the terminal is frozen (terminal 1).

I let it run for an entire day (more than 24 hours) and I just suspended the OS once.

I’ve already tried to follow some tips on the internet (e.g here), but to no avail unfortunately.

Some piece of codes, that I found on the internet, I’m not able to use them, because the Ubuntu says that it is locked by another process (terminal 2).

Would anyone know what could be happening? Or what could I do to solve it? Because I don’t know if was failed or successed, or if it is still running, because I’ve already tried to type some “enter”s, however nothing happens, neither it is created a new line on the terminal, it is frozen.

Thank you in advance.

terminal 1

$ sudo apt-get dist-upgrade 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  linux-headers-4.4.0-148 linux-headers-4.4.0-148-generic
  linux-image-4.4.0-148-generic linux-modules-4.4.0-148-generic
  linux-modules-extra-4.4.0-148-generic linux-tools-4.4.0-148
  linux-tools-4.4.0-148-generic
The following packages will be upgraded:
  linux-generic linux-headers-generic linux-image-generic linux-tools-virtual
4 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 69,1 MB of archives.
After this operation, 314 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-modules-4.4.0-148-generic amd64 4.4.0-148.174 [12,0 MB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-4.4.0-148-generic amd64 4.4.0-148.174 [6.925 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-modules-extra-4.4.0-148-generic amd64 4.4.0-148.174 [36,6 MB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-generic amd64 4.4.0.148.156 [1.784 B]
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-generic amd64 4.4.0.148.156 [2.750 B]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-148 all 4.4.0-148.174 [9.982 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-148-generic amd64 4.4.0-148.174 [810 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-generic amd64 4.4.0.148.156 [2.582 B]
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-tools-4.4.0-148 amd64 4.4.0-148.174 [2.850 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-tools-4.4.0-148-generic amd64 4.4.0-148.174 [2.598 B]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-tools-virtual amd64 4.4.0.148.156 [2.610 B]
Fetched 69,1 MB in 2min 11s (526 kB/s)                                         
Selecting previously unselected package linux-modules-4.4.0-148-generic.
(Reading database ... 302549 files and directories currently installed.)
Preparing to unpack .../linux-modules-4.4.0-148-generic_4.4.0-148.174_amd64.deb ...
Unpacking linux-modules-4.4.0-148-generic (4.4.0-148.174) ...
Selecting previously unselected package linux-image-4.4.0-148-generic.
Preparing to unpack .../linux-image-4.4.0-148-generic_4.4.0-148.174_amd64.deb ...
Unpacking linux-image-4.4.0-148-generic (4.4.0-148.174) ...
Selecting previously unselected package linux-modules-extra-4.4.0-148-generic.
Preparing to unpack .../linux-modules-extra-4.4.0-148-generic_4.4.0-148.174_amd64.deb ...
Unpacking linux-modules-extra-4.4.0-148-generic (4.4.0-148.174) ...
Preparing to unpack .../linux-generic_4.4.0.148.156_amd64.deb ...
Unpacking linux-generic (4.4.0.148.156) over (4.4.0.146.154) ...
Preparing to unpack .../linux-image-generic_4.4.0.148.156_amd64.deb ...
Unpacking linux-image-generic (4.4.0.148.156) over (4.4.0.146.154) ...
Selecting previously unselected package linux-headers-4.4.0-148.
Preparing to unpack .../linux-headers-4.4.0-148_4.4.0-148.174_all.deb ...
Unpacking linux-headers-4.4.0-148 (4.4.0-148.174) ...
Selecting previously unselected package linux-headers-4.4.0-148-generic.
Preparing to unpack .../linux-headers-4.4.0-148-generic_4.4.0-148.174_amd64.deb ...
Unpacking linux-headers-4.4.0-148-generic (4.4.0-148.174) ...
Preparing to unpack .../linux-headers-generic_4.4.0.148.156_amd64.deb ...
Unpacking linux-headers-generic (4.4.0.148.156) over (4.4.0.146.154) ...
Selecting previously unselected package linux-tools-4.4.0-148.
Preparing to unpack .../linux-tools-4.4.0-148_4.4.0-148.174_amd64.deb ...
Unpacking linux-tools-4.4.0-148 (4.4.0-148.174) ...
Selecting previously unselected package linux-tools-4.4.0-148-generic.
Preparing to unpack .../linux-tools-4.4.0-148-generic_4.4.0-148.174_amd64.deb ...
Unpacking linux-tools-4.4.0-148-generic (4.4.0-148.174) ...
Preparing to unpack .../linux-tools-virtual_4.4.0.148.156_amd64.deb ...
Unpacking linux-tools-virtual (4.4.0.148.156) over (4.4.0.146.154) ...
Setting up linux-modules-4.4.0-148-generic (4.4.0-148.174) ...
Setting up linux-image-4.4.0-148-generic (4.4.0-148.174) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.4.0-146-generic
I: /initrd.img.old is now a symlink to boot/initrd.img-4.4.0-146-generic
I: /vmlinuz is now a symlink to boot/vmlinuz-4.4.0-148-generic
I: /initrd.img is now a symlink to boot/initrd.img-4.4.0-148-generic
Setting up linux-modules-extra-4.4.0-148-generic (4.4.0-148.174) ...
Setting up linux-image-generic (4.4.0.148.156) ...
Setting up linux-headers-4.4.0-148 (4.4.0-148.174) ...
Setting up linux-headers-4.4.0-148-generic (4.4.0-148.174) ...

terminal 2

$ sudo dpkg --configure --pending
dpkg: error: dpkg frontend is locked by another process

$ sudo dpkg --configure -a
dpkg: error: dpkg frontend is locked by another process

$ sudo apt -f install
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?


Get this bounty!!!