0

I have recently tried to upgrade my ubuntu 16.04 to ubuntu 18.04. But it wont succeed. At the time of installation of downloaded update it ends saying: upgrade partially completed. But while upgrading a message pop-up saying:


**No valid sources.list entry found While scanning your repository information no entry about xenial could be found. An upgrade might not succeed.


PLEASE HELP ME.

  • Could you add the content of /etc/apt/sources.list? – Tung Tran Nov 9 '18 at 6:51
  • did you change sources.list with type sudo sed -i 's/xenial/bionic/g' /etc/apt/sources.list and run sudo do-release-upgrade -d again? – abu-ahmed al-khatiri Nov 9 '18 at 10:05
  • I have searched and this is the ONLY question that has this exact error message "No valid sources.list entry found While scanning your repository information no entry about xenial could be found". If closing as duplicate, please post link to said duplicate - thanks – Bastion Aug 28 '19 at 23:37
  • == CAUSE == In my case was that do-release-upgrade had accidentally been cancelled so it was part way through the process and apparently didn't know how to resume. I will add my solution in case other people have this issue (this is the top result for the stated error message text). == FIX == This is what I ran as root (you can use sudo) to fix it: apt-get update; apt-get upgrade; apt-get dist-upgrade – Bastion Aug 29 '19 at 1:59