Malformed line 2 in source list /etc/apt/sources.list.d/duinsoft.list (type) E: The list of sources could not be read.

Asked by JANNE ANDERS

Was: attempting to find a way to install repository Universe. Somehow on the way......I lost all my repositories. Can't get any updates, can't get upgrades. I was using 22.04, code name jammy.

 (NOT) really great at this Linux-os. YET!

Trying different suggestions I am lost in the weeds. I followed Ubuntu guide and ended up with the above message.

I attempted a self-fix, by trying to find repositories on my boot usb but it seemed to be worse. Just NEED a working fix!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bernard Stafford (bernard010) said :
#1

Activities -> Type: software & updates ->
Under the Ubuntu software tab ->
make sure the first 4 boxes are check marked.
(main)
(universe)
(restricted)
(multi-universe)
Do not check mark: (source code) or installable from CD rom/dvd
You will have to enter your password to make changes.

Revision history for this message
JANNE ANDERS (juju-a) said :
#2

sudo apt get update
sudo apt update
sudo mv /etc/apt/sources.list ~/
sudo touch /etc/apt/sources.list
software-properties-gtk
sudo sed -i "s/precise/$(lsb_release -c -s)/" /etc/apt/sources.list
sudo touch /etc/apt/sources.list
sudo mv /etc/apt/sources.list /etc/apt/sources.list.old
gksudo gedit /etc/aptsudo mv /etc/apt/sources.list /etc/apt/sources.list.old
gksudo gedit /etc/apt/sources.list
sudo apt install deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
software-properties-gtk
cat /etc/os-release
sudo apt get sources.list
lsb_release -c -s
sudo apt-get update
sudo sudo nano /etc/apt/sources.list.d/some-ppa.list
/etc/apt/sources.list.d/the-board-team-dev-snapshots-natty.list
sudo apt get repositories
gksudo gedit /etc/apt/sources.list.d/the-board-team-dev-snapshots-natty.list
sudo apt update

Revision history for this message
Bernard Stafford (bernard010) said :
#3

The, (main), (universe), (restricted), (multi-universe)
Repositories are already installed out of the box.
Open a terminal[ctl+alt+t]
sudo apt update && sudo apt upgrade
This will check for updates and install them, just answer y if any are present.

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

Based on the title of this question: What is the output of the command

cat -n /etc/apt/sources.list.d/duinsoft.list

Revision history for this message
JANNE ANDERS (juju-a) said :
#5

 1 deb http://www.duinsoft.nl/pkg debs all
     2 sources.list
     3 sudo gedit /etc/apt/sources.list

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

Some contents of that file are nonsense.
I suggest that you repair that, e.g. with the command

echo "deb https://duinsoft.nl/pkg debs all" | sudo tee /etc/apt/sources.list.d/duinsoft.list

After issuing that command run the command

sudo apt update

and report the results.

Can you help with this problem?

Provide an answer of your own, or ask JANNE ANDERS for more information if necessary.

To post a message you must log in.