Whenever I try to do sudo commands such as, sudo apt update.
An error pops up saying:
E: Malformed entry 62 in list file /etc/apt/sources.list (URI parse)
E: The list of sources could not be read.
How do I fix this?
Whenever I try to do sudo commands such as, sudo apt update.
An error pops up saying:
E: Malformed entry 62 in list file /etc/apt/sources.list (URI parse)
E: The list of sources could not be read.
How do I fix this?
something is wrong with your sources.list
, you should edit it with nano
(sudo nano /etc/apt/sources.list
).
If you don't know what is wrong you can cat /etc/apt/sources.list
and paste the output for us to see.
The output doesn't let me put links, so I will remove the http bits and the .com.
deb au.archive.ubuntu./ubuntu/ focal main restricted
deb au.archive.ubuntu./ubuntu/ focal-updates main restricted
deb au.archive.ubuntu./ubuntu/ focal universe
deb au.archive.ubuntu./ubuntu/ focal-updates universe
deb au.archive.ubuntu./ubuntu/ focal multiverse
deb au.archive.ubuntu./ubuntu/ focal-updates multiverse
deb au.archive.ubuntu./ubuntu/ focal-backports main restricted universe multiverse
deb security.ubuntu./ubuntu focal-security main restricted
deb security.ubuntu./ubuntu focal-security universe
deb security.ubuntu./ubuntu focal-security multiverse
deb Index of /wine-builds/ubuntu focal main
deb archive.ubuntu./ubuntu/ focal-updates multiverse restricted universe main
deb Index of /wine-builds/ubuntufocal focal main /wine-builds/ubuntu
I pasted the output.
I am still really confused, how do I fix this?
Can you paste it into a Blockquote? Highlight your text and press Ctrl + Shift + 9
Blockquote
text
text
text
The output doesn't let me put links, so I will remove the http bits and the .com.
deb cdrom:[Zorin-OS 16.1 Core 64bit]/ focal main restricted
See help.ubuntu./community/UpgradeNotes for how to upgrade to
newer versions of the distribution.
deb au.archive.ubuntu./ubuntu/ focal main restricted
deb-src au.archive.ubuntu./ubuntu/ focal main restricted
Major bug fix updates produced after the final release of the
distribution.
deb au.archive.ubuntu./ubuntu/ focal-updates main restricted
deb-src au.archive.ubuntu./ubuntu/ focal-updates main restricted
N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
team. Also, please note that software in universe WILL NOT receive any
review or updates from the Ubuntu security team.
deb au.archive.ubuntu./ubuntu/ focal universe
deb-src au.archive.ubuntu./ubuntu/ focal universe
deb au.archive.ubuntu./ubuntu/ focal-updates universe
deb-src au.archive.ubuntu./ubuntu/ focal-updates universe
N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
team, and may not be under a free licence. Please satisfy yourself as to
your rights to use the software. Also, please note that software in
multiverse WILL NOT receive any review or updates from the Ubuntu
security team.
deb au.archive.ubuntu./ubuntu/ focal multiverse
deb-src au.archive.ubuntu./ubuntu/ focal multiverse
deb au.archive.ubuntu./ubuntu/ focal-updates multiverse
deb-src au.archive.ubuntu./ubuntu/ focal-updates multiverse
N.B. software from this repository may not have been tested as
extensively as that contained in the main release, although it includes
newer versions of some applications which may provide useful features.
Also, please note that software in backports WILL NOT receive any review
or updates from the Ubuntu security team.
deb au.archive.ubuntu./ubuntu/ focal-backports main restricted universe multiverse
deb-src au.archive.ubuntu./ubuntu/ focal-backports main restricted universe multiverse
Uncomment the following two lines to add software from Canonical's
'partner' repository.
This software is not part of Ubuntu, but is offered by Canonical and the
respective vendors as a service to Ubuntu users.
deb archive.canonical./ubuntu focal partner
deb-src archive.canonical./ubuntu focal partner
deb security.ubuntu./ubuntu focal-security main restricted
deb-src security.ubuntu./ubuntu focal-security main restricted
deb security.ubuntu./ubuntu focal-security universe
deb-src security.ubuntu./ubuntu focal-security universe
deb security.ubuntu./ubuntu focal-security multiverse
deb-src security.ubuntu./ubuntu focal-security multiverse
This system was installed using small removable media
(e.g. netinst, live or single CD). The matching "deb cdrom"
entries were disabled at the end of the installation process.
For information about how to configure apt package sources,
see the sources.list(5) manual.
deb Index of /wine-builds/ubuntu focal main
deb-src Index of /wine-builds/ubuntu focal main
deb archive.ubuntu./ubuntu/ focal-updates multiverse restricted universe main
deb-src archive.ubuntu/ubuntu/ focal-updates multiverse restricted universe main
deb Index of /wine-builds/ubuntufocal focal main /wine-builds/ubuntu
deb-src Index of /wine-builds/ubuntufocal focal main /wine-builds/ubuntu
Done.
Don't just copy the message u just sent, copy from the file because I need to see it
If I do, it says "You cannot post more than 5 links."
I already tried that.
# deb cdrom:[Zorin-OS 16.1 Core 64bit]/ focal main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://au.archive.ubuntu.com/ubuntu/ focal main restricted # deb-src http://au.archive.ubuntu.com/ubuntu/ focal main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://au.archive.ubuntu.com/ubuntu/ focal-updates main restricted # deb-src http://au.archive.ubuntu.com/ubuntu/ focal-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://au.archive.ubuntu.com/ubuntu/ focal universe # deb-src http://au.archive.ubuntu.com/ubuntu/ focal universe deb http://au.archive.ubuntu.com/ubuntu/ focal-updates universe # deb-src http://au.archive.ubuntu.com/ubuntu/ focal-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://au.archive.ubuntu.com/ubuntu/ focal multiverse # deb-src http://au.archive.ubuntu.com/ubuntu/ focal multiverse deb http://au.archive.ubuntu.com/ubuntu/ focal-updates multiverse # deb-src http://au.archive.ubuntu.com/ubuntu/ focal-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://au.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse # deb-src http://au.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu focal partner # deb-src http://archive.canonical.com/ubuntu focal partner deb http://security.ubuntu.com/ubuntu focal-security main restricted # deb-src http://security.ubuntu.com/ubuntu focal-security main restricted deb http://security.ubuntu.com/ubuntu focal-security universe # deb-src http://security.ubuntu.com/ubuntu focal-security universe deb http://security.ubuntu.com/ubuntu focal-security multiverse # deb-src http://security.ubuntu.com/ubuntu focal-security multiverse # This system was installed using small removable media # (e.g. netinst, live or single CD). The matching "deb cdrom" # entries were disabled at the end of the installation process. # For information about how to configure apt package sources, # see the sources.list(5) manual. deb https://dl.winehq.org/wine-builds/ubuntu/ focal main # deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse restricted universe main # deb-src http://archive.ubuntu.com/ubuntu/ focal-updates multiverse restricted universe main deb Index of /wine-builds/ubuntufocal focal main /wine-builds/ubuntu # deb-src Index of /wine-builds/ubuntufocal focal main /wine-builds/ubuntu
This is the malformed line:
deb Index of /wine-builds/ubuntufocal focal main /wine-builds/ubuntu
It should be
deb Index of /wine-builds/ubuntu/focal/focal-main/wine-builds/ubuntu
Please simply remove the lines:
sudo nano /etc/apt/sources.list
Arrow key down to the last two lines and backspace them out.
Do not hold backspace down when you near the beginning of the fist of the last two lines or you may go too far. Just gently bump right to the beginning.
Tap ctrl+x
to exit, then the y
key to say yes to save, then the enter
key.
In terminal run:
sudo apt update
sudo add-apt-repository 'deb Index of /wine-builds/ubuntu focal main'
Once that is done, you can proceed with trying to install wine.
I can't find the line. This is what it shows. Do I have to rewrite the whole thing?
#deb-src http//au.archive.ubuntu./ubuntu/ focal main restricted
#Major bug fix updates produced after the final release of the
#distribution.
deb http//au.archive.ubuntu./ubuntu/ focal-updates main restricted
#deb-src http//au.archive.ubuntu./ubuntu/ focal-updates main restricted
##N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
##team. Also, please note that software in universe WILL NOT receive any
#review or updates from the Ubuntu security team.
deb http//au.archive.ubuntu./ubuntu/ focal universe
#deb-src http//au.archive.ubuntu./ubuntu/ focal universe
deb http//au.archive.ubuntu./ubuntu/ focal-updates universe
#deb-src http//au.archive.ubuntu./ubuntu/ focal-updates universe
##N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
##team, and may not be under a free licence. Please satisfy yourself as to
##your rights to use the software. Also, please note that software in
##multiverse WILL NOT receive any review or updates from the Ubuntu
#security team.
This is confusing, do I replace the whole thing?
Once on your terminal screen, scroll down to see the last two lines.
Found it.
I did it but it still happens. It says:
E: Malformed entry 62 in list file /etc/apt/sources.list (URI parse)
E: The list of sources could not be read.
Please post the output of
cat /etc/apt/sources.list
again
# deb cdrom:[Zorin-OS 16.1 Core 64bit]/ focal main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://au.archive.ubuntu.com/ubuntu/ focal main restricted # deb-src http://au.archive.ubuntu.com/ubuntu/ focal main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://au.archive.ubuntu.com/ubuntu/ focal-updates main restricted # deb-src http://au.archive.ubuntu.com/ubuntu/ focal-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://au.archive.ubuntu.com/ubuntu/ focal universe # deb-src http://au.archive.ubuntu.com/ubuntu/ focal universe deb http://au.archive.ubuntu.com/ubuntu/ focal-updates universe # deb-src http://au.archive.ubuntu.com/ubuntu/ focal-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://au.archive.ubuntu.com/ubuntu/ focal multiverse # deb-src http://au.archive.ubuntu.com/ubuntu/ focal multiverse deb http://au.archive.ubuntu.com/ubuntu/ focal-updates multiverse # deb-src http://au.archive.ubuntu.com/ubuntu/ focal-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://au.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse # deb-src http://au.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu focal partner # deb-src http://archive.canonical.com/ubuntu focal partner deb http://security.ubuntu.com/ubuntu focal-security main restricted # deb-src http://security.ubuntu.com/ubuntu focal-security main restricted deb http://security.ubuntu.com/ubuntu focal-security universe # deb-src http://security.ubuntu.com/ubuntu focal-security universe deb http://security.ubuntu.com/ubuntu focal-security multiverse # deb-src http://security.ubuntu.com/ubuntu focal-security multiverse # This system was installed using small removable media # (e.g. netinst, live or single CD). The matching "deb cdrom" # entries were disabled at the end of the installation process. # For information about how to configure apt package sources, # see the sources.list(5) manual. deb https://dl.winehq.org/wine-builds/ubuntu/ focal main # deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse restricted universe main # deb-src http://archive.ubuntu.com/ubuntu/ focal-updates multiverse restricted universe main deb Index of /wine-builds/ubuntu/focal/focal-main/wine-builds/ubuntu # deb-src Index of /wine-builds/ubuntufocal focal main /wine-builds/ubuntu