Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Sub-process /usr/bin/dpkg returned an error code (1)

  1. #1
    Join Date
    Nov 2013
    Beans
    9

    Sub-process /usr/bin/dpkg returned an error code (1)

    I can't install spotify for some reason. I was working for awhile. I have heard of Spotify changing their key. So I am trying to just remove Spotify all together but i can't because apparently it isn't installed correctly.

    When I try sudo apt-get update && sudo apt-get install spotify-client-qt OR apt-get remove OR apt-get autoremove it gives me this:
    Sub-process /usr/bin/dpkg returned an error code (1)Spotify Problem.pngSpotify Problem 2.png

  2. #2
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    8,667
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Sub-process /usr/bin/dpkg returned an error code (1)

    huntinfreak55; Hi ! Welcome to the forum .
    This:
    "cd: can't cd to /opt/spotify/spotify-client" says this may be a real pain to track down, remove and (re-)install !

    But, If you are up to it, I am willing to give it a whirl.
    1st, what is the operating system we are "operating" on ?
    Post back the outputs of terminal codes: - BETWEEN code tags;
    code tag tutorial:
    http://ubuntuforums.org/showthread.p...8#post12776168
    Code:
    lsb_release -a
    uname -a
    And I want to know the state of the package management system:
    Code:
    dpkg -C
    That is an uppercase "c";

    And specific to "spotify"
    Code:
    dpkg -l spotify
    dpkg -l spotify-client
    apt-cache policy spotify
    ls -la /var/lib/dpkg/info/spotify.list
    and also, How are you "fetching" spotify ?
    Code:
    cat -n /etc/apt/sources.list
    ls -la /etc/apt/sources.list.d/
    Once all this is known, we can see about finding what remains of spotify on your system and how to complete the removal.

    the longest journey begins with 1 step
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  3. #3
    Join Date
    Nov 2013
    Beans
    9

    Re: Sub-process /usr/bin/dpkg returned an error code (1)

    I appreciate it! When I search for spotify by hitting the home button it doesn't even show it as being installed anymore. I am pretty new to linux so it is possible that I deleted it while playing on Terminal. I was actually given this laptop. It had Ubuntu on it but it was version 10 something, so I updated it to the version it is now.Spotify Problem 7.pngSpotify Problem 6.pngSpotify Problem 5.pngSpotify Problem 4.pngSpotify Problem 3.png

  4. #4
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    8,667
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Sub-process /usr/bin/dpkg returned an error code (1)

    huntinfreak55; Hey ,

    Redo that last and place the outputs, per request, between code tags - for readability and access. Please take the time to read the tutorial provided.

    I have enough on my desktop as it is, and screen shots are very difficult for me to manage and are not readable in the entirety of the content.

    we can do this
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  5. #5
    Join Date
    Nov 2013
    Beans
    9

    Re: Sub-process /usr/bin/dpkg returned an error code (1)

    Ok I apologize, is this what you were thinking?

    lsb_release -a
    Ubuntu 12.04.3 LTS
    codename: precise

    uname -a
    Linux chester-laptop 3.2.0-56-generic #86-Ubuntu SMP Wed Oct 23 17:31:43 UTC 2013 i686 i686 i386 GNU/Linux

    dpkg -C
    The following packages have been unpacked but not yet configured.
    They must be configured using dpkg --configure or the configure
    menu option in dselect for them to work:
    spotify-client-qt Transitional package for spotify-client


    The following packages are only half configured, probably due to problems
    configuring them the first time. The configuration should be retried using
    dpkg --configure <package> or the configure menu option in dselect:
    spotify-client Spotify desktop client

    dpkg -l spotify
    No packages found matching spotify

    dpkg -l spotify-client
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name Version Description
    +++-==============-==============-============================================
    rF spotify-client 1:0.9.4.183.g6 Spotify desktop client



    apt-cache policy spotify
    N: Unable to locate package spotify



    ls -la /var/lib/dpkg/info/spotify.list
    ls: cannot access /var/lib/dpkg/info/spotify.list: No such file or directory

    cat -n /etc/apt/sources.list
    1 # deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
    2 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    3 # newer versions of the distribution.
    4
    5 deb http://archive.ubuntu.com/ubuntu precise main restricted
    6 deb-src http://archive.ubuntu.com/ubuntu precise main restricted
    7
    8 ## Major bug fix updates produced after the final release of the
    9 ## distribution.
    10 deb http://archive.ubuntu.com/ubuntu precise-updates main restricted
    11 deb-src http://archive.ubuntu.com/ubuntu precise-updates main restricted
    12
    13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    14 ## team. Also, please note that software in universe WILL NOT receive any
    15 ## review or updates from the Ubuntu security team.
    16 deb http://archive.ubuntu.com/ubuntu precise universe
    17 deb-src http://archive.ubuntu.com/ubuntu precise universe
    18 deb http://archive.ubuntu.com/ubuntu precise-updates universe
    19 deb-src http://archive.ubuntu.com/ubuntu precise-updates universe
    20
    21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    22 ## team, and may not be under a free licence. Please satisfy yourself as to
    23 ## your rights to use the software. Also, please note that software in
    24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    25 ## security team.
    26 deb http://archive.ubuntu.com/ubuntu precise multiverse
    27 deb-src http://archive.ubuntu.com/ubuntu precise multiverse
    28 deb http://archive.ubuntu.com/ubuntu precise-updates multiverse
    29 deb-src http://archive.ubuntu.com/ubuntu precise-updates multiverse
    30
    31 ## Uncomment the following two lines to add software from the 'backports'
    32 ## repository.
    33 ## N.B. software from this repository may not have been tested as
    34 ## extensively as that contained in the main release, although it includes
    35 ## newer versions of some applications which may provide useful features.
    36 ## Also, please note that software in backports WILL NOT receive any review
    37 ## or updates from the Ubuntu security team.
    38 # deb http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
    39 # deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
    40
    41 ## Uncomment the following two lines to add software from Canonical's
    42 ## 'partner' repository.
    43 ## This software is not part of Ubuntu, but is offered by Canonical and the
    44 ## respective vendors as a service to Ubuntu users.
    45 # deb http://archive.canonical.com/ubuntu lucid partner
    46 # deb-src http://archive.canonical.com/ubuntu lucid partner
    47
    48 deb http://archive.ubuntu.com/ubuntu precise-security main restricted
    49 deb-src http://archive.ubuntu.com/ubuntu precise-security main restricted
    50 deb http://archive.ubuntu.com/ubuntu precise-security universe
    51 deb-src http://archive.ubuntu.com/ubuntu precise-security universe
    52 deb http://archive.ubuntu.com/ubuntu precise-security multiverse
    53 deb http://archive.canonical.com/ precise partner
    54 deb-src http://archive.ubuntu.com/ubuntu precise-security multiverse
    55 deb http://repository.spotify.com stable non-free
    56 deb http://repository.spotify.com stable non-free
    57 deb http://repository.spotify.com stable non-free
    58 deb http://repository.spotify.com stable non-free
    59 deb http://repository.spotify.com stable non-free



    ls -la /etc/apt/sources.list.d/
    total 20drwxr-xr-x 2 root root 4096 Nov 14 10:59 .
    drwxr-xr-x 6 root root 4096 Nov 27 09:36 ..
    -rw-r--r-- 1 root root 134 Nov 11 19:48 ubuntu-wine-ppa-precise.list
    -rw-r--r-- 1 root root 134 Nov 11 19:48 ubuntu-wine-ppa-precise.list.save
    -rw-r--r-- 1 root root 150 Nov 11 19:48 ubuntu-x-swat-x-updates-precise.list

  6. #6
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    8,667
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Sub-process /usr/bin/dpkg returned an error code (1)

    huntinfreak55; Yes, some what better.
    Place the output Between code tags is better yet, really helps for readability.

    The good news is that "spotify" is the only fault the system is aware of.
    This output says we will do things the hard way.
    Code:
    ls -la /var/lib/dpkg/info/spotify.list
    ls: cannot access /var/lib/dpkg/info/spotify.list: No such file or directory
    So, show me the output of terminal code:
    Code:
    sudo find / -name "spotify*"
    Which will take a bit of time to complete as it is searching every file on your system looking for matches; patience,

    Are you comfortable editing files ?
    there are duplicated sources that must be removed:
    55 deb http://repository.spotify.com stable non-free
    56 deb http://repository.spotify.com stable non-free
    57 deb http://repository.spotify.com stable non-free
    58 deb http://repository.spotify.com stable non-free
    59 deb http://repository.spotify.com stable non-free
    Now here for your reference is why it is desirable for outputs to be placed between code tags; do you see ?:
    Code:
    sysop@1304mini:~$ cat -n /etc/apt/sources.list
         1  # deb http://us.archive.ubuntu.com/ubuntu/ raring main restricted
         2
         3  # deb http://us.archive.ubuntu.com/ubuntu/ raring-updates main restricted
         4  #following line is a duplicate unknown why/where (24may2013) and commented out.
         5  #deb http://security.ubuntu.com/ubuntu raring-security main restricted
         6
         7  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
         8  # newer versions of the distribution.
         9  deb http://us.archive.ubuntu.com/ubuntu/ raring main restricted
        10  #(bdq)deb-src http://us.archive.ubuntu.com/ubuntu/ raring main restricted
        11
        12  ## Major bug fix updates produced after the final release of the
        13  ## distribution.
        14  deb http://us.archive.ubuntu.com/ubuntu/ raring-updates main restricted
        15  #(bdq)deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates main restricted
        16
        17  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
        18  ## team. Also, please note that software in universe WILL NOT receive any
        19  ## review or updates from the Ubuntu security team.
        20  deb http://us.archive.ubuntu.com/ubuntu/ raring universe
        21  #(bdq)deb-src http://us.archive.ubuntu.com/ubuntu/ raring universe
        22  deb http://us.archive.ubuntu.com/ubuntu/ raring-updates universe
        23  #(bdq)deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates universe
        24
        25  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
        26  ## team, and may not be under a free licence. Please satisfy yourself as to 
        27  ## your rights to use the software. Also, please note that software in 
        28  ## multiverse WILL NOT receive any review or updates from the Ubuntu
        29  ## security team.
        30  deb http://us.archive.ubuntu.com/ubuntu/ raring multiverse
        31  #(bdq)deb-src http://us.archive.ubuntu.com/ubuntu/ raring multiverse
        32  deb http://us.archive.ubuntu.com/ubuntu/ raring-updates multiverse
        33  #(bdq)deb-src http://us.archive.ubuntu.com/ubuntu/ raring-updates multiverse
        34
        35  ## N.B. software from this repository may not have been tested as
        36  ## extensively as that contained in the main release, although it includes
        37  ## newer versions of some applications which may provide useful features.
        38  ## Also, please note that software in backports WILL NOT receive any review
        39  ## or updates from the Ubuntu security team.
        40  deb http://us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
        41  #(bdq)deb-src http://us.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
        42
        43  deb http://security.ubuntu.com/ubuntu raring-security main restricted
        44  #(bdq)deb-src http://security.ubuntu.com/ubuntu raring-security main restricted
        45  deb http://security.ubuntu.com/ubuntu raring-security universe
        46  #(bdq)deb-src http://security.ubuntu.com/ubuntu raring-security universe
        47  deb http://security.ubuntu.com/ubuntu raring-security multiverse
        48  #(bdq)deb-src http://security.ubuntu.com/ubuntu raring-security multiverse
        49
        50  ## Uncomment the following two lines to add software from Canonical's
        51  ## 'partner' repository.
        52  ## This software is not part of Ubuntu, but is offered by Canonical and the
        53  ## respective vendors as a service to Ubuntu users.
        54  #uncommented 23may2012
        55  deb http://archive.canonical.com/ubuntu raring partner
        56  # deb-src http://archive.canonical.com/ubuntu raring partner
        57
        58  ## Uncomment the following two lines to add software from Ubuntu's
        59  ## 'extras' repository.
        60  ## This software is not part of Ubuntu, but is offered by third-party
        61  ## developers who want to ship their latest software.
        62  #uncommented 23may2013
        63  deb http://extras.ubuntu.com/ubuntu raring main
        64  # deb-src http://extras.ubuntu.com/ubuntu raring main
    sysop@1304mini:~$
    we can do this
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  7. #7
    Join Date
    Nov 2013
    Beans
    9

    Re: Sub-process /usr/bin/dpkg returned an error code (1)

    I am comfortable with editing files, but I am not sure how to remove the repository or deb file. I am not sure what file type it is.

    sudo find / -name "spotify*"
    /home/chester/.local/share/Trash/info/spotify.trashinfo
    /home/chester/.local/share/spotify
    /home/chester/.config/spotify
    /home/chester/.cache/spotify
    /var/crash/spotify-client.0.crash
    /var/cache/apt/archives/spotify-client-qt_1%3a0.9.4.183.g644e24e.428-1_all.deb
    /var/cache/apt/archives/spotify-client_1%3a0.9.4.183.g644e24e.428-1_i386.deb
    /var/lib/dpkg/info/spotify-client-qt.list
    /var/lib/dpkg/info/spotify-client.prerm
    /var/lib/dpkg/info/spotify-client.postinst
    /var/lib/dpkg/info/spotify-client-qt.md5sums
    /var/lib/dpkg/info/spotify-client.list
    /var/lib/dpkg/info/spotify-client.md5sums
    /usr/bin/spotify
    /usr/share/applications/spotify.desktop
    /usr/share/icons/hicolor/24x24/apps/spotify-client.png
    /usr/share/icons/hicolor/128x128/apps/spotify-client.png
    /usr/share/icons/hicolor/32x32/apps/spotify-client.png
    /usr/share/icons/hicolor/64x64/apps/spotify-client.png
    /usr/share/icons/hicolor/512x512/apps/spotify-client.png
    /usr/share/icons/hicolor/256x256/apps/spotify-client.png
    /usr/share/icons/hicolor/16x16/apps/spotify-client.png
    /usr/share/icons/hicolor/48x48/apps/spotify-client.png
    /usr/share/icons/hicolor/22x22/apps/spotify-client.png
    /usr/share/doc/spotify-client-qt
    /usr/share/doc/spotify-client
    /usr/share/spotify

  8. #8
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    8,667
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Sub-process /usr/bin/dpkg returned an error code (1)

    huntinfreak55;
    Maybe there is enough for the package manager to work with. We will see directly after we get those dup lines removed from the sources list file.

    Terminal code:
    Code:
    sudo cp /etc/apt/sources.list /etc/apt/sources.list-orig
    gksudo gedit /etc/apt/sources.list
    Which opens the file for editing with admin privileges,
    arrow down to line 56 and delete it and all the lines after it. - the line numbers are not reflected in the file !-
    56 deb http://repository.spotify.com stable non-free
    57 deb http://repository.spotify.com stable non-free
    58 deb http://repository.spotify.com stable non-free
    59 deb http://repository.spotify.com stable non-free
    leaving line 55.

    Save and exit back to terminal,
    Now run terminal command:
    Code:
    sudo apt-get update
    making sure that runs clean prior to proceeding .

    progress, one step at a time
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  9. #9
    Join Date
    Nov 2013
    Beans
    9

    Re: Sub-process /usr/bin/dpkg returned an error code (1)

    Runs clean, lets do the next step.

  10. #10
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    8,667
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Sub-process /usr/bin/dpkg returned an error code (1)

    huntinfreak55; OK !

    As the .deb files still exist on your system, and you want to retain spotify.. let's try this:
    Code:
    sudo dpkg-reconfigure spotify-client
    Which is what the package manager originally advised to try.
    We will see what results from this and see what else is to be done.

    we be stepp'n
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

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