Answered The following packages have unmet dependencies - problem - AGAIN

Discussion in 'Software & Applications' started by downbeat, Apr 17, 2017.

  1. downbeat

    downbeat Thread Starter
    Expand Collapse
    Member

    Joined:
    Apr 17, 2017
    Messages:
    6
    Likes Received:
    0
    Hi, guys.
    I have problem.

    The following packages have unmet dependencies:
    appstream-data-pantheon-icons : Depends: appstream-data-pantheon but it is not installed
    E: Unmet dependencies. Try using -f.



    After: sudo apt-get -f install


    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    The following packages were automatically installed and are no longer required:
    appstream-data-pantheon-loki-stable appstream-data-pantheon-loki-stable-icons
    Use 'sudo apt autoremove' to remove them.
    The following additional packages will be installed:
    appstream-data-pantheon
    The following NEW packages will be installed:
    appstream-data-pantheon
    0 upgraded, 1 newly installed, 0 to remove and 32 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/66,2 kB of archives.
    After this operation, 74,8 kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    (Reading database ... 205371 files and directories currently installed.)
    Preparing to unpack .../appstream-data-pantheon_0.3.0-0~14~ubuntu0.4.1_all.deb ...
    Unpacking appstream-data-pantheon (0.3.0-0~14~ubuntu0.4.1) ...
    dpkg: error processing archive /var/cache/apt/archives/appstream-data-pantheon_0.3.0-0~14~ubuntu0.4.1_all.deb (--unpack):
    trying to overwrite '/usr/share/app-info/yaml/pantheon_xenial-main_amd64.yml.gz', which is also in package appstream-data-pantheon-loki-stable 0.4+r13~ubuntu0.4.1
    Processing triggers for appstream (0.10.6-1~ubuntu16.04.2) ...
    AppStream cache update completed successfully.
    Errors were encountered while processing:
    /var/cache/apt/archives/appstream-data-pantheon_0.3.0-0~14~ubuntu0.4.1_all.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    Please help :)

     
  2. Best Answer:
    Post #6 by Artificial Intelligence, Apr 18, 2017
  3. Artificial Intelligence

    Artificial Intelligence
    Expand Collapse
    Elementary Member

    Joined:
    Jan 24, 2017
    Messages:
    115
    Likes Received:
    18
    Try:
    Code (Text):

    sudo apt-get install --fix-broken && sudo apt-get autoremove && sudo apt-get update
     
     
  4. downbeat

    downbeat Thread Starter
    Expand Collapse
    Member

    Joined:
    Apr 17, 2017
    Messages:
    6
    Likes Received:
    0
    First of all, thank you for reply.

    After: sudo apt-get install --fix-broken && sudo apt-get autoremove && sudo apt-get update


    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    The following packages were automatically installed and are no longer required:
    appstream-data-pantheon-loki-stable appstream-data-pantheon-loki-stable-icons
    Use 'sudo apt autoremove' to remove them.
    The following additional packages will be installed:
    appstream-data-pantheon
    The following NEW packages will be installed:
    appstream-data-pantheon
    0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/66,2 kB of archives.
    After this operation, 74,8 kB of additional disk space will be used.
    Do you want to continue? [Y/n]
    (Reading database ... 205371 files and directories currently installed.)
    Preparing to unpack .../appstream-data-pantheon_0.3.0-0~14~ubuntu0.4.1_all.deb ...
    Unpacking appstream-data-pantheon (0.3.0-0~14~ubuntu0.4.1) ...
    dpkg: error processing archive /var/cache/apt/archives/appstream-data-pantheon_0.3.0-0~14~ubuntu0.4.1_all.deb (--unpack):
    trying to overwrite '/usr/share/app-info/yaml/pantheon_xenial-main_amd64.yml.gz', which is also in package appstream-data-pantheon-loki-stable 0.4+r13~ubuntu0.4.1
    Processing triggers for appstream (0.10.6-1~ubuntu16.04.2) ...
    AppStream cache update completed successfully.
    Errors were encountered while processing:
    /var/cache/apt/archives/appstream-data-pantheon_0.3.0-0~14~ubuntu0.4.1_all.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)






    :/
     
  5. Artificial Intelligence

    Artificial Intelligence
    Expand Collapse
    Elementary Member

    Joined:
    Jan 24, 2017
    Messages:
    115
    Likes Received:
    18
    okay, try this:
    Code (Text):
    sudo dpkg -i --force-overwrite /var/cache/apt/archives/appstream-data-pantheon-loki-stable_0.4+r13~ubuntu0.4.1_all.deb
    Is your system a upgraded one from freya to loki?
     
  6. downbeat

    downbeat Thread Starter
    Expand Collapse
    Member

    Joined:
    Apr 17, 2017
    Messages:
    6
    Likes Received:
    0
    No, it's not upgraded from Freya to Loki. I've installed Loki from dvd.

    After: sudo dpkg -i --force-overwrite /var/cache/apt/archives/appstream-data-pantheon-loki-stable_0.4+r13~ubuntu0.4.1_all.deb



    dpkg: error processing archive /var/cache/apt/archives/appstream-data-pantheon-loki-stable_0.4+r13~ubuntu0.4.1_all.deb (--install):
    cannot access archive: No such file or directory
    Errors were encountered while processing:
    /var/cache/apt/archives/appstream-data-pantheon-loki-stable_0.4+r13~ubuntu0.4.1_all.deb
     
  7. Artificial Intelligence

    Artificial Intelligence
    Expand Collapse
    Elementary Member

    Joined:
    Jan 24, 2017
    Messages:
    115
    Likes Received:
    18
    Code (Text):
    sudo dpkg -i --force-overwrite /var/cache/apt/archives/appstream-data-pantheon_0.3.0-0~14~ubuntu0.4.1_all.deb
    If it not work try remove it instead:
    Code (Text):
    sudo rm -rf /var/cache/apt/archives/appstream-data-pantheon_0.3.0-0~14~ubuntu0.4.1_all.deb
     
    downbeat likes this.
  8. downbeat

    downbeat Thread Starter
    Expand Collapse
    Member

    Joined:
    Apr 17, 2017
    Messages:
    6
    Likes Received:
    0
    After this one: sudo dpkg -i --force-overwrite /var/cache/apt/archives/appstream-data-pantheon_0.3.0-0~14~ubuntu0.4.1_all.deb

    ..everything is ok. :)

    Thank you very much!
     
  9. ZeZeN

    ZeZeN
    Expand Collapse
    New Member

    Joined:
    May 24, 2017
    Messages:
    1
    Likes Received:
    0
    Thank YOU !!!!!
    It's been 2 days I couldn't use the appcenter, and figured out I had the same problem.
    Now everything is back normal :)
     
  10. downbeat

    downbeat Thread Starter
    Expand Collapse
    Member

    Joined:
    Apr 17, 2017
    Messages:
    6
    Likes Received:
    0
    Hi, again a have a similar problem.



    djordje@dj:~$ sudo apt-get dist-upgrade
    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:
    appstream-data-pantheon-icons : Depends: appstream-data-pantheon but it is not installed
    E: Unmet dependencies. Try using -f.
    djordje@dj:~$ sudo apt-get -f install
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    The following packages were automatically installed and are no longer required:
    appstream-data-pantheon-loki-stable appstream-data-pantheon-loki-stable-icons elementary-keyring
    Use 'sudo apt autoremove' to remove them.
    The following additional packages will be installed:
    appstream-data-pantheon
    The following NEW packages will be installed:
    appstream-data-pantheon
    0 upgraded, 1 newly installed, 0 to remove and 40 not upgraded.
    36 not fully installed or removed.
    Need to get 0 B/66,2 kB of archives.
    After this operation, 74,8 kB of additional disk space will be used.
    Do you want to continue? [Y/n]
    (Reading database ... 212677 files and directories currently installed.)
    Preparing to unpack .../appstream-data-pantheon_0.3.0-0~14~ubuntu0.4.1.1_all.deb ...
    Unpacking appstream-data-pantheon (0.3.0-0~14~ubuntu0.4.1.1) ...
    dpkg: error processing archive /var/cache/apt/archives/appstream-data-pantheon_0.3.0-0~14~ubuntu0.4.1.1_all.deb (--unpack):
    trying to overwrite '/usr/share/app-info/yaml/pantheon_xenial-extra_amd64.yml.gz', which is also in package appstream-data-pantheon-loki-stable 0.4+r13~ubuntu0.4.1
    Processing triggers for appstream (0.11.3-1~elementary0.4.1) ...
    AppStream cache update completed successfully.
    Errors were encountered while processing:
    /var/cache/apt/archives/appstream-data-pantheon_0.3.0-0~14~ubuntu0.4.1.1_all.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)
     
  11. downbeat

    downbeat Thread Starter
    Expand Collapse
    Member

    Joined:
    Apr 17, 2017
    Messages:
    6
    Likes Received:
    0
    Anybody? :/

    I can' t upgrade or install anything.
     

Share This Page

Loading...