1

Trying to upgrade my software doesn't work as it shows this message:

sudo apt-get update && sudo apt-get upgrade -y
[...]
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 discord : Depends: libappindicator1 but it is not installed
           Depends: libc++1 but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Now when I try to fix the broken dependencies:

sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libappindicator1 libc++1 libc++abi1 libindicator7
Suggested packages:
  clang
The following packages will be REMOVED:
  linux-image-extra-4.10.0-26-generic
The following NEW packages will be installed:
  libappindicator1 libc++1 libc++abi1 libindicator7
0 upgraded, 4 newly installed, 1 to remove and 45 not upgraded.
2 not fully installed or removed.
Need to get 0 B/288 kB of archives.
After this operation, 154 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 259278 files and directories currently installed.)
Removing linux-image-extra-4.10.0-26-generic (4.10.0-26.30) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.10.0-26-generic /boot/vmlinuz-4.10.0-26-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.10.0-26-generic /boot/vmlinuz-4.10.0-26-generic

it just stops there and nothing happened for hours.

UPDATE: New Problem

I'm beginning to feel a little dumb. After I managed to solve the problem above I tried to do an upgrade today and I am stuck at the same line again:

sudo apt-get dist-upgrade -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libuchardet0 libva-wayland1 mpv rtmpdump
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  linux-headers-4.10.0-32 linux-headers-4.10.0-32-generic linux-image-4.10.0-32-generic linux-image-extra-4.10.0-32-generic linux-signed-image-4.10.0-32-generic
The following packages will be upgraded:
  linux-generic linux-headers-generic linux-image-generic linux-signed-generic linux-signed-image-generic
5 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 61,5 MB of archives.
After this operation, 308 MB of additional disk space will be used.
Get:1 http://de.archive.ubuntu.com/ubuntu zesty-updates/main amd64 linux-image-4.10.0-32-generic amd64 4.10.0-32.36 [20,2 MB]
Get:2 http://de.archive.ubuntu.com/ubuntu zesty-updates/main amd64 linux-image-extra-4.10.0-32-generic amd64 4.10.0-32.36 [30,0 MB]
Get:3 http://de.archive.ubuntu.com/ubuntu zesty-updates/main amd64 linux-generic amd64 4.10.0.32.32 [1.784 B]                                                                                                     
Get:4 http://de.archive.ubuntu.com/ubuntu zesty-updates/main amd64 linux-image-generic amd64 4.10.0.32.32 [2.306 B]                                                                                               
Get:5 http://de.archive.ubuntu.com/ubuntu zesty-updates/main amd64 linux-signed-image-4.10.0-32-generic amd64 4.10.0-32.36 [4.018 B]                                                                              
Get:6 http://de.archive.ubuntu.com/ubuntu zesty-updates/main amd64 linux-signed-generic amd64 4.10.0.32.32 [1.816 B]                                                                                              
Get:7 http://de.archive.ubuntu.com/ubuntu zesty-updates/main amd64 linux-signed-image-generic amd64 4.10.0.32.32 [2.340 B]                                                                                        
Get:8 http://de.archive.ubuntu.com/ubuntu zesty-updates/main amd64 linux-headers-4.10.0-32 all 4.10.0-32.36 [10,6 MB]                                                                                             
Get:9 http://de.archive.ubuntu.com/ubuntu zesty-updates/main amd64 linux-headers-4.10.0-32-generic amd64 4.10.0-32.36 [688 kB]                                                                                    
Get:10 http://de.archive.ubuntu.com/ubuntu zesty-updates/main amd64 linux-headers-generic amd64 4.10.0.32.32 [2.278 B]                                                                                            
Fetched 61,5 MB in 13s (4.631 kB/s)                                                                                                                                                                               
Selecting previously unselected package linux-image-4.10.0-32-generic.
(Reading database ... 258420 files and directories currently installed.)
Preparing to unpack .../0-linux-image-4.10.0-32-generic_4.10.0-32.36_amd64.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.10.0-32-generic /boot/vmlinuz-4.10.0-32-generic
Done.
Unpacking linux-image-4.10.0-32-generic (4.10.0-32.36) ...
Selecting previously unselected package linux-image-extra-4.10.0-32-generic.
Preparing to unpack .../1-linux-image-extra-4.10.0-32-generic_4.10.0-32.36_amd64.deb ...
Unpacking linux-image-extra-4.10.0-32-generic (4.10.0-32.36) ...
Preparing to unpack .../2-linux-generic_4.10.0.32.32_amd64.deb ...
Unpacking linux-generic (4.10.0.32.32) over (4.10.0.30.31) ...
Preparing to unpack .../3-linux-image-generic_4.10.0.32.32_amd64.deb ...
Unpacking linux-image-generic (4.10.0.32.32) over (4.10.0.30.31) ...
Selecting previously unselected package linux-signed-image-4.10.0-32-generic.
Preparing to unpack .../4-linux-signed-image-4.10.0-32-generic_4.10.0-32.36_amd64.deb ...
Unpacking linux-signed-image-4.10.0-32-generic (4.10.0-32.36) ...
Preparing to unpack .../5-linux-signed-generic_4.10.0.32.32_amd64.deb ...
Unpacking linux-signed-generic (4.10.0.32.32) over (4.10.0.30.31) ...
Preparing to unpack .../6-linux-signed-image-generic_4.10.0.32.32_amd64.deb ...
Unpacking linux-signed-image-generic (4.10.0.32.32) over (4.10.0.30.31) ...
Selecting previously unselected package linux-headers-4.10.0-32.
Preparing to unpack .../7-linux-headers-4.10.0-32_4.10.0-32.36_all.deb ...
Unpacking linux-headers-4.10.0-32 (4.10.0-32.36) ...
Selecting previously unselected package linux-headers-4.10.0-32-generic.
Preparing to unpack .../8-linux-headers-4.10.0-32-generic_4.10.0-32.36_amd64.deb ...
Unpacking linux-headers-4.10.0-32-generic (4.10.0-32.36) ...
Preparing to unpack .../9-linux-headers-generic_4.10.0.32.32_amd64.deb ...
Unpacking linux-headers-generic (4.10.0.32.32) over (4.10.0.30.31) ...
Setting up linux-headers-4.10.0-32 (4.10.0-32.36) ...
Setting up linux-image-4.10.0-32-generic (4.10.0-32.36) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.10.0-32-generic /boot/vmlinuz-4.10.0-32-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.10.0-32-generic /boot/vmlinuz-4.10.0-32-generic
2
  • For how long does it stop? Commented Aug 9, 2017 at 17:07
  • It hasn't happend anything since hours.
    – TheFlamer
    Commented Aug 9, 2017 at 17:48

1 Answer 1

1

So it seems like linux-image-extra-4.10.0-26-generic was a 'broken' package that couldn't be removed so I manually removed the entry in /var/lib/dpkg/status and my dpkg worked again...

I found the answer here: http://www.iasptk.com/ubuntu-fix-broken-package-best-solution/

Update

The solution for my "second" problem:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1686107

Changing the GPU to the builtin Intel instead of the NVIDIA-GPU allowed me to do the Update. So I don't understand the probem but at least I managed to work around it...

1
  • Disabling the NVIDIA-GPU did the trick for me as well.
    – Stefan
    Commented Aug 18, 2017 at 12:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .