You are not logged in.
Hello! I am struggling with this error every time I open Discover.
E: Type 'sudo' is unknown in line 3 of source list /etc/apt/sources.list
E: Source list cannot be read.
How can I fix it?
Thank you all!
Offline
By the sound of it there is something wrong in one or more lines of your sources files.
Please open Konsole/Terminal and type
inxi -rCopy and paste the results back here.
Offline
Thank you for your help. As soon as I get home in the evening I will follow your suggestion I will paste the results back here.
Offline
Active apt repos in: /etc/apt/sources.list
1: deb http://deb.debian.org/debian-security/ bookworm-security main
Active apt repos in: /etc/apt/sources.list.d/10_q4os.list
1: deb http://q4os.org/q4repo q4os-5-0-cn main
Active apt repos in: /etc/apt/sources.list.d/12_qtde.list
1: deb http://q4os.org/qtderepo bookworm main
Active apt repos in: /etc/apt/sources.list.d/20_debian.list
1: deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
2: deb http://security.debian.org/ bookworm-security main contrib non-free non-free-firmware
3: deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
No active apt repos in: /etc/apt/sources.list.d/30_debian_backports.list
Active apt repos in: /etc/apt/sources.list.d/50-plasmalooks.list
1: deb http://q4os.org/qextrepo bookworm-plasmalooks-cn main
Active apt repos in: /etc/apt/sources.list.d/50_q4os-chrome.list
1: deb [arch=amd64] http://q4os.org/qextrepo bookworm-chrome-cn main
Active apt repos in: /etc/apt/sources.list.d/50_q4os-firefox.list
1: deb [signed-by=/usr/share/keyrings/q4a-mozilla.gpg] https://packages.mozilla.org/apt mozilla main
2: deb http://q4os.org/qextrepo bookworm-firefox-cn main
Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
Last edited by leinad47 (2025-10-23 14:28)
Offline
@leinad47
Well, now run commands:
$ cat /etc/apt/sources.list
$ ls -al /etc/apt/sources.list.d/
and post the output here.
Offline
total 40
drwxr-xr-x 2 root root 4096 feb 18 2025 .
drwxr-xr-x 8 root root 4096 oct 22 10:43 ..
-rw-r--r-- 1 root root 243 iul 15 2024 10_q4os.list
-rw-r--r-- 1 root root 239 iul 15 2024 12_qtde.list
-rw-r--r-- 1 root root 1219 iul 15 2024 20_debian.list
-rw-r--r-- 1 root root 375 iul 15 2024 30_debian_backports.list
-rw-r--r-- 1 root root 94 iul 15 2024 50-plasmalooks.list
-rw-r--r-- 1 root root 94 iul 15 2024 50_q4os-chrome.list
-rw-r--r-- 1 root root 187 iul 16 2024 50_q4os-firefox.list
-rw-r--r-- 1 root root 190 iul 18 2024 google-chrome.list
Offline
$ sudo apt update
and post back
Offline
E: Tipul 'sudo' nu este cunoscut în linia 3 din lista sursă /etc/apt/sources.list
E: Lista surselor nu poate fi citită.
(Translated into English:
E: Type 'sudo' is unknown in line 3 of source list /etc/apt/sources.list
E: Source list cannot be read.)
Offline
$ ls -l /etc/apt/sources.list
$ cat /etc/apt/sources.list
post back
Offline
deb http://deb.debian.org/debian-security/ bookworm-security main
sudo hwclock --hctosys
Offline
Yes, you have malformed /etc/apt/sources.list file. Do you know what did edit this file ?
The file should be empty, so make it empty and run again:
.$ sudo apt update
Offline
Thank you. Since I am quite new to Linux I may ask you dumb questions. Please suffer with me. For instance, where should I go to make the file empty?
Offline
... where should I go to make the file empty?
Edit the file /etc/apt/sources.list as root, delete all the text and save it.
Offline
Where is this file I need to edit? I tried to find it in Dolphin and in the search menu, but I could not find it. I typed in the Konsole the fie name, b I got this: ”the source cannot be read”. Sorry for troubling you.
Offline
You are welcome ![]()
- Run Dolphin
- Navigate to /etc/apt folder
- Right click on the "sources.list" file
- Edit as admin
You had to do some non standard action as the file is broken. It would be better to figure out what happened to avoid repeating such a situation.
Last edited by q4osteam (2025-10-23 16:23)
Offline
Finnaly, it worked out!
sudo apt update
Atins:1 http://deb.debian.org/debian bookworm InRelease
Luat:2 http://deb.debian.org/debian bookworm-updates InRelease [55,4 kB]
Luat:3 http://security.debian.org bookworm-security InRelease [48,0 kB]
Luat:4 https://dl.google.com/linux/chrome/deb stable InRelease [1.825 B]
Luat:6 https://packages.mozilla.org/apt mozilla InRelease [1.524 B]
Luat:11 http://security.debian.org bookworm-security/main amd64 Packages [283 kB]
Luat:12 http://security.debian.org bookworm-security/main i386 Packages [276 kB]
Luat:13 http://security.debian.org bookworm-security/main Translation-en [171 kB]
Atins:5 https://q4os.org/q4repo q4os-5-0-cn InRelease
Luat:14 http://security.debian.org bookworm-security/non-free-firmware i386 Packages [692 B]
Luat:15 http://security.debian.org bookworm-security/non-free-firmware amd64 Packages [688 B]
Atins:7 https://q4os.org/qtderepo bookworm InRelease
Atins:8 https://q4os.org/qextrepo bookworm-plasmalooks-cn InRelease
Luat:9 https://q4os.org/qextrepo bookworm-chrome-cn InRelease [1.844 B]
Atins:10 https://q4os.org/qextrepo bookworm-firefox-cn InRelease
Citire liste de pachete... Terminat
E: Release file for http://deb.debian.org/debian/dists/book … /InRelease is not valid yet (invalid for another 10h 53min 39s). Updates for this repository will not be applied.
E: Release file for https://dl.google.com/linux/chrome/deb/ … /InRelease is not valid yet (invalid for another 6h 36min 15s). Updates for this repository will not be applied.
Thank you!
Offline
Now I got this notice:
E: Release file for http://deb.debian.org/debian/dists/book … /InRelease is not valid yet (invalid for another 10h 51min 39s). Updates for this repository will not be applied.
E: Release file for https://dl.google.com/linux/chrome/deb/ … /InRelease is not valid yet (invalid for another 6h 34min 16s). Updates for this repository will not be applied.
E: Release file for https://packages.mozilla.org/apt/dists/ … /InRelease is not valid yet (invalid for another 11h 50min 45s). Updates for this repository will not be applied.
Offline
E: Release file for http://deb.debian.org/debian/dists/book … /InRelease is not valid yet (invalid for another 10h 53min 39s). Updates for this repository will not be applied.This message shows some issue with clock skew. Try to reboot and run the command once again.
Offline
I rebooted the computer, but unfortunately I got the same error notice when trying to do the updates in Discover. How to fix this issue with clock skew?
Offline
I also ran again $ sudo apt update, but I got the same result.
Offline
Configure your timezone properly
$ sudo dpkg-reconfigure tzdata
Run:
$ date
and post back the output.
What is time at your location now ?
Offline
Current default time zone: 'Europe/Bucharest'
Local time is now: Thu Oct 23 06:52:47 EEST 2025.
Universal Time is now: Thu Oct 23 03:52:47 UTC 2025.
joi 23 octombrie 2025, 06:53:21 +0300
Offline
Time looks like it is OK
Offline
Now checking with my phone, I realized it was almost two minutea ahead.
Last edited by leinad47 (2025-10-23 16:56)
Offline
This is not ok, UTC time should be "15:52:47 UTC" instead of "03:52:47 UTC".
Run:
$ timedatectl
and post back
Offline