[GH-ISSUE #6923] https://ollama.com/install.sh creates contrib.list which just creates tons of warnings #66429

Open
opened 2026-05-04 05:06:53 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @julien-lecomte on GitHub (Sep 23, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6923

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

After running https://ollama.com/install.sh I now have a /etc/apt/sources.list.d/contrib.list which I never asked for and every apt-get update command now makes tons of warnings:

W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list.d/contrib.list:4
W: Target Packages (contrib/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list.d/contrib.list:4
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list.d/contrib.list:4
W: Target Translations (contrib/i18n/Translation-en_IE) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list.d/contrib.list:4
(etc. for a couple 200 lines in my case)

Of course, I'm going to fix the issue by removing /etc/apt/sources.list.d/contrib.list, but I believe it shouldn't be created in the first place. And if it has to be, please cleanup after your script by removing it yourself. A 2024 version of "Be kind, rewind" in some sort ;-)

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.3.11

Originally created by @julien-lecomte on GitHub (Sep 23, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6923 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? After running `https://ollama.com/install.sh` I now have a `/etc/apt/sources.list.d/contrib.list` which I never asked for and every `apt-get update` command now makes tons of warnings: ``` W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list.d/contrib.list:4 W: Target Packages (contrib/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list.d/contrib.list:4 W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list.d/contrib.list:4 W: Target Translations (contrib/i18n/Translation-en_IE) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list.d/contrib.list:4 (etc. for a couple 200 lines in my case) ``` Of course, I'm going to fix the issue by removing `/etc/apt/sources.list.d/contrib.list`, but I believe it shouldn't be created in the first place. And if it has to be, please cleanup after your script by removing it yourself. A 2024 version of "Be kind, rewind" in some sort ;-) ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version 0.3.11
GiteaMirror added the installbuglinux labels 2026-05-04 05:06:57 -05:00
Author
Owner

@dhiltgen commented on GitHub (Sep 25, 2024):

Sorry about that. It looks like our attempts to enable contrib didn't detect you already had it enabled. Can you clarify which distro and version you're running?

<!-- gh-comment-id:2372612354 --> @dhiltgen commented on GitHub (Sep 25, 2024): Sorry about that. It looks like our attempts to enable contrib didn't detect you already had it enabled. Can you clarify which distro and version you're running?
Author
Owner

@julien-lecomte commented on GitHub (Sep 25, 2024):

Sure, it's a classic Debian, nothing special:

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

and

$ uname -a
Linux desktop 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux

My /etc/apt/source.list looks like this:

# Original APT package sources gathered by Ansible
deb http://ftp.fr.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://ftp.fr.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://ftp.fr.debian.org/debian bookworm-backports main contrib non-free non-free-firmware

# Debian Security repository
deb http://security.debian.org/debian-security bookworm-security main

My /etc/apt/sources.list.d/, with contrib.list removed, now contains

$ ls /etc/apt/sources.list.d/
cuda-debian12-x86_64.list  extrepo_docker-ce.sources  extrepo_google_chrome.sources  extrepo_grafana.sources  extrepo_influxdb.sources  extrepo_steam.sources  lutris.list  steam-beta.list  steam-stable.list
<!-- gh-comment-id:2373098324 --> @julien-lecomte commented on GitHub (Sep 25, 2024): Sure, it's a classic Debian, nothing special: ``` $ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" ``` and ``` $ uname -a Linux desktop 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux ``` My `/etc/apt/source.list` looks like this: ``` # Original APT package sources gathered by Ansible deb http://ftp.fr.debian.org/debian bookworm main contrib non-free non-free-firmware deb http://ftp.fr.debian.org/debian bookworm-updates main contrib non-free non-free-firmware deb http://ftp.fr.debian.org/debian bookworm-backports main contrib non-free non-free-firmware # Debian Security repository deb http://security.debian.org/debian-security bookworm-security main ``` My `/etc/apt/sources.list.d/`, with `contrib.list` removed, now contains ``` $ ls /etc/apt/sources.list.d/ cuda-debian12-x86_64.list extrepo_docker-ce.sources extrepo_google_chrome.sources extrepo_grafana.sources extrepo_influxdb.sources extrepo_steam.sources lutris.list steam-beta.list steam-stable.list ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#66429