[sane-devel] error messages from add-apt-repository sane-release
Ralph Little
skelband at gmail.com
Fri May 21 23:57:46 BST 2021
Hi,
On Fri, May 21, 2021 at 2:57 PM Perry Hutchison <pluto at agora.rdrop.com>
wrote:
> Ralph Little <skelband at gmail.com> wrote:
> > On Fri, May 21, 2021 at 11:47 AM Perry Hutchison via sane-devel
> > <sane-devel at alioth-lists.debian.net> wrote:
> >
> > > In attempting to add the sane-release repository, I got a 404 error
> > > and subsequently a "... disabled by default." message. Did I do
> > > something wrong?
> > >
> > > $ sudo add-apt-repository
> > > https://launchpad.net/~sane-project/+archive/ubuntu/sane-release
> > > ...
> > > Err:5 https://launchpad.net/~sane-project/+archive/ubuntu/sane-release
> > > bionic Release
> > > 404 Not Found [IP: 91.189.89.222 443]
> > > ...
> > > Reading package lists... Done
> > >
> > > E: The repository '
> > > https://launchpad.net/~sane-project/+archive/ubuntu/sane-release
> bionic
> > > Release' does not have a Release file.
> > > N: Updating from such a repository can't be done securely, and is
> > > therefore disabled by default.
> > > N: See apt-secure(8) manpage for repository creation and user
> > > configuration details.
> > >
> > > $ cat /usr/lib/os-release
> > > NAME="Ubuntu"
> > > VERSION="18.04.5 LTS (Bionic Beaver)"
> > > ID=ubuntu
> > > ID_LIKE=debian
> > > PRETTY_NAME="Ubuntu 18.04.5 LTS"
> > > VERSION_ID="18.04"
> > > HOME_URL="https://www.ubuntu.com/"
> > > SUPPORT_URL="https://help.ubuntu.com/"
> > > BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
> > > PRIVACY_POLICY_URL="
> > > https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
> > > VERSION_CODENAME=bionic
> > > UBUNTU_CODENAME=bionic
> > >
> > I believe that all you need do is the following:
> >
> > sudo add-apt-repository ppa:sane-project/sane-release
> >
> > Before that, I would go into /etc/apt/sources.list.d and remove anything
> > SANE related in there.
> > Looks like you have some items in there that are not correct.
>
> After checking /etc/apt/sources.list.d (which was empty), I tried
> adding ppa:sane-project/sane-release, with very similar 404 error
> and "... disabled by default" messages.
>
> $ sudo add-apt-repository ppa:sane-project/sane-release
> Ubuntu SANE packages from SANE Stable Source (
> https://gitlab.com/sane-project/backends/-/releases).
>
> Please send scanner related questions to the SANE mailing list:
> sane-devel at alioth-lists dot debian dot net.
>
> If you need the more recent scanner driver from git, you can use my other
> PPA: https://launchpad.net/~sane-project/+archive/ubuntu/sane-git.
> More info:
> https://launchpad.net/~sane-project/+archive/ubuntu/sane-release
> Press [ENTER] to continue or Ctrl-c to cancel adding it.
>
> Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
> Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7
> kB]
> Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7
> kB]
> Get:4 http://ppa.launchpad.net/sane-project/sane-release/ubuntu bionic
> InRelease [15.9 kB]
> Get:5 http://ppa.launchpad.net/sane-project/sane-release/ubuntu
> bionic/main i386 Packages [1,580 B]
> Ign:6 https://launchpad.net/~sane-project/+archive/ubuntu/sane-release
> bionic InRelease
> Get:7 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
> [74.6 kB]
> Get:8 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11
> Metadata [48.6 kB]
> Err:9 https://launchpad.net/~sane-project/+archive/ubuntu/sane-release
> bionic Release
> 404 Not Found [IP: 91.189.89.223 443]
> Get:10 http://ppa.launchpad.net/sane-project/sane-release/ubuntu
> bionic/main amd64 Packages [1,580 B]
> Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe amd64
> DEP-11 Metadata [60.4 kB]
> Get:12 http://ppa.launchpad.net/sane-project/sane-release/ubuntu
> bionic/main Translation-en [1,008 B]
> Get:13 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386
> Packages [1,287 kB]
> Get:14 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64
> DEP-11 Metadata [2,464 B]
> Get:15 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64
> Packages [2,070 kB]
> Get:16 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64
> DEP-11 Metadata [294 kB]
> Get:17 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64
> Packages [1,735 kB]
> Get:18 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe i386
> Packages [1,567 kB]
> Get:19 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64
> DEP-11 Metadata [290 kB]
> Get:20 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse
> amd64 DEP-11 Metadata [2,468 B]
> Get:21 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe
> amd64 DEP-11 Metadata [9,288 B]
> Reading package lists... Done
>
> E: The repository '
> https://launchpad.net/~sane-project/+archive/ubuntu/sane-release bionic
> Release' does not have a Release file.
> N: Updating from such a repository can't be done securely, and is
> therefore disabled by default.
> N: See apt-secure(8) manpage for repository creation and user
> configuration details.
>
> However this time it did add a file to /etc/apt/sources.list.d:
>
> $ ll /etc/apt/sources.list.d
> total 12
> drwxr-xr-x 2 root root 4096 May 21 14:08 ./
> drwxr-xr-x 7 root root 4096 May 21 10:42 ../
> -rw-r--r-- 1 root root 154 May 21 14:09
> sane-project-ubuntu-sane-release-bionic.list
>
> $ cat /etc/apt/sources.list.d/sane-*
> deb http://ppa.launchpad.net/sane-project/sane-release/ubuntu bionic main
> # deb-src http://ppa.launchpad.net/sane-project/sane-release/ubuntu
> bionic main
>
> Does this mean that it worked, despite the error messages?
>
Yes, it looks like you have two entries though. This one looks weird:
Err:9 https://launchpad.net/~sane-project/+archive/ubuntu/sane-release
bionic Release
404 Not Found [IP: 91.189.89.223 443]
...so it looks like you have an additional bogus repo definition somewhere.
Perhaps look for it in /etc/apt:
grep -ri "sane-project" .
...and if you find something, nuke it. It looks like it can be recognised
by the "~sane-project" part.
Cheers,
Ralph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20210521/c3bb7254/attachment.htm>
More information about the sane-devel
mailing list