How to fix W: Duplicate sources.list entry newrelic/non-free amd64 Packages (/var/lib/apt/lists/apt.newrelic.com_debian_dists_newrelic_non-free_binary-amd64_Packages)

How to fix this error ?

W: Duplicate sources.list entry newrelic/non-free amd64 Packages (/var/lib/apt/lists/apt.newrelic.com_debian_dists_newrelic_non-free_binary-amd64_Packages)

This comes on my hosting once you typed in apt-get update.

The resolution is pretty simple if you know where to look to for and they don’t make it easy.

Instead of navigating to

$cd /etc/apt/

you need to navigate to:

# cd /etc/apt/sources.list.d/ and edit newrelic file

it might just simpler to type:

$vim /etc/apt/sources.list.d/newrelic.list

and edit to file from:

deb newrelic non-free

deb newrelic non-free

So you need to remove one line and run apt-get update again.

Problem solved!

Or simply you can use this command to find where it is

grep -rnw /etc/ -e “deb”
/etc/apt/sources.list.d/newrelic.list:1:deb newrelic non-free


Kaspersky How to fix database updates

If the database is not updating even if the “Update task worked” then follow the below

1. Log in to the Kaspersky Management console.

2. Navigate to affected server.

3. Run Database Update task.

4. Check if the task worked by checking the database timestamp in the Application->Kaspersky Server-> Database Date. If the timestamp hasn’t changed then do the following

5. Under Application Stop/Start Kaspersky Server.

6. Under Task Run a Database Rollback

7. Under Taks Run the database Update.

8. Go out of the server and refresh the view.

9. Check the database timestamp but it should be “green” already.