Solved To Comment Out or Not in the Sources.list

Solved issue

Alexzee

Silver Member
Silver Supporter
Joined
Jun 1, 2019
Messages
5,103
Reaction score
3,091
Credits
32,664
I needed the safe eyes program installed for my Debian Trixie install.
So I added the bookworm backport to my sources.list.

Code:
# Backports allow you to install newer versions of software made available for this release
deb http://deb.debian.org/debian trixie-backports main non-free-firmware
deb-src http://deb.debian.org/debian trixie-backports main non-free-firmware

deb http://deb.debian.org/debian bookworm main
 
Alex: sudo apt update
Hit:1 http://deb.debian.org/debian trixie InRelease
Hit:2 http://security.debian.org/debian-security trixie-security InRelease                                         
Hit:3 http://deb.debian.org/debian trixie-updates InRelease                                                         
Hit:4 http://deb.debian.org/debian trixie-backports InRelease                                                       
Get:5 http://deb.debian.org/debian bookworm InRelease [151 kB]                                                     
Hit:6 https://packages.microsoft.com/repos/code stable InRelease                                                   
Get:7 http://deb.debian.org/debian bookworm/main amd64 Packages [8,792 kB]
Get:8 http://deb.debian.org/debian bookworm/main Translation-en [6,108 kB]
Get:9 https://packages.mozilla.org/apt mozilla InRelease [1,522 B]                 
Get:10 https://packages.mozilla.org/apt mozilla/main all Packages [5,226 kB]                       
Get:11 https://packages.mozilla.org/apt mozilla/main amd64 Packages [103 kB]
Fetched 20.4 MB in 2s (12.1 MB/s) 
All packages are up to date. 
Alex: sudo apt install safeeyes
Installing:                   
  safeeyes

Installing dependencies:
  gir1.2-notify-0.7  python-babel-localedata  python3-babel  python3-croniter  python3-dateutil  python3-pytz  python3-tz  python3-xlib  xprintidle

Summary:
  Upgrading: 0, Installing: 10, Removing: 0, Not Upgrading: 0
  Download size: 6,820 kB
  Space needed: 35.6 MB / 876 GB available

Continue? [Y/n] Y

Once the program is installed my thinking is that I would need to go back and edit my sources.list and place a pound sign in front of the the url that is pulling from the bookworm main backport. I wouldn't want to pull in bookworm pkg's into my current Trixie installation.

Am I right on this?
 

Attachments

  • Sources.list.png
    Sources.list.png
    155.7 KB · Views: 59
Last edited:


I needed the safe eyes program installed for my Debian Trixie install.
So I added the bookworm backport to my sources.list.

Code:
# Backports allow you to install newer versions of software made available for this release
deb http://deb.debian.org/debian trixie-backports main non-free-firmware
deb-src http://deb.debian.org/debian trixie-backports main non-free-firmware

deb http://deb.debian.org/debian bookworm main
 
Alex: sudo apt update
Hit:1 http://deb.debian.org/debian trixie InRelease
Hit:2 http://security.debian.org/debian-security trixie-security InRelease                                       
Hit:3 http://deb.debian.org/debian trixie-updates InRelease                                                       
Hit:4 http://deb.debian.org/debian trixie-backports InRelease                                                     
Get:5 http://deb.debian.org/debian bookworm InRelease [151 kB]                                                   
Hit:6 https://packages.microsoft.com/repos/code stable InRelease                                                 
Get:7 http://deb.debian.org/debian bookworm/main amd64 Packages [8,792 kB]
Get:8 http://deb.debian.org/debian bookworm/main Translation-en [6,108 kB]
Get:9 https://packages.mozilla.org/apt mozilla InRelease [1,522 B]               
Get:10 https://packages.mozilla.org/apt mozilla/main all Packages [5,226 kB]                     
Get:11 https://packages.mozilla.org/apt mozilla/main amd64 Packages [103 kB]
Fetched 20.4 MB in 2s (12.1 MB/s)
All packages are up to date.
Alex: sudo apt install safeeyes
Installing:                 
  safeeyes

Installing dependencies:
  gir1.2-notify-0.7  python-babel-localedata  python3-babel  python3-croniter  python3-dateutil  python3-pytz  python3-tz  python3-xlib  xprintidle

