Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

apt repos changed

Options
  • 06-12-2018 12:59am
    #1
    Closed Accounts Posts: 12,807 ✭✭✭✭


    Ok so I blindly follow instructions without question - my bad.

    Plex on my server is an update behind but wasn't showing up in apt --upgradeable. So I looked on their site.

    Here's what I had before:
    sudo apt update
    Hit:1 http://ie.archive.ubuntu.com/ubuntu bionic InRelease
    Get:2 http://ie.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
    Hit:3 http://apt.sonarr.tv master InRelease
    Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
    Get:5 http://ie.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
    Get:6 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
    Get:7 http://ie.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [397 kB]
    Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [10.6 kB]
    Get:9 http://ie.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [454 kB]
    Get:10 http://ie.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [234 kB]
    Get:11 http://ie.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [52.2 kB]
    Get:12 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [20.1 kB]
    Get:13 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [1,608 B]
    Get:14 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [1,440 B]
    Get:15 http://ie.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [99.1 kB]
    Get:16 http://ie.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [581 kB]
    Get:17 http://ie.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [588 kB]
    Get:18 http://ie.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [195 kB]
    Get:19 http://ie.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [187 kB]
    Get:20 http://ie.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [323 kB]
    Get:21 http://ie.archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [6,524 B]
    Get:22 http://ie.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [6,372 B]
    Get:23 http://ie.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
    Get:24 http://ie.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5,812 B]
    

    I ran this:
    sudo curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
    

    And now I have this:
    sudo apt update
    Hit:1 http://apt.sonarr.tv master InRelease
    Hit:2 http://ie.archive.ubuntu.com/ubuntu bionic InRelease
    Get:3 http://ie.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
    Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
    Get:5 http://ie.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
    

    All the multiverse, universe,main repos missing. Thing is they are all still showing up in /etc/apt/sources.list
    cat /etc/apt/sources.list # plex
    #deb cdrom:[Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/ bionic main restricted
    
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://ie.archive.ubuntu.com/ubuntu/ bionic main restricted
    # deb-src http://ie.archive.ubuntu.com/ubuntu/ bionic main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://ie.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    # deb-src http://ie.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://ie.archive.ubuntu.com/ubuntu/ bionic universe
    # deb-src http://ie.archive.ubuntu.com/ubuntu/ bionic universe
    deb http://ie.archive.ubuntu.com/ubuntu/ bionic-updates universe
    # deb-src http://ie.archive.ubuntu.com/ubuntu/ bionic-updates universe
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://ie.archive.ubuntu.com/ubuntu/ bionic multiverse
    # deb-src http://ie.archive.ubuntu.com/ubuntu/ bionic multiverse
    deb http://ie.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    # deb-src http://ie.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://ie.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
    # deb-src http://ie.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
    
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    # deb http://archive.canonical.com/ubuntu bionic partner
    # deb-src http://archive.canonical.com/ubuntu bionic partner
    
    deb http://security.ubuntu.com/ubuntu bionic-security main restricted
    # deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
    deb http://security.ubuntu.com/ubuntu bionic-security universe
    # deb-src http://security.ubuntu.com/ubuntu bionic-security universe
    deb http://security.ubuntu.com/ubuntu bionic-security multiverse
    # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
    macros42@Rillanon:/etc/apt$
    macros42@Rillanon:/etc/apt$
    macros42@Rillanon:/etc/apt$ cat /etc/apt/sources.list | grep plex
    macros42@Rillanon:/etc/apt$
    macros42@Rillanon:/etc/apt$
    macros42@Rillanon:/etc/apt$ cat /etc/apt/sources.list | grep sonarr
    macros42@Rillanon:/etc/apt$
    macros42@Rillanon:/etc/apt$
    macros42@Rillanon:/etc/apt$ ls/etc/apt/sources.list
    -bash: ls/etc/apt/sources.list: No such file or directory
    macros42@Rillanon:/etc/apt$ ls /etc/apt/sources.list
    -rw-rw-r-- 1 root root 2904 Nov  9 14:38 /etc/apt/sources.list
    macros42@Rillanon:/etc/apt$
    macros42@Rillanon:/etc/apt$
    macros42@Rillanon:/etc/apt$
    macros42@Rillanon:/etc/apt$ cat /etc/apt/sources.list
    #deb cdrom:[Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/ bionic main restricted
    
    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb http://ie.archive.ubuntu.com/ubuntu/ bionic main restricted
    # deb-src http://ie.archive.ubuntu.com/ubuntu/ bionic main restricted
    
    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb http://ie.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    # deb-src http://ie.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb http://ie.archive.ubuntu.com/ubuntu/ bionic universe
    # deb-src http://ie.archive.ubuntu.com/ubuntu/ bionic universe
    deb http://ie.archive.ubuntu.com/ubuntu/ bionic-updates universe
    # deb-src http://ie.archive.ubuntu.com/ubuntu/ bionic-updates universe
    
    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb http://ie.archive.ubuntu.com/ubuntu/ bionic multiverse
    # deb-src http://ie.archive.ubuntu.com/ubuntu/ bionic multiverse
    deb http://ie.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    # deb-src http://ie.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    
    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb http://ie.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
    # deb-src http://ie.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
    
    ## Uncomment the following two lines to add software from Canonical's
    ## 'partner' repository.
    ## This software is not part of Ubuntu, but is offered by Canonical and the
    ## respective vendors as a service to Ubuntu users.
    # deb http://archive.canonical.com/ubuntu bionic partner
    # deb-src http://archive.canonical.com/ubuntu bionic partner
    
    deb http://security.ubuntu.com/ubuntu bionic-security main restricted
    # deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
    deb http://security.ubuntu.com/ubuntu bionic-security universe
    # deb-src http://security.ubuntu.com/ubuntu bionic-security universe
    deb http://security.ubuntu.com/ubuntu bionic-security multiverse
    # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
    

    How can I reverse what I did?


Comments

  • Registered Users Posts: 45 melchior1951


    Plex Ubuntu packages sometimes run a bit behind the version check. The new version should be there soon.

    The command you ran definitely didn't break anything. That just added the Plex repository's PGP key to the apt truststore. You normally only have to do that once when you add a new repository that is not provided by Ubuntu. So running it again wouldn't fix anything either. Just check that you have the Plex repository actually installed because it doesn't show up there. It should be in /etc/apt/sources.list.d/plexmediaserver.list

    Also don't worry about the update output. There just wasn't more to download. So your server looks to be totally fine!


  • Closed Accounts Posts: 12,807 ✭✭✭✭Orion


    hmm it's there but all commented out. Not a great instruction page :)
    cat /etc/apt/sources.list.d/plexmediaserver.list
    # When enabling this repo please remember to add the PlexPublic.Key into the apt setup.
    # wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | sudo apt-key add -
    #deb https://downloads.plex.tv/repo/deb/ public main
    


  • Registered Users Posts: 45 melchior1951


    Probably the repository doesn't get automatically enabled. Just uncomment that line
    deb https://downloads.plex.tv/repo/deb/ public main
    

    and run apt update && apt upgrade again.


Advertisement