Navigation

    RetroPie forum home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    After fresh install: Could not install package(s)

    Help and Support
    error install packages
    2
    4
    887
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Jareth247
      Jareth247 last edited by

      Some time ago I switched to a RetroFlag SuperPi case and a 64GB microSD card (Sandisk Ultra 64GB Micro SDXC UHS-I Card). I've also tried to install the power switch script. And since then I can't install packages such as DosBox that require certain libraries.

      And whenever I try to install such packages on my Raspberry Pi 3 running RetroPie 4.4, I get this:

      Log started at: Thu Dec 13 14:17:06 EST 2018

      RetroPie-Setup version: 4.4.3 (5953e393)
      System: Linux retropie 4.14.30-v7+ #1102 SMP Mon Mar 26 16:45:49 BST 2018 armv7l GNU/Linux

      = = = = = = = = = = = = = = = = = = = = =
      Installing dependencies for 'dosbox' : DOS emulator
      = = = = = = = = = = = = = = = = = = = = =

      Did not find needed package(s): libsdl-net1.2-dev libsdl-sound1.2-dev subversion timidity freepats. I am trying to install them now.
      Get:1 http://archive.raspberrypi.org/debian stretch InRelease [25.3 kB]
      Get:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
      Get:3 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB]
      Get:4 http://archive.raspberrypi.org/debian stretch/main armhf Packages [200 kB]
      Get:5 http://archive.raspberrypi.org/debian stretch/ui armhf Packages [40.3 kB]
      Fetched 11.9 MB in 17s (672 kB/s)
      Reading package lists...
      Reading package lists...
      Building dependency tree...
      Reading state information...
      The following packages were automatically installed and are no longer required:
      libwayland-cursor0 libwayland-egl1-mesa
      Use 'sudo apt autoremove' to remove them.
      The following additional packages will be installed:
      esound-common libapr1 libaprutil1 libaudio2 libaudiofile1 libesd0 libmikmod3
      libsdl-net1.2 libsdl-sound1.2 libserf-1-1 libsvn1 libxaw7 libxmu6 libxpm4
      libxt6
      Suggested packages:
      nas pulseaudio-esound-compat db5.3-util subversion-tools fluid-soundfont-gm
      fluid-soundfont-gs pmidi
      Recommended packages:
      timidity-daemon
      The following NEW packages will be installed:
      esound-common freepats libapr1 libaprutil1 libaudio2 libaudiofile1 libesd0
      libmikmod3 libsdl-net1.2 libsdl-net1.2-dev libsdl-sound1.2
      libsdl-sound1.2-dev libserf-1-1 libsvn1 libxaw7 libxmu6 libxpm4 libxt6
      subversion timidity
      0 upgraded, 20 newly installed, 0 to remove and 144 not upgraded.
      Need to get 0 B/32.7 MB of archives.
      After this operation, 46.5 MB of additional disk space will be used.
      Selecting previously unselected package libxt6:armhf.
      (Reading database ...
      (Reading database ... 5%
      (Reading database ... 10%
      (Reading database ... 15%
      (Reading database ... 20%
      (Reading database ... 25%
      (Reading database ... 30%
      (Reading database ... 35%
      (Reading database ... 40%
      (Reading database ... 45%
      (Reading database ... 50%
      (Reading database ... 55%
      (Reading database ... 60%
      (Reading database ... 65%
      (Reading database ... 70%
      (Reading database ... 75%
      (Reading database ... 80%
      (Reading database ... 85%
      (Reading database ... 90%
      (Reading database ... 95%
      dpkg: unrecoverable fatal error, aborting:
      files list file for package 'libapt-pkg5.0:armhf' is missing final newline
      E: Sub-process /usr/bin/dpkg returned an error code (2)
      Could not install package(s): libsdl-net1.2-dev libsdl-sound1.2-dev subversion timidity freepats.

      Log ended at: Thu Dec 13 14:17:49 EST 2018
      Total running time: 0 hours, 0 mins, 43 secs

      mitu 1 Reply Last reply Reply Quote 0
      • mitu
        mitu Global Moderator @Jareth247 last edited by

        Probably a corrupted download package. See this forum post for a similar error. You'll need to remove some files from the /usr/lib/dpkg/info folder (corresponding to the package libapt-pkg5.0) and then repair your package manager's cache with the commands indicated in that post.

        1 Reply Last reply Reply Quote 0
        • Jareth247
          Jareth247 last edited by

          So I just broke down and just did a fresh install of RetroPie. And it worked! I pretty much felt like I had to after screwed up and deleted something I assume was important. It should be worth noting that I didn't install the power switch script this time.

          mitu 1 Reply Last reply Reply Quote 0
          • mitu
            mitu Global Moderator @Jareth247 last edited by

            @Jareth247 Glad you got it working; I don't think the power switch script had anything to do with it - although the incorrect file that was causing the problem for apt could have been produced by an improper shutdown in the middle of an install operation.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.