Summary:
  Upgrading: 0, Installing: 10, Removing: 0, Not Upgrading: 0
  Download size: 6,820 kB
  Space needed: 35.6 MB / 876 GB available

Continue? [Y/n] Y

Once the program is installed my thinking is that I would need to go back and edit my sources.list and place a pound sign in front of the the url that is pulling from the bookworm main backport. I wouldn't want to pull in bookworm pkg's into my current Trixie installation.

Am I right on this?
The short answer is "yes". That is, remove the bookworm repo from a trixie installation. I guess you are familiar with the dangers of frankendebian outlined here: https://wiki.debian.org/DontBreakDebian.

A longer answer might consider alternative ways of installing the app without messing with the package manager. The safeeyes app doesn't appear to be available at the moment in trixie:

Code:
[~]$ rmadison safeeyes
safeeyes   | 2.0.6-1       | oldoldstable | source, all
safeeyes   | 2.1.5-0.1     | oldstable    | source, all
safeeyes   | 2.1.9-1.2     | testing      | source, all
safeeyes   | 2.1.9-1.2     | unstable     | source, all
so it's available from oldstable (bookworm), oldoldstable (bullseye), plus, current testing and unstable.

One can also check availability here: https://tracker.debian.org/pkg/safeeyes

The problem with installing from bookworm on a trixie system is that other applications on trixie may depend on later versions of the dependencies that safeeyes from bookworm needs, so those other applications may not run, or run dysfunctionally. The main alternative is to install safeeyes from the tarball following the instructions from the README and INSTALL files from the tarball, if they exist, and install dependencies, if necessary, in the /usr/local directories. It's a bit of mucking around, and one needs to be mindful of any clashes between the package manager's installed programs and other versions of those programs installed in the /usr/local directories. There are ways of getting around these issues but it's work intensive. The upshot is that it saves the package manager any tribulations.
 
Last edited:
Like you, I wasn't able to find safe eyes for Trixie so I went with the old stable from bookworm here:

Thanks for the links and the advise osprey-:)
 
If this program does become available in the Trixie repo I'll simply remove the pkg I installed from the bookworm repo.
 
I downloaded the .deb from Forky/Testing https://packages.debian.org/forky/all/safeeyes/download
It installs with no issues. The python packages it needs install from Stable.
Code:
ainstall /home/craig/Downloads/safeeyes_2.1.9-1.2_all.deb
Note, selecting 'safeeyes' instead of '/home/craig/Downloads/safeeyes_2.1.9-1.2_all.deb'
Installing:
  safeeyes

Installing dependencies:
  python3-croniter  python3-pytz  python3-tz

Recommended packages:
  swayidle  wlrctl  xprintidle

Summary:
  Upgrading: 0, Installing: 4, Removing: 0, Not Upgrading: 0
  Download size: 183 kB / 444 kB
  Space needed: 3,064 kB / 723 GB available

Continue? [Y/n]

You can also download the newest version from https://github.com/slgobinath/safeeyes/releases/
There is also a flatpak https://flathub.org/en/apps/io.github.slgobinath.SafeEyes
 
Last edited:
I downloaded the .deb from Forky/Testing https://packages.debian.org/forky/all/safeeyes/download
It installs with no issues. The python packages it needs install from Stable.
Code:
ainstall /home/craig/Downloads/safeeyes_2.1.9-1.2_all.deb
Note, selecting 'safeeyes' instead of '/home/craig/Downloads/safeeyes_2.1.9-1.2_all.deb'
Installing:
  safeeyes

Installing dependencies:
  python3-croniter  python3-pytz  python3-tz

Recommended packages:
  swayidle  wlrctl  xprintidle

Summary:
  Upgrading: 0, Installing: 4, Removing: 0, Not Upgrading: 0
  Download size: 183 kB / 444 kB
  Space needed: 3,064 kB / 723 GB available

Continue? [Y/n]

You can also download the newest version from https://github.com/slgobinath/safeeyes/releases/
There is also a flatpak https://flathub.org/en/apps/io.github.slgobinath.SafeEyes
Not so fond of flatpak pkg's however, I will go to github for the safe eyes pkg that way.
Thanks for the information and the links craigevil!
 
I removed the oldstable bookworm pkg,

Code:
REMOVING:
  safeeyes*

Summary:
  Upgrading: 0, Installing: 0, Removing: 1, Not Upgrading: 0
  Freed space: 1,707 kB

