[SOLVED] Updating with https help

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
VoxelMints
Level 1
Level 1
Posts: 49
Joined: Sat Sep 08, 2018 6:20 pm

[SOLVED] Updating with https help

Post by VoxelMints »

gm10 wrote:
Sun Sep 09, 2018 9:41 am
Switch to a mirror that supports https, then edit /etc/apt/sources.list.d/official-package-repositories.list and /etc/apt/sources.list.d/official-source-repositories.list to change references to http:// to https:// instead.

Note that you'll have to manually change the -security repo to use your mirror. By default this does not use a mirror to ensure you get timely security updates even if your mirror goes stale. So keep that in mind when choosing a mirror.

Further note that you cannot switch the partner repository to https but you can just disable it if you're not using the adobe-flashplugin package. Flash needs to die, so easy choice.

If your apt version is < 1.5 you'll need to install the apt-transport-https package.

I'm on Mint 19.1. When I check /etc/apt/sources.list.d I only see one file official-package-repositories.list.
The second file official-source-repositories.list seems to be missing.

I'm unfamiliar with the partner repository. I'm unsure how to disable it.

I'm stuck with these two steps at the moment, but It seems easier than I thought configuring updates with https.

Thanks for the help.
Last edited by VoxelMints on Tue Jan 29, 2019 9:04 pm, edited 1 time in total.

gm10
Level 20
Level 20
Posts: 10916
Joined: Thu Jun 21, 2018 5:11 pm

Re: Updating with https help

Post by gm10 »

VoxelMints wrote:
Tue Jan 29, 2019 4:07 pm
The second file official-source-repositories.list seems to be missing.
That's ok, it only gets created if you enable the optional source code repositories in the Software Sources tool. Leave that disabled, that's only for developers.
VoxelMints wrote:
Tue Jan 29, 2019 4:07 pm
I'm unfamiliar with the partner repository. I'm unsure how to disable it.
Last line of the file you've got. Just remove it.

VoxelMints
Level 1
Level 1
Posts: 49
Joined: Sat Sep 08, 2018 6:20 pm

Re: Updating with https help

Post by VoxelMints »

gm10 wrote:
Tue Jan 29, 2019 4:11 pm
VoxelMints wrote:
Tue Jan 29, 2019 4:07 pm
I'm unfamiliar with the partner repository. I'm unsure how to disable it.
Last line of the file you've got. Just remove it.

I open /etc/apt/sources.list.d/official-package-repositories.list and remove the last line to disable the partner repository. Ok.

If I remove the partner repository, can it prevent me from installing the Nvidia driver and media codecs, after a fresh Mint install?

User avatar
thx-1138
Level 7
Level 7
Posts: 1926
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Updating with https help

Post by thx-1138 »

...VoxelMints => the url of the repo (that you plan removing) speaks for itself...
-> http://archive.canonical.com/ubuntu/pool/partner/
(all of the existing partner packages in question for current & past Ubuntu versions...)

Assuming you're using 64bit & Mint 19 / Bionic...
-> http://archive.canonical.com/dists/bion ... ackages.gz
Extract & examine...or, on Synaptic...click Origin (on the sidebar, instead of Status) ->
scroll down to bionic/main (archive.canonical.com)...
You can see the origin of whatever package there...

