Results 1 to 3 of 3

Thread: Error when performing 'apt-get upgrade' on a Raspberry Pi 0

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    2016-May
    Posts
    6

    Error when performing 'apt-get upgrade' on a Raspberry Pi 0

    I just did an apt-get update and then apt-get upgrade on my Raspberry Pi Zero (Rpi0). During the apt-get upgrade process, it spits out an error message (E: Unmet dependencies) as shown below and recommended to run apt --fix-broken install. The later also spits out some error messages (see below) and did not fix the problem. Has anyone seen this and can recommend for a solution?
    Code:
    [root@kali:/root 2%] # apt-get update
    Hit:1 http://archive-7.kali.org/kali kali-rolling InRelease
    Reading package lists... Done
    23.930u+2.420s=0:28.01e(94.0%) TDSavg=0k+0k+0k max=35556k 136096+103168io 63pf+0sw
    [root@kali:/root 3%] # apt-get upgrade
    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:
     libcoarrays-dev : Depends: libcaf-mpi3 (= 2.2.0-1) but it is not installed
     open-coarrays-bin : Depends: libcaf-mpi3 (= 2.2.0-1) but it is not installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
    4.390u+0.120s=0:04.54e(99.3%) TDSavg=0k+0k+0k max=38472k 264+384io 1pf+0sw
    [root@kali:/root 4%] # apt --fix-broken install
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following additional packages will be installed:
      libcaf-mpi3
    The following NEW packages will be installed:
      libcaf-mpi3
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    238 not fully installed or removed.
    Need to get 0 B/31.7 kB of archives.
    After this operation, 90.1 kB of additional disk space will be used.
    Do you want to continue? [Y/n] 
    (Reading database ... 87840 files and directories currently installed.)
    Preparing to unpack .../libcaf-mpi3_2.2.0-1_armel.deb ...
    Unpacking libcaf-mpi3:armel (2.2.0-1) ...
    dpkg: error processing archive /var/cache/apt/archives/libcaf-mpi3_2.2.0-1_armel.deb (--unpack):
     trying to overwrite '/usr/lib/arm-linux-gnueabi/libcaf_mpi.so.3', which is also in package libcaf-mpi2:armel 2.1.0-1+b1
    Errors were encountered while processing:
     /var/cache/apt/archives/libcaf-mpi3_2.2.0-1_armel.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    21.500u+2.800s=0:38.92e(62.4%) TDSavg=0k+0k+0k max=66716k 34120+55048io 32pf+0sw
    [root@kali:/root 5%] #

  2. #2
    Join Date
    2016-Dec
    Posts
    806
    You can try to "force", I think -f option with apt/apt-get. Not sure if it will work. In the future, I would recommend to use dist-upgrade instead of just upgrade.

    Other than that, you can try reinstalling 2018.3 and update from there. The 0w image will work.

  3. #3
    Join Date
    2016-May
    Posts
    6
    Quote Originally Posted by Mister_X View Post
    You can try to "force", I think -f option with apt/apt-get. Not sure if it will work. In the future, I would recommend to use dist-upgrade instead of just upgrade.
    I already tried that to no avail, unfortunately.

    Other than that, you can try reinstalling 2018.3 and update from there. The 0w image will work.
    That's what I first thought. Then, I started to think if we can't fix this, what will happen if I run into the same situation once reinstalling process is done?

Similar Threads

  1. Kali crash when performing apt upgrade
    By Awaces in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2020-03-23, 22:17
  2. Raspberry Pi 3 B Error During 'dist-upgrade'
    By Tlommy in forum ARM Archive
    Replies: 10
    Last Post: 2019-01-03, 17:00
  3. GRUB Error after performing last 16th step
    By Subscriber in forum General Archive
    Replies: 0
    Last Post: 2015-02-07, 05:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •