My Ubuntu shows an error

Asked by VINITA

There is an error in My Ubuntu 14.04 LTS saying that
E:Malformed line 52 in source list /etc/apt/sources.list (dist parse), This usually means that your installed packages have unmet dependencies.

Please help,

Vinita

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Mark Rijckenberg
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

cat -n /etc/apt/sources.list

Thanks

Revision history for this message
VINITA (chopravini) said :
#2

It says:

cat: invalid option -- '/'
Try 'cat --help' for more information.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Copy and paste the command, don't try to retype it.

Revision history for this message
VINITA (chopravini) said :
#4

The output is :

     1 # deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted
     2 deb-src http://archive.ubuntu.com/ubuntu trusty main restricted #Added by software-properties
     3
     4 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     5 # newer versions of the distribution.
     6 deb http://in.archive.ubuntu.com/ubuntu/ trusty main restricted
     7 deb-src http://in.archive.ubuntu.com/ubuntu/ trusty main multiverse universe restricted #Added by software-properties
     8
     9 ## Major bug fix updates produced after the final release of the
    10 ## distribution.
    11 deb http://in.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
    12 deb-src http://in.archive.ubuntu.com/ubuntu/ trusty-updates main multiverse universe restricted #Added by software-properties
    13
    14 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    15 ## team. Also, please note that software in universe WILL NOT receive any
    16 ## review or updates from the Ubuntu security team.
    17 deb http://in.archive.ubuntu.com/ubuntu/ trusty universe
    18 deb http://in.archive.ubuntu.com/ubuntu/ trusty-updates universe
    19
    20 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    21 ## team, and may not be under a free licence. Please satisfy yourself as to
    22 ## your rights to use the software. Also, please note that software in
    23 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    24 ## security team.
    25 deb http://in.archive.ubuntu.com/ubuntu/ trusty multiverse
    26 deb http://in.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
    27
    28 ## N.B. software from this repository may not have been tested as
    29 ## extensively as that contained in the main release, although it includes
    30 ## newer versions of some applications which may provide useful features.
    31 ## Also, please note that software in backports WILL NOT receive any review
    32 ## or updates from the Ubuntu security team.
    33 deb http://in.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
    34 deb-src http://in.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse #Added by software-properties
    35
    36 deb http://security.ubuntu.com/ubuntu trusty-security main restricted
    37 deb-src http://security.ubuntu.com/ubuntu trusty-security main multiverse universe restricted #Added by software-properties
    38 deb http://security.ubuntu.com/ubuntu trusty-security universe
    39 deb http://security.ubuntu.com/ubuntu trusty-security multiverse
    40
    41 ## Uncomment the following two lines to add software from Canonical's
    42 ## 'partner' repository.
    43 ## This software is not part of Ubuntu, but is offered by Canonical and the
    44 ## respective vendors as a service to Ubuntu users.
    45 # deb http://archive.canonical.com/ubuntu trusty partner
    46 # deb-src http://archive.canonical.com/ubuntu trusty partner
    47
    48 ## This software is not part of Ubuntu, but is offered by third-party
    49 ## developers who want to ship their latest software.
    50 deb http://extras.ubuntu.com/ubuntu trusty main
    51 deb http://archive.canonical.com/ partner
    52 # deb-src http://archive.canonical.com/ partner
    53 deb-src http://extras.ubuntu.com/ubuntu trusty main

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

If you run:

sudo gedit /etc/apt/sources.list

change:
# deb-src http://archive.canonical.com/ partner

to:
deb-src http://archive.canonical.com/ trusty partner

Save the new file, close gedit and run:

sudo apt-get update

Is it now smooth?

Revision history for this message
Best Mark Rijckenberg (markrijckenberg) said :
#6

Please delete lines 51 and 52.

Remove the # at the start of lines 45 and 46.

Save the change to /etc/apt/sources.list

Revision history for this message
VINITA (chopravini) said :
#7

Hi ,
The error is solved now.

But a message pops up saying Ubuntu 14.04 has experienced an internal error. Please restart the computer if you see this again.

Thanks,

Vinita

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

If you run:

sudo gedit /etc/default/apport

And change:
enabled=1

To:
enabled=0

And reboot then it will not appear.