Continue? [Y/n] Y
(Reading database ... 282559 files and directories currently installed.)
Removing safeeyes (2.1.5-0.1) ...
Processing triggers for hicolor-icon-theme (0.18-2) ...
Processing triggers for mate-menus (1.26.1-1) ...
Processing triggers for man-db (2.13.1-1) ...
Processing triggers for mailcap (3.74) ...
Processing triggers for desktop-file-utils (0.28-1) ...

I tried Installing the .deb from the Github page however there were dependency problems so I'll have to read and find another way to install safe eyes.

So I can run it from PyPI or from src on this page:

However pip3 is not installed and this is going in a direction undesirable.

Code:
sudo pip3 install safeeyes
sudo: pip3: command not found
Alex: git clone hgit clone https://github.com/slgobinath/safeeyes.git
Cloning into 'safeeyes'...
remote: Enumerating objects: 15786, done.
remote: Counting objects: 100% (2196/2196), done.
remote: Compressing objects: 100% (511/511), done.
remote: Total 15786 (delta 1936), reused 1690 (delta 1682), pack-reused 13590 (from 3)
Receiving objects: 100% (15786/15786), 8.52 MiB | 23.32 MiB/s, done.
Resolving deltas: 100% (8076/8076), done.
Alex: cd SafeEyes
bash: cd: SafeEyes: No such file or directory
Alex: python3 -m python3 -m safeeyes
/usr/bin/python3: No module named safeeyes.__main__; 'safeeyes' is a package and cannot be directly executed
Alex: pip3 --version
bash: pip3: command not found

There is something that was added (hgit) when I copied and pasted the line:
Code:
git clone https://github.com/slgobinath/safeeyes.git

Sitting back and thinking about this now and taking a break.
 
python --version
Python 3.13.5

Code:
 craig@raspberrypi
 OS: Debian 13 trixie
 Kernel: aarch64 Linux 6.18.14-v8-16k+
 Uptime: 1d 2h 31m
 Packages: 2887
 Shell: bash 5.3.9
 Resolution: 1920x1080
 DE: Xfce
 WM: Xfwm4
 WM Theme: Orchis-Dark-Compact
 GTK Theme: Orchis-Dark-Compact [GTK2]
 Icon Theme: Papirus-Dark
 Font: Sans 12
 Disk: 637G / 1.6T (41%)
 CPU: ARM Cortex-A76 @ 4x 2.4GHz
 GPU: V3D 7.1.10.2
 RAM: 3200MiB / 8058MiB

Code:
safeeyes:
  Installed: 3.3.1
  Candidate: 3.3.1

python3-croniter:
  Installed: 2.0.7-3
  Candidate: 2.0.7-3
  Version table:
 *** 2.0.7-3 990
        990 http://deb.debian.org/debian trixie/main arm64 Packages
        990 http://deb.debian.org/debian trixie/main armhf Packages
        100 /var/lib/dpkg/status
 
python3-pytz:
  Installed: 2025.2-3
  Candidate: 2025.2-3
  Version table:
 *** 2025.2-3 990
        990 http://deb.debian.org/debian trixie/main arm64 Packages
        990 http://deb.debian.org/debian trixie/main armhf Packages
        100 /var/lib/dpkg/status

python3-tz:
  Installed: 2025.2-3
  Candidate: 2025.2-3
  Version table:
 *** 2025.2-3 990
        990 http://deb.debian.org/debian trixie/main arm64 Packages
        990 http://deb.debian.org/debian trixie/main armhf Packages
        100 /var/lib/dpkg/status

xprintidle:
  Installed: 0.3.0-1
  Candidate: 0.3.0-1
  Version table:
 *** 0.3.0-1 990
        990 http://deb.debian.org/debian trixie/main arm64 Packages
 
Alex, just an FYI

Code:
sudo apt install python3-pip

will install pip. Then version will work, and so on.

Cheers

Chris
 
Alex, just an FYI

Code:
sudo apt install python3-pip

will install pip. Then version will work, and so on.

Cheers

Chris
I'll run this tomorrow, thanks, gotta get a good nights rest for work tomorrow.
 
python --version
Python 3.13.5

