Score:2

error message when sudo apt update

cn flag

When I type 'sudo apt update' error message comes out every time, since I installed whale browser. What's matter and what is a greate solution? Just ignore it?

Edit : I'm using ubuntu 20.04 and the error message is omitted. Error message :

Failed to fetch https://repo.whale.naver.com/stable/deb/dists/stable/InRelease  Could not connect to repo.whale.naver.com:443 (125.209.218.142). - connect (111: Connection refused)
W: Some index files failed to download. They have been ignored, or old ones used instead.

This is the source file.

### THIS FILE IS AUTOMATICALLY CONFIGURED ### 
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] https://repo.whale.naver.com/stable/deb stable main
Someone avatar
my flag
Please add the output of `cat /etc/apt/sources.list.d/naver*`
Chiyoung avatar
cn flag
@Someone ### THIS FILE IS AUTOMATICALLY CONFIGURED ### # You may comment out this entry, but any other modifications may be lost. deb [arch=amd64] https://repo.whale.naver.com/stable/deb/ stable main ### THIS FILE IS AUTOMATICALLY CONFIGURED ### # You may comment out this entry, but any other modifications may be lost. deb [arch=amd64] https://repo.whale.naver.com/stable/deb/ stable main
Chiyoung avatar
cn flag
@Someone I don't know why terminal saying repeatedly, this is the output
mchid avatar
bo flag
@Chiyoung Please edit your question and post the output there. Also to format this, highlight the code and then press CTRL+K before you click save.
mchid avatar
bo flag
@ArturMeinild I realized they actually were using https because the error says https. I tried https in my sources list file for that repo and got the same error. It works fine with http in the sources.list file.
mchid avatar
bo flag
@Chiyoung Your answer is below.
Score:1
bo flag

The problem is that you are using https and the site requires http. Apt normally doesn't use https and uses a different method of security by signing the packages.

Run the following command to fix the problem (edit the file using sed):

sudo sed -i 's|https://repo.whale|http://repo.whale|g' /etc/apt/sources.list.d/naver-whale.list

Then run apt update:

sudo apt update

and don't forget to upgrade:

sudo apt upgrade

or

sudo apt dist-upgrade

to include kernel updates.

Chiyoung avatar
cn flag
Thank you, your solution is fit to my problem. But I wonder what is going on when I enter sudo sed-i 's|~, I searched for it but I can't find command parameter with 's|'. So can you tell me what is going on and from where did you edit https to http?
mchid avatar
bo flag
@Chiyoung Normally, we use `sed 's/foo/bar/g` to replace `foo` with `bar`. However, here we want to replace something that contains a forward-slash `/`. We could escape all forward slashes or we could use `|` instead of `/` with the sed command to avoid confusion.
mchid avatar
bo flag
@Chiyoung Basically, we don't have to use forward slashes with `sed` we can use pipes `|` and we can also use other characters like comments `#` in place of forward slashes. So, `s/foo/bar/g` and `s|foo|bar|g` and `s#foo#bar#g` and even `s$foo$bar$g` will all work the same. This is a handy trick when your text contains special characters.
mchid avatar
bo flag
@Chiyoung `'s|https://repo.whale|http://repo.whale|g'` is the same as `'s/https:\/\/repo.whale/http:\/\/repo.whale/g'`
mchid avatar
bo flag
@Chiyoung To be more precise, the first character after `s` is used as a separator. So we can even use the letter `p` like this: `'spfoopbarpg'` instead of `'s/foo/bar/g'`
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.