Problem removing a source

I’m trying to remove some sources which are causing problems but I am unable to.
The source I’m trying to remove is ‘owncloud’

Ive used

grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/*

To get a list of sources, but when I use Discover to list the sources, ‘owncloud’ is not there.

I get; (I created a gap of a couple of lines so that what I’m trying to remove is easily seen, near the bottom)

[spoiler]/etc/apt/sources.list:# deb cdrom:[Kubuntu 16.04.3 LTS Xenial Xerus - Release amd64 (20170801)]/ xenial universe restricted multiverse main
/etc/apt/sources.list:
/etc/apt/sources.list:# See UpgradeNotes - Community Help Wiki for how to upgrade to
/etc/apt/sources.list:# newer versions of the distribution.
/etc/apt/sources.list:deb Index of /ubuntu xenial restricted main
/etc/apt/sources.list:# deb-src Index of /ubuntu xenial main restricted
/etc/apt/sources.list:
/etc/apt/sources.list:## Major bug fix updates produced after the final release of the
/etc/apt/sources.list:## distribution.
/etc/apt/sources.list:deb Index of /ubuntu xenial-updates main restricted
/etc/apt/sources.list:# deb-src Index of /ubuntu xenial-updates main restricted
/etc/apt/sources.list:
/etc/apt/sources.list:## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
/etc/apt/sources.list:## team. Also, please note that software in universe WILL NOT receive any
/etc/apt/sources.list:## review or updates from the Ubuntu security team.
/etc/apt/sources.list:deb Index of /ubuntu xenial universe
/etc/apt/sources.list:# deb-src Index of /ubuntu xenial universe
/etc/apt/sources.list:deb Index of /ubuntu xenial-updates universe
/etc/apt/sources.list:# deb-src Index of /ubuntu xenial-updates universe
/etc/apt/sources.list:
/etc/apt/sources.list:## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
/etc/apt/sources.list:## team, and may not be under a free licence. Please satisfy yourself as to
/etc/apt/sources.list:## your rights to use the software. Also, please note that software in
/etc/apt/sources.list:## multiverse WILL NOT receive any review or updates from the Ubuntu
/etc/apt/sources.list:## security team.
/etc/apt/sources.list:deb Index of /ubuntu xenial multiverse
/etc/apt/sources.list:# deb-src Index of /ubuntu xenial multiverse
/etc/apt/sources.list:deb Index of /ubuntu xenial-updates multiverse
/etc/apt/sources.list:# deb-src Index of /ubuntu xenial-updates multiverse
/etc/apt/sources.list:
/etc/apt/sources.list:## N.B. software from this repository may not have been tested as
/etc/apt/sources.list:## extensively as that contained in the main release, although it includes
/etc/apt/sources.list:## newer versions of some applications which may provide useful features.
/etc/apt/sources.list:## Also, please note that software in backports WILL NOT receive any review
/etc/apt/sources.list:## or updates from the Ubuntu security team.
/etc/apt/sources.list:deb Index of /ubuntu xenial-backports multiverse universe restricted main
/etc/apt/sources.list:# deb-src Index of /ubuntu xenial-backports multiverse universe restricted main
/etc/apt/sources.list:
/etc/apt/sources.list:## Uncomment the following two lines to add software from Canonical’s
/etc/apt/sources.list:## ‘partner’ repository.
/etc/apt/sources.list:## This software is not part of Ubuntu, but is offered by Canonical and the
/etc/apt/sources.list:## respective vendors as a service to Ubuntu users.
/etc/apt/sources.list:deb Index of /ubuntu xenial partner
/etc/apt/sources.list:# deb-src Index of /ubuntu xenial partner
/etc/apt/sources.list:
/etc/apt/sources.list:# deb-src Index of /ubuntu xenial-security restricted main
/etc/apt/sources.list:deb Index of /ubuntu xenial-security universe
/etc/apt/sources.list:# deb-src Index of /ubuntu xenial-security universe
/etc/apt/sources.list:deb Index of /ubuntu xenial-security multiverse
/etc/apt/sources.list:# deb-src Index of /ubuntu xenial-security multiverse
/etc/apt/sources.list:deb index - powered by h5ai v0.30.0 (https://larsjung.de/h5ai/) xenial main
/etc/apt/sources.list:# deb-src index - powered by h5ai v0.30.0 (https://larsjung.de/h5ai/) xenial main
/etc/apt/sources.list:deb http://liveusb.info/multisystem/depot/ all main
/etc/apt/sources.list:# deb-src http://liveusb.info/multisystem/depot/ all main
/etc/apt/sources.list:# deb https://deb.torproject.org/torproject.org/ xenial main
/etc/apt/sources.list:# deb-src https://deb.torproject.org/torproject.org/ xenial main
/etc/apt/sources.list:
/etc/apt/sources.list.d/alessandro-strada-ubuntu-ppa-xenial.list:deb Index of /alessandro-strada/ppa/ubuntu xenial main
/etc/apt/sources.list.d/alessandro-strada-ubuntu-ppa-xenial.list:# deb-src Index of /alessandro-strada/ppa/ubuntu xenial main
/etc/apt/sources.list.d/alessandro-strada-ubuntu-ppa-xenial.list:
/etc/apt/sources.list.d/alessandro-strada-ubuntu-ppa-xenial.list.save:deb Index of /alessandro-strada/ppa/ubuntu xenial main
/etc/apt/sources.list.d/alessandro-strada-ubuntu-ppa-xenial.list.save:# deb-src Index of /alessandro-strada/ppa/ubuntu xenial main
/etc/apt/sources.list.d/alessandro-strada-ubuntu-ppa-xenial.list.save:
/etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-xenial.list:deb Index of /deadsnakes/ppa/ubuntu xenial main
/etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-xenial.list:# deb-src Index of /deadsnakes/ppa/ubuntu xenial main
/etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-xenial.list:
/etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-xenial.list.save:deb Index of /deadsnakes/ppa/ubuntu xenial main
/etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-xenial.list.save:# deb-src Index of /deadsnakes/ppa/ubuntu xenial main
/etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-xenial.list.save:
/etc/apt/sources.list.d/fengestad-ubuntu-stable-xenial.list:deb Index of /fengestad/stable/ubuntu xenial main
/etc/apt/sources.list.d/fengestad-ubuntu-stable-xenial.list:# deb-src Index of /fengestad/stable/ubuntu xenial main
/etc/apt/sources.list.d/flexiondotorg-ubuntu-youtube-dl-gui-xenial.list:deb Index of /flexiondotorg/youtube-dl-gui/ubuntu xenial main
/etc/apt/sources.list.d/flexiondotorg-ubuntu-youtube-dl-gui-xenial.list:# deb-src Index of /flexiondotorg/youtube-dl-gui/ubuntu xenial main
/etc/apt/sources.list.d/flexiondotorg-ubuntu-youtube-dl-gui-xenial.list:
/etc/apt/sources.list.d/flexiondotorg-ubuntu-youtube-dl-gui-xenial.list.save:deb Index of /flexiondotorg/youtube-dl-gui/ubuntu xenial main
/etc/apt/sources.list.d/flexiondotorg-ubuntu-youtube-dl-gui-xenial.list.save:# deb-src Index of /flexiondotorg/youtube-dl-gui/ubuntu xenial main
/etc/apt/sources.list.d/flexiondotorg-ubuntu-youtube-dl-gui-xenial.list.save:
/etc/apt/sources.list.d/getdeb.list:deb Ubuntu - GetDeb xenial-getdeb apps
/etc/apt/sources.list.d/getdeb.list:
/etc/apt/sources.list.d/getdeb.list.save:deb Ubuntu - GetDeb xenial-getdeb apps
/etc/apt/sources.list.d/getdeb.list.save:
/etc/apt/sources.list.d/google-chrome.list:###
/etc/apt/sources.list.d/google-chrome.list:### THIS FILE IS AUTOMATICALLY CONFIGURED ###
/etc/apt/sources.list.d/google-chrome.list:# You may comment out this entry, but any other modifications may be lost.
/etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/google-chrome.list:
/etc/apt/sources.list.d/google-chrome.list.save:###
/etc/apt/sources.list.d/google-chrome.list.save:### THIS FILE IS AUTOMATICALLY CONFIGURED ###
/etc/apt/sources.list.d/google-chrome.list.save:# You may comment out this entry, but any other modifications may be lost.
/etc/apt/sources.list.d/google-chrome.list.save:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/google-chrome.list.save:
/etc/apt/sources.list.d/google-earth.list:###
/etc/apt/sources.list.d/google-earth.list:### THIS FILE IS AUTOMATICALLY CONFIGURED ###
/etc/apt/sources.list.d/google-earth.list:# You may comment out this entry, but any other modifications may be lost.
/etc/apt/sources.list.d/google-earth.list:# deb http://dl.google.com/linux/earth/deb/ stable main
/etc/apt/sources.list.d/google-earth.list:
/etc/apt/sources.list.d/google-earth.list.save:###
/etc/apt/sources.list.d/google-earth.list.save:### THIS FILE IS AUTOMATICALLY CONFIGURED ###
/etc/apt/sources.list.d/google-earth.list.save:# You may comment out this entry, but any other modifications may be lost.
/etc/apt/sources.list.d/google-earth.list.save:# deb http://dl.google.com/linux/earth/deb/ stable main
/etc/apt/sources.list.d/google-earth.list.save:
/etc/apt/sources.list.d/inkscape_dev-ubuntu-stable-xenial.list:deb Index of /inkscape.dev/stable/ubuntu xenial main
/etc/apt/sources.list.d/inkscape_dev-ubuntu-stable-xenial.list:# deb-src Index of /inkscape.dev/stable/ubuntu xenial main
/etc/apt/sources.list.d/inkscape_dev-ubuntu-stable-xenial.list:
/etc/apt/sources.list.d/inkscape_dev-ubuntu-stable-xenial.list.save:deb Index of /inkscape.dev/stable/ubuntu xenial main
/etc/apt/sources.list.d/inkscape_dev-ubuntu-stable-xenial.list.save:# deb-src Index of /inkscape.dev/stable/ubuntu xenial main
/etc/apt/sources.list.d/inkscape_dev-ubuntu-stable-xenial.list.save:

/etc/apt/sources.list.d/isv:ownCloud:desktop.list:deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04/ /
/etc/apt/sources.list.d/isv:ownCloud:desktop.list.save:deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04/ /

/etc/apt/sources.list.d/kubuntu-ppa-ubuntu-backports-xenial.list:deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ xenial main
/etc/apt/sources.list.d/kubuntu-ppa-ubuntu-backports-xenial.list:# deb-src http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ xenial main
/etc/apt/sources.list.d/kubuntu-ppa-ubuntu-backports-xenial.list:
/etc/apt/sources.list.d/kubuntu-ppa-ubuntu-backports-xenial.list.save:deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ xenial main
/etc/apt/sources.list.d/kubuntu-ppa-ubuntu-backports-xenial.list.save:# deb-src http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ xenial main
/etc/apt/sources.list.d/kubuntu-ppa-ubuntu-backports-xenial.list.save:
/etc/apt/sources.list.d/nilarimogard-ubuntu-webupd8-xenial.list:deb http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/ xenial main
/etc/apt/sources.list.d/nilarimogard-ubuntu-webupd8-xenial.list:# deb-src http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/ xenial main
/etc/apt/sources.list.d/nilarimogard-ubuntu-webupd8-xenial.list:
/etc/apt/sources.list.d/nilarimogard-ubuntu-webupd8-xenial.list.save:deb http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/ xenial main
/etc/apt/sources.list.d/nilarimogard-ubuntu-webupd8-xenial.list.save:# deb-src http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/ xenial main
/etc/apt/sources.list.d/nilarimogard-ubuntu-webupd8-xenial.list.save:
/etc/apt/sources.list.d/obsproject-ubuntu-obs-studio-xenial.list:deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu/ xenial main
/etc/apt/sources.list.d/obsproject-ubuntu-obs-studio-xenial.list:# deb-src http://ppa.launchpad.net/obsproject/obs-studio/ubuntu/ xenial main
/etc/apt/sources.list.d/obsproject-ubuntu-obs-studio-xenial.list:
/etc/apt/sources.list.d/obsproject-ubuntu-obs-studio-xenial.list.save:deb http://ppa.launchpad.net/obsproject/obs-studio/ubuntu/ xenial main
/etc/apt/sources.list.d/obsproject-ubuntu-obs-studio-xenial.list.save:# deb-src http://ppa.launchpad.net/obsproject/obs-studio/ubuntu/ xenial main
/etc/apt/sources.list.d/obsproject-ubuntu-obs-studio-xenial.list.save:
/etc/apt/sources.list.d/skype-stable.list:deb [arch=amd64] https://repo.skype.com/deb stable main
/etc/apt/sources.list.d/skype-stable.list.save:deb [arch=amd64] https://repo.skype.com/deb stable main
/etc/apt/sources.list.d/team-xbmc-ubuntu-ppa-xenial.list:deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ xenial main
/etc/apt/sources.list.d/team-xbmc-ubuntu-ppa-xenial.list:# deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ xenial main
/etc/apt/sources.list.d/team-xbmc-ubuntu-ppa-xenial.list:
/etc/apt/sources.list.d/team-xbmc-ubuntu-ppa-xenial.list.save:deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ xenial main
/etc/apt/sources.list.d/team-xbmc-ubuntu-ppa-xenial.list.save:# deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu/ xenial main
/etc/apt/sources.list.d/team-xbmc-ubuntu-ppa-xenial.list.save:[/spoiler]

I don’t know what to do to get rid of the entries.

What’s the output from:

ls /etc/apt/sources.list.d

?

Because it looks like these are the two for owncloud:-

/etc/apt/sources.list.d/isv:ownCloud:desktop.list:deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04/ /
/etc/apt/sources.list.d/isv:ownCloud:desktop.list.save:deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04/ /

But be aware, simply removing the repo is unlikely to for a version/dependency issue on its own.


BTW, are you trying to set some kind of record for number of PPA’s added (and subsequent dependency hell) ?

ls /etc/apt/sources.list.d

alessandro-strada-ubuntu-ppa-xenial.list
alessandro-strada-ubuntu-ppa-xenial.list.save
deadsnakes-ubuntu-ppa-xenial.list
deadsnakes-ubuntu-ppa-xenial.list.save
fengestad-ubuntu-stable-xenial.list
flexiondotorg-ubuntu-youtube-dl-gui-xenial.list
flexiondotorg-ubuntu-youtube-dl-gui-xenial.list.save
getdeb.list
getdeb.list.save
google-chrome.list
google-chrome.list.save
google-earth.list
google-earth.list.save
inkscape_dev-ubuntu-stable-xenial.list
inkscape_dev-ubuntu-stable-xenial.list.save
isv:ownCloud:desktop.list
isv:ownCloud:desktop.list.save
kubuntu-ppa-ubuntu-backports-xenial.list
kubuntu-ppa-ubuntu-backports-xenial.list.save
nilarimogard-ubuntu-webupd8-xenial.list
nilarimogard-ubuntu-webupd8-xenial.list.save
obsproject-ubuntu-obs-studio-xenial.list
obsproject-ubuntu-obs-studio-xenial.list.save
skype-stable.list
skype-stable.list.save
team-xbmc-ubuntu-ppa-xenial.list
team-xbmc-ubuntu-ppa-xenial.list.save

Re the number of PPA’s, no not really, I noticed that too, arent there a lot identical, can we get rid of the unnecessary ones while were at it?

Deleting these 2 files will get rid of the owncloud repo

/etc/apt/sources.list.d/sv:ownCloud:desktop.list
/etc/apt/sources.list.d/isv:ownCloud:desktop.list.save

the running

sudo apt-get update

but rather than delete them you’d probably be better served just DISABLING them in synaptic … or by commenting out their contents.

BTW, there are no duplicates … only the repos, and their backups (that end with .save).

So, to see if they’re all needed, what’s the command I use to get a list of the programs they update?

grep ^Package: /var/lib/apt/lists/ppa.launchpad.net_*_Packages

will list all packages installed from PPA’s

or you can list the package repos by running

ls /var/lib/apt/lists

then list for example all the packages from say “ppa.launchpad.net_libreoffice_ppa_ubuntu_dists_bionic_main_binary-amd64_Packages” with

grep Package /var/lib/apt/lists/ppa.launchpad.net_libreoffice_ppa_ubuntu_dists_bionic_main_binary-amd64_Packages

source:
https://www.ostechnix.com/list-installed-packages-certain-repository-linux/

I’m not sure how to ask or do it, what I need to do is remove owncloud which is causing problems.

Impossible to answer without knowing the problem the owncloud repo is giving you

my last but one response tells you how to remove the repo … but I suspect it’s some packages installed via that repo that are your issue … removing the repo won’t uninstall the packages installed from it, that you’ll need to do manually.

I get the error when I execute the following…

sudo apt-get update

Hit:1 Index of /ubuntu xenial InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease
Get:3 Index of /ubuntu xenial-updates InRelease [109 kB]
Hit:4 http://dl.google.com/linux/chrome/deb stable Release
Get:5 Index of /alessandro-strada/ppa/ubuntu xenial InRelease [17.5 kB]
Hit:6 Index of /ubuntu xenial InRelease
Get:7 Index of /ubuntu xenial-backports InRelease [107 kB]
Hit:8 Index of /deadsnakes/ppa/ubuntu xenial InRelease
Get:9 Index of /ubuntu xenial-security InRelease [107 kB]
Hit:10 Index of /fengestad/stable/ubuntu xenial InRelease
Hit:11 Index of /flexiondotorg/youtube-dl-gui/ubuntu xenial InRelease
Ign:12 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04 InRelease
Get:13 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04 Release [1,034 B]
Hit:14 Index of /inkscape.dev/stable/ubuntu xenial InRelease
Get:15 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04 Release.gpg [481 B]
Hit:16 Index of /kubuntu-ppa/backports/ubuntu xenial InRelease
Hit:18 Index of /nilarimogard/webupd8/ubuntu xenial InRelease
Hit:19 Index of /deb stable InRelease
Ign:20 index - powered by h5ai v0.30.0 (https://larsjung.de/h5ai/) xenial InRelease
Hit:21 Index of /obsproject/obs-studio/ubuntu xenial InRelease
Get:22 index - powered by h5ai v0.30.0 (https://larsjung.de/h5ai/) xenial Release [6,597 B]
Hit:23 Index of /team-xbmc/ppa/ubuntu xenial InRelease
Get:24 index - powered by h5ai v0.30.0 (https://larsjung.de/h5ai/) xenial Release.gpg [833 B]
Get:25 Index of /alessandro-strada/ppa/ubuntu xenial/main amd64 Packages [1,364 B]
Get:26 Ubuntu - GetDeb xenial-getdeb InRelease
Err:26 Ubuntu - GetDeb xenial-getdeb InRelease
Clearsigned file isn’t valid, got ‘NOSPLIT’ (does the network require authentication?)
Get:27 Index of /alessandro-strada/ppa/ubuntu xenial/main i386 Packages [1,368 B]
Get:28 Index of /ubuntu xenial-updates/main amd64 Packages [884 kB]
Get:29 Index of /alessandro-strada/ppa/ubuntu xenial/main Translation-en [932 B]
Get:30 Index of /ubuntu xenial-updates/main i386 Packages [786 kB]
Get:31 Index of /ubuntu xenial-updates/main amd64 DEP-11 Metadata [320 kB]
Ign:32 http://liveusb.info/multisystem/depot all InRelease
Get:33 Index of /ubuntu xenial-updates/main DEP-11 64x64 Icons [227 kB]
Hit:34 http://liveusb.info/multisystem/depot all Release
Get:35 Index of /ubuntu xenial-updates/universe amd64 Packages [706 kB]
Get:36 Index of /ubuntu xenial-updates/universe i386 Packages [647 kB]
Get:37 Index of /ubuntu xenial-updates/universe amd64 DEP-11 Metadata [247 kB]
Get:38 Index of /ubuntu xenial-updates/universe DEP-11 64x64 Icons [333 kB]
Get:39 Index of /ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,960 B]
Get:40 Index of /ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [14.3 kB]
Get:41 Index of /ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5,104 B]
Get:42 Index of /ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
Get:43 Index of /ubuntu xenial-security/universe amd64 DEP-11 Metadata [108 kB]
Get:44 Index of /ubuntu xenial-security/universe DEP-11 64x64 Icons [145 kB]
Ign:15 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04 Release.gpg
Hit:45 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04 Packages
Fetched 4,783 kB in 3s (1,368 kB/s)
Reading package lists… Done
W: GPG error: http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04 Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 4ABE1AC7557BEFF9
W: The repository ‘http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04 Release’ is not signed.
N: Data from such a repository can’t be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://archive.getdeb.net/ubuntu/dists/xenial-getdeb/InRelease Clearsigned file isn’t valid, got ‘NOSPLIT’ (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.

Add the key for the owncloud repo:

wget -qO - http://download.owncloud.org/download/repositories/stable/Ubuntu_16.04/Release.key | sudo apt-key add -

enter your password when prompted, then hit enter.

Also add this key because you don’t appear to have the normal repo

wget -qO - http://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_16.04/Release.key | sudo apt-key add -

Now delete the getdeb repo because they’ve been abandoned:

cd /etc/apt/sources.list.d

then

sudo rm -v getdeb.list

then

sudo rm -v getdeb.list.save

now see if you get any errors from:

sudo apt-get update