Code:
 craig@raspberrypi
 OS: Debian 13 trixie
 Kernel: aarch64 Linux 6.18.14-v8-16k+
 Uptime: 1d 2h 31m
 Packages: 2887
 Shell: bash 5.3.9
 Resolution: 1920x1080
 DE: Xfce
 WM: Xfwm4
 WM Theme: Orchis-Dark-Compact
 GTK Theme: Orchis-Dark-Compact [GTK2]
 Icon Theme: Papirus-Dark
 Font: Sans 12
 Disk: 637G / 1.6T (41%)
 CPU: ARM Cortex-A76 @ 4x 2.4GHz
 GPU: V3D 7.1.10.2
 RAM: 3200MiB / 8058MiB

Code:
safeeyes:
  Installed: 3.3.1
  Candidate: 3.3.1

python3-croniter:
  Installed: 2.0.7-3
  Candidate: 2.0.7-3
  Version table:
 *** 2.0.7-3 990
        990 http://deb.debian.org/debian trixie/main arm64 Packages
        990 http://deb.debian.org/debian trixie/main armhf Packages
        100 /var/lib/dpkg/status
 
python3-pytz:
  Installed: 2025.2-3
  Candidate: 2025.2-3
  Version table:
 *** 2025.2-3 990
        990 http://deb.debian.org/debian trixie/main arm64 Packages
        990 http://deb.debian.org/debian trixie/main armhf Packages
        100 /var/lib/dpkg/status

python3-tz:
  Installed: 2025.2-3
  Candidate: 2025.2-3
  Version table:
 *** 2025.2-3 990
        990 http://deb.debian.org/debian trixie/main arm64 Packages
        990 http://deb.debian.org/debian trixie/main armhf Packages
        100 /var/lib/dpkg/status

xprintidle:
  Installed: 0.3.0-1
  Candidate: 0.3.0-1
  Version table:
 *** 0.3.0-1 990
        990 http://deb.debian.org/debian trixie/main arm64 Packages
I too have python 3.13.5 installed. The problem is I'm missing the dependencies.

So once I install python3-pip all should go well.
 

Attachments

  • Pkgs Missing.png
    Pkgs Missing.png
    84.3 KB · Views: 37
Sorry for the delay. Had to work.
Code:
Installing:                    
  python3-pip

Installing dependencies:
  libexpat1-dev     libpython3-dev     python3-packaging  zlib1g-dev
  libjs-sphinxdoc   libpython3.13-dev  python3-wheel
  libjs-underscore  python3-dev        python3.13-dev

Suggested packages:
  python3-setuptools

Summary:

Code:
sudo dpkg -i safeeyes_2.1.9-1.2_all.deb
Selecting previously unselected package safeeyes.
(Reading database ... 281691 files and directories currently installed.)
Preparing to unpack safeeyes_2.1.9-1.2_all.deb ...
Unpacking safeeyes (2.1.9-1.2) ...
dpkg: dependency problems prevent configuration of safeeyes:
 safeeyes depends on python3-babel; however:
  Package python3-babel is not installed.
 safeeyes depends on python3-croniter; however:
  Package python3-croniter is not installed.
 safeeyes depends on python3-xlib; however:
  Package python3-xlib is not installed.
 safeeyes depends on gir1.2-notify-0.7; however:
  Package gir1.2-notify-0.7 is not installed.

dpkg: error processing package safeeyes (--install):
 dependency problems - leaving unconfigured
Processing triggers for mailcap (3.74) ...
Processing triggers for mate-menus (1.26.1-1) ...
Processing triggers for desktop-file-utils (0.28-1) ...
Processing triggers for hicolor-icon-theme (0.18-2) ...
Processing triggers for man-db (2.13.1-1) ...
Errors were encountered while processing:

Installed the depends first and still have problems

sudo apt install safeeyes
safeeyes is already the newest version (2.1.9-1.2).
You might want to run 'apt --fix-broken install' to correct these.
Unsatisfied dependencies:
 safeeyes : Depends: python3-babel but it is not going to be installed
            Depends: python3-croniter but it is not going to be installed
            Depends: python3-xlib but it is not going to be installed
            Depends: gir1.2-notify-0.7 but it is not going to be installed
            Recommends: swayidle but it is not going to be installed
            Recommends: wlrctl but it is not going to be installed
            Recommends: xprintidle but it is not going to be installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Error: The following information from --solver 3.0 may provide additional context:
   Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I removed safeeyes and it's config's with the purge command. Throwing in the towel on this one.
 


Follow Linux.org


Top