E: Malformed entry 2 in list file /etc/apt/sources.list.d/virtualbox.list (Suite)

Asked by IlPrincipe

ilprincipe@ilprincipe-X125:~$ ubuntu-support-status
Traceback (most recent call last):
  File "/usr/bin/ubuntu-support-status", line 122, in <module>
    with apt.Cache() as cache:
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 113, in __init__
    self.open(progress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 164, in open
    self._cache = apt_pkg.Cache(progress)
apt_pkg.Error: E:Malformed entry 2 in list file /etc/apt/sources.list.d/virtualbox.list (Suite), E:The list of sources could not be read.
ilprincipe@ilprincipe-X125:~$ cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
ilprincipe@ilprincipe-X125:~$ dpkg --print-foreign-architectures
ilprincipe@ilprincipe-X125:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for ilprincipe:
ilprincipe@ilprincipe-X125:~$ grep proxy /etc/environment
ilprincipe@ilprincipe-X125:~$ echo $http_proxy

ilprincipe@ilprincipe-X125:~$ echo $ftp_proxy

ilprincipe@ilprincipe-X125:~$ grep proxy /etc/bash.bashrc
ilprincipe@ilprincipe-X125:~$ grep proxy ~/.bashrc
ilprincipe@ilprincipe-X125:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
ilprincipe@ilprincipe-X125:~$ sudo fuser -vvv /var/lib/dpkg/lock
ilprincipe@ilprincipe-X125:~$ sudo fuser -vvv /var/cache/apt/archives/lock
ilprincipe@ilprincipe-X125:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
ilprincipe@ilprincipe-X125:~$ uname -a
Linux ilprincipe-X125 4.4.0-31-lowlatency #50-Ubuntu SMP PREEMPT Wed Jul 13 00:50:28 UTC 2016 i686 athlon i686 GNU/Linux
ilprincipe@ilprincipe-X125:~$ sudo rm /var/lib/apt/lists/lock
ilprincipe@ilprincipe-X125:~$ sudo rm /var/cache/apt/archives/lock
ilprincipe@ilprincipe-X125:~$ sudo rm /var/lib/dpkg/lock
ilprincipe@ilprincipe-X125:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
ilprincipe@ilprincipe-X125:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
ilprincipe@ilprincipe-X125:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
ilprincipe@ilprincipe-X125:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
ilprincipe@ilprincipe-X125:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
cp: cannot stat '/var/lib/dpkg/available-old': No such file or directory
ilprincipe@ilprincipe-X125:~$ sudo rm -rf /var/lib/dpkg/updates/*
ilprincipe@ilprincipe-X125:~$ sudo rm -rf /var/lib/apt/lists
ilprincipe@ilprincipe-X125:~$ sudo rm /var/cache/apt/*.bin
rm: cannot remove '/var/cache/apt/*.bin': No such file or directory
ilprincipe@ilprincipe-X125:~$ sudo mkdir /var/lib/apt/lists
ilprincipe@ilprincipe-X125:~$ sudo mkdir /var/lib/apt/lists/partial
ilprincipe@ilprincipe-X125:~$ LANG=C;sudo apt-get clean
ilprincipe@ilprincipe-X125:~$ LANG=C;sudo apt-get autoclean
E: Malformed entry 2 in list file /etc/apt/sources.list.d/virtualbox.list (Suite)
E: The list of sources could not be read.
ilprincipe@ilprincipe-X125:~$ sudo dpkg --configure -a
ilprincipe@ilprincipe-X125:~$ sudo dpkg --clear-avail
ilprincipe@ilprincipe-X125:~$ LANG=C;sudo apt-get -f install
E: Malformed entry 2 in list file /etc/apt/sources.list.d/virtualbox.list (Suite)
E: The list of sources could not be read.
E: Malformed entry 2 in list file /etc/apt/sources.list.d/virtualbox.list (Suite)
E: The list of sources could not be read.
ilprincipe@ilprincipe-X125:~$ LANG=C;sudo apt-get --fix-missing install
E: Malformed entry 2 in list file /etc/apt/sources.list.d/virtualbox.list (Suite)
E: The list of sources could not be read.
E: Malformed entry 2 in list file /etc/apt/sources.list.d/virtualbox.list (Suite)
E: The list of sources could not be read.
ilprincipe@ilprincipe-X125:~$ LANG=C;sudo apt-get --purge autoremove
E: Malformed entry 2 in list file /etc/apt/sources.list.d/virtualbox.list (Suite)
E: The list of sources could not be read.
E: Malformed entry 2 in list file /etc/apt/sources.list.d/virtualbox.list (Suite)
E: The list of sources could not be read.
ilprincipe@ilprincipe-X125:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
E: Malformed entry 2 in list file /etc/apt/sources.list.d/virtualbox.list (Suite)
E: The list of sources could not be read.
ilprincipe@ilprincipe-X125:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
E: Malformed entry 2 in list file /etc/apt/sources.list.d/virtualbox.list (Suite)
E: The list of sources could not be read.
ilprincipe@ilprincipe-X125:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu-Studio 16.04 LTS _Xenial Xerus_ - Alpha i386 (20160308)]/ xenial main multiverse restricted universe
     2 # deb cdrom:[Ubuntu-Studio 16.04 LTS _Xenial Xerus_ - Alpha i386 (20160308)]/ xenial main multiverse restricted universe
     3
     4 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     5 # newer versions of the distribution.
     6 # deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 # deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    11
    12 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    13 ## team, and may not be under a free licence. Please satisfy yourself as to
    14 ## your rights to use the software. Also, please note that software in
    15 ## universe WILL NOT receive any review or updates from the Ubuntu security
    16 ## team.
    17 # deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial universe
    18 # deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-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-src http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse
    26 # deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-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-src http://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    34
    35 ## Uncomment the following two lines to add software from Canonical's
    36 ## 'partner' repository.
    37 ## This software is not part of Ubuntu, but is offered by Canonical and the
    38 ## respective vendors as a service to Ubuntu users.
    39 # deb http://archive.canonical.com/ubuntu xenial partner
    40 # deb-src http://archive.canonical.com/ubuntu xenial partner
    41
    42 # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
    43 # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    44 # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
    45
    46 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    47 # newer versions of the distribution.
    48 deb http://archive.ubuntu.com/ubuntu xenial main restricted
    49 deb-src http://archive.ubuntu.com/ubuntu xenial main multiverse universe restricted #Added by software-properties
    50 # deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted
    51
    52 ## Major bug fix updates produced after the final release of the
    53 ## distribution.
    54 deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted
    55 deb-src http://archive.ubuntu.com/ubuntu xenial-updates main multiverse universe restricted #Added by software-properties
    56 # deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    57
    58 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    59 ## team, and may not be under a free licence. Please satisfy yourself as to
    60 ## your rights to use the software. Also, please note that software in
    61 ## universe WILL NOT receive any review or updates from the Ubuntu security
    62 ## team.
    63 deb http://archive.ubuntu.com/ubuntu xenial universe
    64 # deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial universe
    65 deb http://archive.ubuntu.com/ubuntu xenial-updates universe
    66 # deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates universe
    67
    68 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    69 ## team, and may not be under a free licence. Please satisfy yourself as to
    70 ## your rights to use the software. Also, please note that software in
    71 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    72 ## security team.
    73 deb http://archive.ubuntu.com/ubuntu xenial multiverse
    74 # deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial multiverse
    75 deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
    76 # deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    77
    78 ## N.B. software from this repository may not have been tested as
    79 ## extensively as that contained in the main release, although it includes
    80 ## newer versions of some applications which may provide useful features.
    81 ## Also, please note that software in backports WILL NOT receive any review
    82 ## or updates from the Ubuntu security team.
    83 deb http://archive.ubuntu.com/ubuntu xenial-backports main universe multiverse restricted
    84 deb-src http://archive.ubuntu.com/ubuntu xenial-backports main universe multiverse restricted #Added by software-properties
    85 # deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    86
    87 ## Uncomment the following two lines to add software from Canonical's
    88 ## 'partner' repository.
    89 ## This software is not part of Ubuntu, but is offered by Canonical and the
    90 ## respective vendors as a service to Ubuntu users.
    91 # deb http://archive.canonical.com/ubuntu xenial partner
    92 # deb-src http://archive.canonical.com/ubuntu xenial partner
    93
    94 deb http://archive.ubuntu.com/ubuntu xenial-security main restricted
    95 deb-src http://archive.ubuntu.com/ubuntu xenial-security main multiverse universe restricted #Added by software-properties
    96 # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
    97 deb http://archive.ubuntu.com/ubuntu xenial-security universe
    98 # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    99 deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
   100 # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
   101 # deb http://download.videolan.org/pub/debian/stable/ /
   102 # deb-src http://download.videolan.org/pub/debian/stable/ /
   103 # deb-src http://download.videolan.org/pub/debian/stable/ /
   104 # deb-src http://archive.ubuntu.com/ubuntu xenial main universe restricted multiverse

/etc/apt/sources.list.d/xorg-edgers-ubuntu-ppa-xenial.list

     1 # deb http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu xenial main

/etc/apt/sources.list.d/pipelight-ubuntu-stable-xenial.list

     1 # deb http://ppa.launchpad.net/pipelight/stable/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/pipelight/stable/ubuntu xenial main

/etc/apt/sources.list.d/danielrichter2007-ubuntu-grub-customizer-xenial.list

     1 # deb http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu xenial main

/etc/apt/sources.list.d/nathan-renniewaldock-ubuntu-flux-xenial.list

     1 # deb http://ppa.launchpad.net/nathan-renniewaldock/flux/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/nathan-renniewaldock/flux/ubuntu xenial main

/etc/apt/sources.list.d/fossfreedom-ubuntu-rhythmbox-xenial.list

     1 # deb http://ppa.launchpad.net/fossfreedom/rhythmbox/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/fossfreedom/rhythmbox/ubuntu xenial main

/etc/apt/sources.list.d/virtualbox.list

     1 # deb http://download.virtualbox.org/virtualbox/debian xenial contrib non-free
     2 deb http://download.virtualbox.org/virtualbox/debian
     3
     4 (lsb_release -cs) contrib
     5 deb http://download.virtualbox.org/virtualbox/debian
     6 (lsb_release -cs) contrib

/etc/apt/sources.list.d/spotify.list

     1 # deb http://repository.spotify.com stable non-free

/etc/apt/sources.list.d/videolan-ubuntu-stable-daily-xenial.list

     1 # deb http://ppa.launchpad.net/videolan/stable-daily/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/videolan/stable-daily/ubuntu xenial main
     3 # deb-src http://ppa.launchpad.net/videolan/stable-daily/ubuntu xenial main

/etc/apt/sources.list.d/wereturtle-ubuntu-ppa-xenial.list

     1 # deb http://ppa.launchpad.net/wereturtle/ppa/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/wereturtle/ppa/ubuntu xenial main

/etc/apt/sources.list.d/ubuntuhandbook1-ubuntu-apps-xenial.list

     1 # deb http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu xenial main

/etc/apt/sources.list.d/iaz-ubuntu-battery-status-xenial.list

/etc/apt/sources.list.d/lyc256-ubuntu-sopcast-player-xenial.list

/etc/apt/sources.list.d/team-xbmc-ubuntu-xbmc-nightly-xenial.list

     1 # deb-src http://ppa.launchpad.net/team-xbmc/xbmc-nightly/ubuntu xenial main
     2 # deb http://ppa.launchpad.net/team-xbmc/xbmc-nightly/ubuntu xenial main
     3 # deb-src http://ppa.launchpad.net/team-xbmc/xbmc-nightly/ubuntu xenial main

/etc/apt/sources.list.d/mjblenner-ubuntu-ppa-hal-xenial.list

     1 # deb http://ppa.launchpad.net/mjblenner/ppa-hal/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/mjblenner/ppa-hal/ubuntu xenial main
     3 # deb-src http://ppa.launchpad.net/mjblenner/ppa-hal/ubuntu xenial main

/etc/apt/sources.list.d/djcj-ubuntu-hybrid-xenial.list

     1 # deb http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial main
     3 # deb-src http://ppa.launchpad.net/djcj/hybrid/ubuntu xenial main

/etc/apt/sources.list.d/libreoffice-ubuntu-ppa-xenial.list

     1 # deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu xenial main
     3 # deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu xenial main
     4 # deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu xenial main
     5 # deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu xenial main

/etc/apt/sources.list.d/libreoffice-ubuntu-libreoffice-5-1-xenial.list

     1 # deb http://ppa.launchpad.net/libreoffice/libreoffice-5-1/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/libreoffice/libreoffice-5-1/ubuntu xenial main

/etc/apt/sources.list.d/wine-ubuntu-wine-builds-xenial.list

/etc/apt/sources.list.d/otto-kesselgulasch-ubuntu-gimp-xenial.list

     1 # deb http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu xenial main
     3 # deb-src http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu xenial main

/etc/apt/sources.list.d/git-core-ubuntu-ppa-xenial.list

     1 # deb http://ppa.launchpad.net/git-core/ppa/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/git-core/ppa/ubuntu xenial main

/etc/apt/sources.list.d/rvm-ubuntu-smplayer-xenial.list

     1 # deb http://ppa.launchpad.net/rvm/smplayer/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/rvm/smplayer/ubuntu xenial main

/etc/apt/sources.list.d/webupd8team-ubuntu-atom-xenial.list

     1 # deb http://ppa.launchpad.net/webupd8team/atom/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/webupd8team/atom/ubuntu xenial main

/etc/apt/sources.list.d/byobu-ubuntu-ppa-xenial.list

     1 # deb http://ppa.launchpad.net/byobu/ppa/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/byobu/ppa/ubuntu xenial main
     3 # deb-src http://ppa.launchpad.net/byobu/ppa/ubuntu xenial main

/etc/apt/sources.list.d/ubuntu-desktop-ubuntu-ubuntu-make-xenial.list

     1 # deb http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial main

/etc/apt/sources.list.d/nicola-onorata-ubuntu-desktop-xenial.list

/etc/apt/sources.list.d/dhor-ubuntu-myway-xenial.list

     1 # deb http://ppa.launchpad.net/dhor/myway/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/dhor/myway/ubuntu xenial main

/etc/apt/sources.list.d/stebbins-ubuntu-handbrake-releases-xenial.list

     1 # deb http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu xenial main

/etc/apt/sources.list.d/webupd8team-ubuntu-java-xenial.list

     1 # deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main

/etc/apt/sources.list.d/team-xbmc-ubuntu-ppa-xenial.list

     1 # deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu xenial main
     3 # deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu xenial main
     4 # deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu xenial main

/etc/apt/sources.list.d/deity-ubuntu-sid-xenial.list

     1 # deb http://ppa.launchpad.net/deity/sid/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/deity/sid/ubuntu xenial main

/etc/apt/sources.list.d/heyarje-ubuntu-makemkv-beta-xenial.list

     1 # deb http://ppa.launchpad.net/heyarje/makemkv-beta/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/heyarje/makemkv-beta/ubuntu xenial main

/etc/apt/sources.list.d/atareao-ubuntu-atareao-xenial.list

     1 # deb http://ppa.launchpad.net/atareao/atareao/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/atareao/atareao/ubuntu xenial main

/etc/apt/sources.list.d/forkotov02-ubuntu-ppa-xenial.list

     1 # deb http://ppa.launchpad.net/forkotov02/ppa/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/forkotov02/ppa/ubuntu xenial main

/etc/apt/sources.list.d/n-muench-ubuntu-programs-ppa-xenial.list

/etc/apt/sources.list.d/vivaldi.list

     1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     2 # You may comment out this entry, but any other modifications may be lost.
     3 # deb http://repo.vivaldi.com/stable/deb/ stable main

/etc/apt/sources.list.d/paolorotolo-ubuntu-android-studio-xenial.list

     1 # deb http://ppa.launchpad.net/paolorotolo/android-studio/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/paolorotolo/android-studio/ubuntu xenial main

/etc/apt/sources.list.d/rednotebook-ubuntu-stable-xenial.list

     1 # deb-src http://ppa.launchpad.net/rednotebook/stable/ubuntu xenial main

/etc/apt/sources.list.d/linrunner-ubuntu-tlp-xenial.list

     1 # deb http://ppa.launchpad.net/linrunner/tlp/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/linrunner/tlp/ubuntu xenial main

/etc/apt/sources.list.d/videolan-ubuntu-master-daily-xenial.list

     1 # deb http://ppa.launchpad.net/videolan/master-daily/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/videolan/master-daily/ubuntu xenial main
ilprincipe@ilprincipe-X125:~$ sudo dpkg --audit
ilprincipe@ilprincipe-X125:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

As the error message tells: there are errors in the configuration file /etc/apt/sources.list.d/virtualbox.list

      1 # deb http://download.virtualbox.org/virtualbox/debian xenial contrib non-free
      2 deb http://download.virtualbox.org/virtualbox/debian
      3
      4 (lsb_release -cs) contrib
      5 deb http://download.virtualbox.org/virtualbox/debian
      6 (lsb_release -cs) contrib

Try the following:
Open a terminal window and issue the command

sudo gedit /etc/apt/sources.list.d/virtualbox.list
This will ask for your password as confirmation for an administrative action and then will open an edit with that configuration file loaded.
Delete all contents and replace with the following:

deb http://download.virtualbox.org/virtualbox/debian xenial contrib non-free

Then save the file and close the editor.
Finally re-try the command

sudo apt-get update

and report the results.

Revision history for this message
IlPrincipe (riccardomini) said :
#2

I solved it by going into Gnome-Terminal and typed:

"sudo rm /etc/apt/sources.list.d/virtualbox-ppa.list".

Many Thanks.