The officially official Devuan Forum!

You are not logged in.

#1 2020-02-05 14:36:14

tochiro
Member
Registered: 2020-02-05
Posts: 2  

Sources.list broken

Hallo all big_smile

For my mistake, have broken "sources.list"......now i have this:

# Devuan repositories
deb https://deb.devuan.org/merged ascii main
deb https://deb.devuan.org/merged ascii-security main
deb https://deb.devuan.org/merged ascii-updates main
#deb https://deb.devuan.org/merged ascii-backports main

# Devuan sources
deb-src https://deb.devuan.org/merged ascii main
deb-src https://deb.devuan.org/merged ascii-security main
deb-src https://deb.devuan.org/merged ascii-updates main
#deb-src https://deb.devuan.org/merged ascii-backports main

When write "sudo apt update" return me :

"E: La riga 1 nel file /etc/apt/sources.list non è corretta (type)
E: Impossibile leggere l'elenco dei sorgenti."

P.S. Sorry for my bad english

Offline

#2 2020-02-05 14:43:04

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,481  

Re: Sources.list broken

Not all mirrors support https. If you use deb.devuan.org it may redirect you to an http mirror or an https mirror, so it will sometimes fail.

To use https, select a mirror that supports https and use that in your sources.list

Here's a list of package mirrors. Each entry shows which protocols are supported:
http://pkgmaster.devuan.org/mirror_list.txt

Offline

#3 2020-02-05 16:33:13

tochiro
Member
Registered: 2020-02-05
Posts: 2  

Re: Sources.list broken

# Devuan repositories
deb http://deb.devuan.org/merged ascii          main
deb http://deb.devuan.org/merged ascii-updates  main
deb http://deb.devuan.org/merged ascii-security main
# Devuan sources
deb-src http://deb.devuan.org/merged ascii main
deb-src http://deb.devuan.org/merged ascii-security main
deb-src http://deb.devuan.org/merged ascii-updates main

As usual return me:

E: La riga 1 nel file /etc/apt/sources.list non è corretta (type)
E: Impossibile leggere l'elenco dei sorgenti.

mad

Offline

#4 2020-02-05 17:03:04

nixer
Member
From: North Carolina, USA
Registered: 2016-11-30
Posts: 211  

Re: Sources.list broken

A simple question here, but did you run

apt update

after editing your sources.list file and before trying to update?

I mention this as I have overlooked simple things myself, and will again.

Offline

#5 2020-02-05 17:13:25

chris2be8
Member
Registered: 2018-08-11
Posts: 306  

Re: Sources.list broken

My /etc/apt/sources.list contains

## package repositories
deb http://deb.devuan.org/merged/ ascii main contrib non-free 
deb http://deb.devuan.org/merged/ ascii-updates main contrib non-free 
deb http://deb.devuan.org/merged/ ascii-security main contrib non-free 
# deb http://deb.devuan.org/merged/ ascii-backports main 

## source repositories
# deb-src http://deb.devuan.org/merged/ ascii main 
# deb-src http://deb.devuan.org/merged/ ascii-updates main 
# deb-src http://deb.devuan.org/merged/ ascii-security main 
# deb-src http://deb.devuan.org/merged/ ascii-backports main 

Note there is a / after merged which you do not have. Try adding that.

Chris

Offline

#6 2020-02-05 17:19:10

rolfie
Member
Registered: 2017-11-25
Posts: 1,161  

Re: Sources.list broken

Just tried to update my ASCII installation, works like a charm.

My sources.list also contains contrib and non-free, and also includes backports and proposed updates, here is the first line:

deb http://deb.devuan.org/merged ascii main contrib non-free

Found 35 updates.

I can't see a mistake in your sources.list. Try again apt update, apt list --upgradable, apt upgrade.

rolfie

Offline

#7 2020-02-05 17:32:17

golinux
Administrator
Registered: 2016-11-25
Posts: 3,311  

Re: Sources.list broken

There is no "/" after merged in the Devuan documentation.

Online

#8 2020-02-05 17:33:38

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Sources.list broken

tochiro wrote:

As usual return me:

E: La riga 1 nel file /etc/apt/sources.list non è corretta (type)
E: Impossibile leggere l'elenco dei sorgenti.

Please post the output of

sudo LC_ALL=C apt update

^ That will make the command speak English.

Perhaps you have a weird character in the file that's not showing up when you paste it here, try copy&pasting chris2be8's list into a fresh sources.list file.


Brianna Ghey — Rest In Power

Offline

#9 2020-02-06 09:13:20

mmaglis
Member
From: Berlin - Germany
Registered: 2018-03-16
Posts: 32  

Re: Sources.list broken

La riga 1 nel file /etc/apt/sources.list non è corretta (type)
Impossibile leggere l'elenco dei sorgenti.

translates to:

Line 1 in the /etc/apt/sources.list file is incorrect (type)
Unable to read the source list.

Check

  • what is the file's first line. Any funny character?

  • the permissions of the file /etc/apt/sources.list

Offline

#10 2020-02-06 15:09:04

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Sources.list broken

@tochiro: please post the output of

cat -v /etc/apt/sources.list

^ That should show any non-printable characters.

Or:

sed -n 'l' /etc/apt/sources.list

^ That should display most non-printable characters as the octal values.

For example the new lines will be marked with a $ symbol.


Brianna Ghey — Rest In Power

Offline

#11 2020-02-06 17:37:39

chris2be8
Member
Registered: 2018-08-11
Posts: 306  

Re: Sources.list broken

Are there tabs instead of spaces in your /etc/apt/sources.list ? Or any other strange characters?

If you can't see anything post output from od -xc /etc/apt/sources.list here (it will be a bit lengthy).

Chris

Offline

Board footer