You are not logged in.

#1 2025-10-22 20:53

leinad47
Member
Registered: 2024-10-06
Posts: 20

Discover updating error

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

#2 2025-10-23 07:36

bin
Member
From: U.K.
Registered: 2016-01-28
Posts: 1,560

Re: Discover updating error

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 -r

Copy and paste the results back here.

Offline

#3 2025-10-23 11:02

leinad47
Member
Registered: 2024-10-06
Posts: 20

Re: Discover updating error

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

#4 2025-10-23 14:28

leinad47
Member
Registered: 2024-10-06
Posts: 20

Re: Discover updating error

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

#5 2025-10-23 14:54

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,109
Website

Re: Discover updating error

@leinad47
Well, now run commands:
$ cat /etc/apt/sources.list
$ ls -al /etc/apt/sources.list.d/
and post the output here.

Offline

#6 2025-10-23 15:09

leinad47
Member
Registered: 2024-10-06
Posts: 20

Re: Discover updating error

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

#7 2025-10-23 15:25

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,109
Website

Re: Discover updating error

$ sudo apt update
and post back

Offline

#8 2025-10-23 15:34

leinad47
Member
Registered: 2024-10-06
Posts: 20

Re: Discover updating error

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

#9 2025-10-23 15:35

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,109
Website

Re: Discover updating error

$ ls -l /etc/apt/sources.list
$ cat /etc/apt/sources.list
post back

Offline

#10 2025-10-23 15:42

leinad47
Member
Registered: 2024-10-06
Posts: 20

Re: Discover updating error

deb http://deb.debian.org/debian-security/ bookworm-security main
sudo hwclock --hctosys

Offline

#11 2025-10-23 15:56

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,109
Website

Re: Discover updating error

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

#12 2025-10-23 16:04

leinad47
Member
Registered: 2024-10-06
Posts: 20

Re: Discover updating error

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

#13 2025-10-23 16:06

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,109
Website

Re: Discover updating error

leinad47 wrote:

... 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

#14 2025-10-23 16:13

leinad47
Member
Registered: 2024-10-06
Posts: 20

Re: Discover updating error

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

#15 2025-10-23 16:21

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,109
Website

Re: Discover updating error

You are welcome smile
- 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

#16 2025-10-23 16:27

leinad47
Member
Registered: 2024-10-06
Posts: 20

Re: Discover updating error

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

#17 2025-10-23 16:29

leinad47
Member
Registered: 2024-10-06
Posts: 20

Re: Discover updating error

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

#18 2025-10-23 16:30

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,109
Website

Re: Discover updating error

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

#19 2025-10-23 16:38

leinad47
Member
Registered: 2024-10-06
Posts: 20

Re: Discover updating error

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

#20 2025-10-23 16:40

leinad47
Member
Registered: 2024-10-06
Posts: 20

Re: Discover updating error

I also ran again $ sudo apt update, but I got the same result.

Offline

#21 2025-10-23 16:45

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,109
Website

Re: Discover updating error

Configure your timezone properly
$ sudo dpkg-reconfigure tzdata
Run:
$ date
and post back the output.
What is time at your location now ?

Offline

#22 2025-10-23 16:52

leinad47
Member
Registered: 2024-10-06
Posts: 20

Re: Discover updating error

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

#23 2025-10-23 16:53

leinad47
Member
Registered: 2024-10-06
Posts: 20

Re: Discover updating error

Time looks like it is OK

Offline

#24 2025-10-23 16:55

leinad47
Member
Registered: 2024-10-06
Posts: 20

Re: Discover updating error

Now checking with my phone, I realized it was almost two minutea ahead.

Last edited by leinad47 (2025-10-23 16:56)

Offline

#25 2025-10-23 17:01

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 6,109
Website

Re: Discover updating error

This is not ok, UTC time should be "15:52:47 UTC" instead of "03:52:47 UTC".
Run:
$ timedatectl
and post back

Offline

Board footer

Powered by FluxBB