-1

I will describe my problem:

1) I installed ubuntu server 16.04.3 LTS on an HP Proliant DL380 G7 server using a bootable USB stick.

2) As soon as the installation is finished, I wanted to update the system with the command: sudo apt-get update but an error appeared to me:

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

-> the contents of the /etc/apt/sources.list file is as follows:

Ubuntu Update Rest
deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates

deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-update

3) I have an ethernet cable connects from my server to the router.

4) My network interface is a bit weird, I do not understand why it is of this form enp13s0f0 and not eth0 !!!

So if someone has an answer, it will help me a lot because I am blocked :(

Robert Riedl
  • 4,401

1 Answers1

1

Your /etc/apt/sources.list seems to have been modified, one trivial thing that is missing is the component, it should at least look like this :

Ubuntu Update Rest
deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates main

deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-update main

And about your network interface name, eth0 is no more in use, since this name can change from one boot to anoter, see predictable network interface name. But if you really want it to be named eth0, this old behavior can be restored like described here.

pim
  • 3,350