I am quite new to Ubuntu, starting on 17.10 and am now on 18.04.

On my laptop I have 16.04 which updates perfectly, but on my desktop under 18.04 nothing seems to update automatically.

main error is "Failed to download repository information" "check your internet connection"

I have followed this thread How to resolve "Failed to download repository information"?

Chose "Best server" then "Main server" but still nothing really want to update.

One extra error I see is

E:Repository 'https://cli-assets.heroku.com/branches/stable/apt ./ InRelease' changed its 'Origin' value from 'Heroku, Inc.' to 'Heroku'

Under Synaptic though I have managed to update Sublime Text, and also Nvidia driver through a tutorial and console.

But I am yet very new to Ubuntu.

Can someone points the error that prevent Software and update to update properly ?

(I have done everything mentioned in above thread : sudo apt-get clean sudo apt-get update sudo apt-get upgradeit kinda works in console but with some warnings at the end)


here is error on sudo apt-get update

E: Repository 'https://cli-assets.heroku.com/branches/stable/apt ./ InRelease' changed its 'Origin' value from 'Heroku, Inc.' to 'Heroku'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

and error on sudo apt-get upgrade

E: Failed to fetch https://cli-assets.heroku.com/apt/heroku_6.16.18-1_amd64.deb  404  Not Found [IP: 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


I have tried to install Ubuntu as advised here https://devcenter.heroku.com/articles/heroku-cli


sudo snap install heroku --classic

but got error

error: cannot perform the following tasks:
- Exécuter la configuration du point d'accroche du paquet Snap "heroku" s'il est présent (run hook "configure": /usr/local/bin/heroku: ligne 18 : cd: « HOME » non défini)

though curl https://cli-assets.heroku.com/install.sh | sh seemed to work ans installed the newest version.

Yet the above errors from EDIT section still appear


From your question, it looks like something has changed at the Heroku repository. They may have updated the key which would explain the difference between "Heroku" and "Heroku, Inc."

To do an update, the simplest thing is to disable the repository. You can do this via the GUI or by simply commenting out the line in /etc/apt/sources.list or renaming the file in the /etc/apt/sourced.list.d folder.

To solve your heroku update, you'll need to find the right repos URL from heroku and add the new key.

  • thank you I will try what you have advised. The problem above refers to Heroku heroku_6.16.18-1_amd64.deb. Now I have done curl https://cli-assets.heroku.com/install.sh | sh my heroku version is heroku/7.7.7 linux-x64 node-v10.7.0. Maybe I should get rid of heroku_6.16.18-1_amd64 – Maxence Jul 28 '18 at 12:44
  • Yes. It looks like you're doing an unplanned upgrade from their perspective. So I'd just remove all references to version 6.16 in apt. – tu-Reinstate Monica-dor duh Jul 28 '18 at 12:46
  • oddly synaptic does not refer to 7.7.7 but only to 6.16.18-1. By disabling the repository, is it through Software & update > Other software, then removing https://cli-assets.heroku.com/branches/stable/apt./ ? – Maxence Jul 28 '18 at 12:49
  • Yes. That will work. Then do an apt update and then you can run the curl script again which will install the correct repository. – tu-Reinstate Monica-dor duh Jul 28 '18 at 12:51
  • Fantastic. It now works. Nothing had been updated since march when I installed 18.04. Now a lot of things have been updated. Triggered quite a few dpkg (?) errors about packages not configured yet but it seems the update at least work. It says my system is up-to-date. – Maxence Jul 28 '18 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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