Quick'n'dirty way to currently see what packages from the partner's repo you have installed...
("currently", because it would fail if at some future point Canonical restructures it's repos / domains used)
aptitude search "?installed?origin(canonical)"
i adobe-flashplugin - Adobe Flash Player plugin
(ie. Flash is currently installed here, and also the only installed package coming from partners' repo)...

VoxelMints
Level 1
Level 1
Posts: 49
Joined: Sat Sep 08, 2018 6:20 pm

Re: Updating with https help

Post by VoxelMints »

thx-1138 wrote:
Tue Jan 29, 2019 5:18 pm
...VoxelMints => the url of the repo (that you plan removing) speaks for itself...
-> http://archive.canonical.com/ubuntu/pool/partner/
(all of the existing partner packages in question for current & past Ubuntu versions...)
I felt writing more clearly what gm10 suggested would help someone else following this thread.

thx-1138 wrote:
Tue Jan 29, 2019 5:18 pm
Quick'n'dirty way to currently see what packages from the partner's repo you have installed...
("currently", because it would fail if at some future point Canonical restructures it's repos / domains used)
aptitude search "?installed?origin(canonical)"
i adobe-flashplugin - Adobe Flash Player plugin
(ie. Flash is currently installed here, and also the only installed package coming from partners' repo)...
This was very helpful thanks.

VoxelMints
Level 1
Level 1
Posts: 49
Joined: Sat Sep 08, 2018 6:20 pm

Re: Updating with https help

Post by VoxelMints »

gm10 wrote:
Sun Sep 09, 2018 9:41 am
Note that you'll have to manually change the -security repo to use your mirror. By default this does not use a mirror to ensure you get timely security updates even if your mirror goes stale. So keep that in mind when choosing a mirror.
Not all my packages were downloading. I noticed I missed this info about replacing the security repo.

I chose two mirrors that support https "Base" and "Main". I'm unsure which replaces the security repo, or how.
I think after fixing this things should be working ok.

gm10
Level 20
Level 20
Posts: 10916
Joined: Thu Jun 21, 2018 5:11 pm

Re: Updating with https help

Post by gm10 »

VoxelMints wrote:
Tue Jan 29, 2019 4:29 pm
If I remove the partner repository, can it prevent me from installing the Nvidia driver and media codecs, after a fresh Mint install?
No, the flash plugin is the only relevant content there or I wouldn't have suggested removing it.
VoxelMints wrote:
Tue Jan 29, 2019 7:14 pm
gm10 wrote:
Sun Sep 09, 2018 9:41 am
Note that you'll have to manually change the -security repo to use your mirror. By default this does not use a mirror to ensure you get timely security updates even if your mirror goes stale. So keep that in mind when choosing a mirror.
Not all my packages were downloading. I noticed I missed this info about replacing the security repo.

I chose two mirrors that support https "Base" and "Main". I'm unsure which replaces the security repo, or how.
I think after fixing this things should be working ok.
Your entries should look exactly as in the original file, just with the protocol changed to https and the hostname changed to your mirror. You would end up with 1 line for the Mint mirror and 4 lines for the Ubuntu mirrors.

VoxelMints
Level 1
Level 1
Posts: 49
Joined: Sat Sep 08, 2018 6:20 pm

Re: Updating with https help

Post by VoxelMints »

I took a moment to try and figure this out, this is how my /etc/apt/sources.list.d/official-package-repositories.list file currently looks.

------------------------------------------------------------------------------------------------------------------------------------------
deb https;//mirror.mylink01.com/linuxmint-packages tessa main upstream import backport

deb https;//mirror.mylink02.com/ubuntu bionic main restricted universe multiverse
deb https;//mirror.mylink02.com/ubuntu bionic-updates main restricted universe multiverse
deb https;//mirror.mylink02.com/ubuntu bionic-backports main restricted universe multiverse

deb https;//mirror.mylink02.com/ubuntu/ bionic-security main restricted universe multiverse
------------------------------------------------------------------------------------------------------------------------------------------

I noticed one or two packages fail to download from my second mirror. Maybe I need to find another.

gm10
Level 20
Level 20
Posts: 10916
Joined: Thu Jun 21, 2018 5:11 pm

Re: Updating with https help

Post by gm10 »

Assuming in your actual file it says https:// and not https;// that looks all good.

VoxelMints
Level 1
Level 1
Posts: 49
Joined: Sat Sep 08, 2018 6:20 pm

Re: Updating with https help

Post by VoxelMints »

gm10 wrote:
Tue Jan 29, 2019 8:15 pm
Assuming in your actual file it says https:// and not https;// that looks all good.
I forgot to leave a note about that, it was to keep my links from formatting into actual links by the forum software.
Thanks for the help everyone! :D

VoxelMints
Level 1
Level 1
Posts: 49
Joined: Sat Sep 08, 2018 6:20 pm

Re: [SOLVED] Updating with https help

Post by VoxelMints »

When I click refresh to check for new packages the Update Manager always fails to fetch this link with an HTTPS mirror. I have tried several different HTTPS mirrors with the same results. https;//mirror.mylink01.com/linuxmint/packages tessa InRelease

I did apply available updates with my HTTPS mirror.

I reset the Update Manager settings to default and checked for available packages. None were available. Even though everything seems like it downloaded ok, I do wonder what the failed to fetch link is for.

gm10
Level 20
Level 20
Posts: 10916
Joined: Thu Jun 21, 2018 5:11 pm

Re: [SOLVED] Updating with https help

Post by gm10 »

VoxelMints wrote:
Wed Jan 30, 2019 5:12 pm
Even though everything seems like it downloaded ok, I do wonder what the failed to fetch link is for.
Debian repositories have a manifest file to tell the clients what they can find in the repository. The InRelease file is the standard manifest, but Mint's repositories do not support that, they only use the deprecated Release file. I'll spare you the details since there's nothing you can do about it. As you noticed, it still works, because while the updater is trying the standard InRelease first - and telling you that it couldn't find one - it'll then fall back to the deprecated Release file format and since it finds that, all ends up ok.

VoxelMints
Level 1
Level 1
Posts: 49
Joined: Sat Sep 08, 2018 6:20 pm

Re: [SOLVED] Updating with https help

Post by VoxelMints »

Awesome!. It did update fine but thought I would check and make sure.

VoxelMints
Level 1
Level 1
Posts: 49
Joined: Sat Sep 08, 2018 6:20 pm

Re: [SOLVED] Updating with https help

Post by VoxelMints »

I reinstalled Mint Cinnamon 19.1, it looks like I can't install the Nvidia driver over HTTPS. My Mint CD is not in "additional repositories" like usual.
I'm trying to install from my CD, but not sure how to add it as an additional repository. If anyone can help it's appreciated.

User avatar
philotux
Level 5
Level 5
Posts: 833
Joined: Sat Jul 21, 2018 11:14 am
Location: Utopia

Re: [SOLVED] Updating with https help

Post by philotux »

Look under "Additional repositories" tab in Software Sources to see if you can enable it from there.

VoxelMints
Level 1
Level 1
Posts: 49
Joined: Sat Sep 08, 2018 6:20 pm

Re: [SOLVED] Updating with https help

Post by VoxelMints »

philotux wrote:
Thu Feb 07, 2019 4:13 am
Look under "Additional repositories" tab in Software Sources to see if you can enable it from there.

Unfortunately for me it is not there. Normally you click the check mark to enable but it is missing for me.

If someone can please visit the software sources window shown below. You should see the Mint CD repository. If you click the edit button you can copy and paste here Thank You.

Mint Start Menu > Administration > Software Sources

Post Reply

Return to “Newbie Questions”