Isuse with sources.list. Unable to update system nor able to do backups.

Asked by Anthony Mazzola on 2018-11-30

I am receiving the following error:

E: Malformed entry 51 in list file /etc/apt/sources.list (Component), E: The list of sources could not be read.

I haver a copy of my sources.list file below. The issue appears to be with line 51. How do I correct this issue?

# deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-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://archive.ubuntu.com/ubuntu bionic universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu bionic-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-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://archive.ubuntu.com/ubuntu bionic multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-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://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-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 bionic partner
deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://archive.ubuntu.com/ubuntu bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://archive.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://archive.ubuntu.com/ubuntu bionic-security multiverse
deb https://dl.winehq.org/wine-builds/ubuntu/xenial main
deb-src https://dl.winehq.org/wine-builds/ubuntu/xenial main
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
2018-11-30
Last query:
2018-11-30
Last reply:
2018-11-30
Best Manfred Hampl (m-hampl) said : #1

I assume the wrong lines are these:

deb https://dl.winehq.org/wine-builds/ubuntu/xenial main
deb-src https://dl.winehq.org/wine-builds/ubuntu/xenial main

they should probably be

deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main
deb-src https://dl.winehq.org/wine-builds/ubuntu/ xenial main

(with a space preceding the word xenial).

But if you are running Ubuntu bionic, then in addition to adding the space character, the word "xenial" in these lines should be replaced by "bionic"

Anthony Mazzola (tonym472) said : #2

Manfred - Thank you. Your edits have fixed the issue. Also, you are
correct, I am running Ubuntu bionic. Are there any other lines that I need
to change 'xenial' to 'bionic'?

On Fri, Nov 30, 2018 at 10:03 AM Manfred Hampl <
<email address hidden>> wrote:

> Your question #676473 on update-manager in Ubuntu changed:
>
> https://answers.launchpad.net/ubuntu/+source/update-manager/+question/676473
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> I assume the wrong lines are these:
>
> deb https://dl.winehq.org/wine-builds/ubuntu/xenial main
> deb-src https://dl.winehq.org/wine-builds/ubuntu/xenial main
>
> they should probably be
>
> deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main
> deb-src https://dl.winehq.org/wine-builds/ubuntu/ xenial main
>
> (with a space preceding the word xenial).
>
> But if you are running Ubuntu bionic, then in addition to adding the
> space character, the word "xenial" in these lines should be replaced by
> "bionic"
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/update-manager/+question/676473/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
>
> https://answers.launchpad.net/ubuntu/+source/update-manager/+question/676473
>
> You received this question notification because you asked the question.
>

--
Tony Mazzola

Anthony Mazzola (tonym472) said : #3

No, the issue is corrected. Just wondering if all lines with 'xenial'
should be changed to 'bionic'?

On Fri, Nov 30, 2018 at 11:27 AM Anthony Mazzola <
<email address hidden>> wrote:

> Your question #676473 on update-manager in Ubuntu changed:
>
> https://answers.launchpad.net/ubuntu/+source/update-manager/+question/676473
>
> Status: Answered => Open
>
> You are still having a problem:
> Manfred - Thank you. Your edits have fixed the issue. Also, you are
> correct, I am running Ubuntu bionic. Are there any other lines that I need
> to change 'xenial' to 'bionic'?
>
> On Fri, Nov 30, 2018 at 10:03 AM Manfred Hampl <
> <email address hidden>> wrote:
>
> > Your question #676473 on update-manager in Ubuntu changed:
> >
> >
> https://answers.launchpad.net/ubuntu/+source/update-manager/+question/676473
> >
> > Status: Open => Answered
> >
> > Manfred Hampl proposed the following answer:
> > I assume the wrong lines are these:
> >
> > deb https://dl.winehq.org/wine-builds/ubuntu/xenial main
> > deb-src https://dl.winehq.org/wine-builds/ubuntu/xenial main
> >
> > they should probably be
> >
> > deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main
> > deb-src https://dl.winehq.org/wine-builds/ubuntu/ xenial main
> >
> > (with a space preceding the word xenial).
> >
> > But if you are running Ubuntu bionic, then in addition to adding the
> > space character, the word "xenial" in these lines should be replaced by
> > "bionic"
> >
> > --
> > If this answers your question, please go to the following page to let us
> > know that it is solved:
> >
> >
> https://answers.launchpad.net/ubuntu/+source/update-manager/+question/676473/+confirm?answer_id=0
> >
> > If you still need help, you can reply to this email or go to the
> > following page to enter your feedback:
> >
> >
> https://answers.launchpad.net/ubuntu/+source/update-manager/+question/676473
> >
> > You received this question notification because you asked the question.
> >
>
>
> --
> Tony Mazzola
>
> You received this question notification because you asked the question.
>

--
Tony Mazzola

Anthony Mazzola (tonym472) said : #4

Thanks Manfred Hampl, that solved my question.