Could not refresh list of updates - date not known in source list? [SOLVED]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Beeedant
Level 1
Level 1
Posts: 8
Joined: Mon Oct 22, 2018 11:39 am

Could not refresh list of updates - date not known in source list? [SOLVED]

Post by Beeedant » Mon Oct 22, 2018 11:52 am

I'm a middle aged noob when it comes to anything beyond following the most basic instructions when anything goes wrong with the computer - so please be gentle with me, I'd really appreciate it though if anybody could please talk me through how to get the updates manager working again.

I've got a red x in the update manager icon... oh, on 18.3 - i tried the sudo apt-get update command, only to get this:
E: Type ‘sudo’ is not known on line 1 in source list /etc/apt/sources.list
E: Type ‘--2018-10-17’ is not known on line 1 in source list /etc/apt/sources.list.d/playonlinux.list
E: The list of sources could not be read.

My limited ability to decipher what I've googled hasn't come up with anything completely relevant. The date would be when a friend's teenage son was messing with the computer so he could game on it. He said he'd put it all back exactly as it was, but that doesn't seem to have been the case.
Last edited by Beeedant on Mon Oct 22, 2018 12:08 pm, edited 1 time in total.

User avatar
WharfRat
Level 20
Level 20
Posts: 11705
Joined: Thu Apr 07, 2011 8:15 pm

Re: Could not refresh list of updates - date not known in source list?

Post by WharfRat » Mon Oct 22, 2018 11:55 am

Hello Beeedant Image

Welcome to Linux Mint and the Linux Mint forum :)

It looks like someone has been manipulating software sources :wink:

Paste pack the results of inxi -r
ImageImage

User avatar
xenopeek
Level 24
Level 24
Posts: 23118
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Could not refresh list of updates - date not known in source list?

Post by xenopeek » Mon Oct 22, 2018 11:55 am

Indeed. There are two options:

1- You can go into Software Sources program (if it will open without error) and click the button there to reset configuration to default.

2- We can fix it manually. Probably the files /etc/apt/sources.list and /etc/apt/sources.list.d/playonlinux.list should just be deleted. Please share the contents of the file /etc/apt/sources.list before you do that though. You can use the command inxi -r to list all these files and can then share the output from the terminal here.
Image

Beeedant
Level 1
Level 1
Posts: 8
Joined: Mon Oct 22, 2018 11:39 am

Re: Could not refresh list of updates - date not known in source list?

Post by Beeedant » Mon Oct 22, 2018 12:00 pm

Code: Select all

Repos:     Active apt sources in file: /etc/apt/sources.list
           sudo tee -a /etc/apt/sources.list
           sudo nano /etc/apt/sources.list
           sudo apt-get update
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://packages.linuxmint.com sylvia main upstream import backport
           deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
           deb http://archive.canonical.com/ubuntu/ xenial partner
           Active apt sources in file: /etc/apt/sources.list.d/official-source-repositories.list
           deb-src http://packages.linuxmint.com sylvia main upstream import backport
           deb-src http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
           deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
           deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
           deb-src http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
           deb-src http://archive.canonical.com/ubuntu/ xenial partner
           Active apt sources in file: /etc/apt/sources.list.d/playonlinux.list
           --2018-10-17 09:32:02-- http://deb.playonlinux.com/playonlinux_trusty.list
           Resolving deb.playonlinux.com (deb.playonlinux.com)... 51.254.83.230, 2001:41d0:2:37ca::1e
           Connecting to deb.playonlinux.com (deb.playonlinux.com)|51.254.83.230|:80... connected.
           HTTP request sent, awaiting response... 200 OK
           Length: 44
           Saving to: ‘playonlinux_trusty.list’
           0K 100% 5.30M=0s
           2018-10-17 09:32:02 (5.30 MB/s) - ‘playonlinux_trusty.list’ saved [44

Beeedant
Level 1
Level 1
Posts: 8
Joined: Mon Oct 22, 2018 11:39 am

Re: Could not refresh list of updates - date not known in source list?

Post by Beeedant » Mon Oct 22, 2018 12:01 pm

thank you for replying so quickly.... hope that's right

User avatar
karlchen
Level 19
Level 19
Posts: 9429
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Could not refresh list of updates - date not known in source list?

Post by karlchen » Mon Oct 22, 2018 12:01 pm

Hello, Beeedant.

The mentioned 2 files, /etc/apt/sources.list and /etc/apt/sources.list.d/playonlinux.list, hold content, which should not be present in software sources list files.

In order to find out what the offending content is, open a terminal window.
Execute the comand: cat /etc/apt/sources.list Mark the text output which the command will display and paste it into your next reply.
Execute the comand: cat /etc/apt/sources.list.d/playonlinux.list Mark the text output which the command will display and paste it into your next reply.

In case the result should be that both files hold only invalid content, then both files should be removed. But we cannot be sure without knowing their content.

Best regards,
Karl
Image
Linux Mint 18.1 64-bit Cinnamon Desktop, Total Commander 9.21a 64-bit
Ubuntu 18.04.1 32-bit Mate Desktop, Total Commander 9.21a 32-bit
Windows? - 1 window in every room

Beeedant
Level 1
Level 1
Posts: 8
Joined: Mon Oct 22, 2018 11:39 am

Re: Could not refresh list of updates - date not known in source list?

Post by Beeedant » Mon Oct 22, 2018 12:03 pm

i did try restoring default settings through the software sources, but i had the same error message as my first post pretty much!

Beeedant
Level 1
Level 1
Posts: 8
Joined: Mon Oct 22, 2018 11:39 am

Re: Could not refresh list of updates - date not known in source list?

Post by Beeedant » Mon Oct 22, 2018 12:04 pm

cat /etc/apt/sources.list
sudo tee -a /etc/apt/sources.list
sudo nano /etc/apt/sources.list
sudo apt-get update

Beeedant
Level 1
Level 1
Posts: 8
Joined: Mon Oct 22, 2018 11:39 am

Re: Could not refresh list of updates - date not known in source list?

Post by Beeedant » Mon Oct 22, 2018 12:04 pm

cat /etc/apt/sources.list.d/playonlinux.list
--2018-10-17 09:32:02-- http://deb.playonlinux.com/playonlinux_trusty.list
Resolving deb.playonlinux.com (deb.playonlinux.com)... 51.254.83.230, 2001:41d0:2:37ca::1e
Connecting to deb.playonlinux.com (deb.playonlinux.com)|51.254.83.230|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 44
Saving to: ‘playonlinux_trusty.list’

0K 100% 5.30M=0s

2018-10-17 09:32:02 (5.30 MB/s) - ‘playonlinux_trusty.list’ saved [44/44]

User avatar
xenopeek
Level 24
Level 24
Posts: 23118
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Could not refresh list of updates - date not known in source list?

Post by xenopeek » Mon Oct 22, 2018 12:05 pm

You can delete these two files; they have nothing in them except erroneous content.

In one go with this command:
sudo rm -v /etc/apt/sources.list /etc/apt/sources.list.d/playonlinux.list
Image

Beeedant
Level 1
Level 1
Posts: 8
Joined: Mon Oct 22, 2018 11:39 am

Re: Could not refresh list of updates - date not known in source list?

Post by Beeedant » Mon Oct 22, 2018 12:07 pm

oh wow! that's just magicked everything better thank you SO much!

User avatar
WharfRat
Level 20
Level 20
Posts: 11705
Joined: Thu Apr 07, 2011 8:15 pm

Re: Could not refresh list of updates - date not known in source list? [SOLVED]

Post by WharfRat » Mon Oct 22, 2018 12:12 pm

I can see you were the one manipulating sources from this result :D

Code: Select all

cat /etc/apt/sources.list
sudo tee -a /etc/apt/sources.list
sudo nano /etc/apt/sources.list
sudo apt-get update
Easy fix - enjoy Mint :wink:
ImageImage

Beeedant
Level 1
Level 1
Posts: 8
Joined: Mon Oct 22, 2018 11:39 am

Re: Could not refresh list of updates - date not known in source list? [SOLVED]

Post by Beeedant » Mon Oct 22, 2018 12:16 pm

I guess that's a couple of the commands i copy/pasted from forums from threads with similar issues but to no avail before conceding I needed to ask for help! Thank you again though. I'm really out of my depth with anything terminal related.

Post Reply

Return to “Newbie Questions”