System does not fully support snapd: cannot mount squashfs image using "squashfs"

It is a type of server virtualization.

That’s okay, we can find out. What is the output of:

sudo systemd-detect-virt

This is the output:

openvz

Yep. You’re right. Now what should I do?

You are basically out of luck.

snaps rely on certain Linux kernel features which are not available under containerized servers like those running under openvz.

You can still install Certbot, it just won’t be the fully up-to-date version (but that’s okay).

sudo apt install certbot

Ok, I’ve just tried the command above. But what the heck is that?

image

Sure, if you’re using Certbot with nginx, then:

sudo apt install python3-certbot-nginx

Lol, you’re right, I was skipping a command… But could you tell me what the difference is between the command with snap and the other one without snap? I wonder if now I can install another certificate for my subdomain (How can I add a certificate for a subdomain?).

snap or not, Certbot is still the same program.

Based on that thread, if you have some hidden unicode somewhere in your nginx configuration, you need to identify it and get rid of it.

So if the error is can't decode byte 0xB3, you can try find it with:

sudo grep -RPn "\xB3" /etc/nginx/

I still don’t understand about that so-much debated hidden unicode. This is my current Nginx configuration. At: /etc/nginx/sites-available/default

So what’s wrong about it? I haven’t seen any special character

I don’t know. If Certbot is complaining about it, it’s there somewhere. Did my grep command show up any results?

As you can see, I executed your command and… Nothing:

image

Do you still get any unicode errors produced if you run:

sudo certbot --nginx

Yes, the same old error :roll_eyes:

image

I see. It’s different to the error in your other thread, which was 0xb3.

I want to make it easier to help you track this down, maybe we can go about it in a simpler and faster way.

If you are OK sharing your entire nginx config, can you do:

sudo apt -y install netcat
sudo nginx -T | nc termbin.com 9999

Otherwise …

sudo grep -RPn "\xBD" /etc/nginx/
sudo grep -RPn "[\x80-\xFF]" /etc/nginx/

Ok, I did everything as you requested:

sudo nginx -T | nc termbin.com 9999

I just can’t understand one thing: What the heck is wrong about those lines. There is no special character there. And as for the nginx configuration, I’ve already shared this with you. See above.

It’s all in here… As you can see…

There is, on that line 134.

Do you see that weird grey-and-black rectangle on the end of the line?

I think that’s the bad hidden character. It might not be visible in a text editor. It probably got there through some kind of copy-and-paste operation.

I think if you delete everything past the # on that line, the problem should go away.

Check again with the grep afterwards that it’s gone.

Oh, gosh. You’re right one more time… I had noticed that stuff before… I was suspecting from the beginning. And yes, I used this copy-paste method there. Now I remember… Ok, I’ll take it out and see how it goes… Wait…

Things seem to me okay, at least for now. Look:

That means that when I set the subdomain it will show on that list, right?

I think I know what the problem was: have you came across that situation where you press tab and then a long red space shows there? So… that’s what happened. However, I didn’t know what it meant. Now I know what that heck may cause. Why?