0

New user here. I have seen similar questions here but none of the solutions in those questions fixed these problems. When I open the app center, the "Failed to fetch updates" message pops up with the following details:

E: The repository 'http://packages.elementary.io/appcenter hera Release' does not have a Release file.
W: Updating from such a repository can't be done securely, and is therefore disabled by default.
W: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/elementary-os/stable/ubuntu hera Release' does not have a Release file.
W: Updating from such a repository can't be done securely, and is therefore disabled by default.
W: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/elementary-os/os-patches/ubuntu hera Release' does not have a Release file.
W: Updating from such a repository can't be done securely, and is therefore disabled by default.
W: See apt-secure(8) manpage for repository creation and user configuration details

enter image description here

Also when I try to install any app the "The package id's '' are not vaild" message pops up

enter image description here

1 Answer 1

1

Replace hera to bionic in the next files:

/etc/apt/sources.list.d/appcenter.list

/etc/apt/sources.list.d/patches.list

/etc/apt/sources.list.d/elementary.list

Use the following command to automate this process:

find /etc/apt -type f -print0 | sudo xargs -0 sed -i 's/hera/bionic/g'
4
  • That worked a treat. Thank you so much. How does that work though?
    – shivam
    Mar 31, 2020 at 17:28
  • @shivam The find command search all files in /etc/apt folder and send them for the "|" (pipe). Xargs gets the filenames from the pipe, takes them one by one, and executes the sed command on them. The sed command replaces hera to bionic in the files.
    – T0ba
    Apr 1, 2020 at 7:22
  • And what does replacing 'hera' to 'bionic' do? Is bionic another version of elementary
    – shivam
    Apr 1, 2020 at 10:22
  • @shivam bionic is the codename of Ubuntu 18.04.4 (Bionic Beaver). The current version of elementary is based on Ubuntu.
    – T0ba
    Apr 1, 2020 at 12:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.