无法在 Ubuntu 20.04 上安装 MikTex

无法在 Ubuntu 20.04 上安装 MikTex

我卸载了 MikTex,因为 texstudio 无法自动更新软件包。我想再次安装它。但是当我启动时却出现了这个错误sudo apt-get update

Hit:1 http://pl.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://pl.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                                                           
Hit:4 http://ppa.launchpad.net/sunderme/texstudio/ubuntu focal InRelease                                                                                                    
Hit:5 http://pl.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                                                         
Hit:6 http://download.opensuse.org/repositories/Ubuntu:/debbuild/Ubuntu_20.04  InRelease                                                                                    
Hit:7 http://deb.playonlinux.com trusty InRelease                                                                                                                           
Hit:8 https://download.docker.com/linux/ubuntu focal InRelease                                                                                                         
Hit:9 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                                
Ign:2 https://ftp.gust.org.pl/TeX/systems/win32/miktex/setup/deb focal InRelease           
Err:11 https://ftp.gust.org.pl/TeX/systems/win32/miktex/setup/deb focal Release
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses insecure algorithm.  Could not handshake: Error in the certificate verification. [IP: 158.75.62.5 443]
Ign:10 https://cvmrepo.web.cern.ch/cvmrepo/apt focal-prod InRelease
Hit:12 https://cvmrepo.web.cern.ch/cvmrepo/apt focal-prod Release
Reading package lists... Done
E: The repository 'http://miktex.org/download/ubuntu focal Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

我试过了sudo apt install ca-certificates,但失败了。这也行不通如果存储库/PPA 没有 Release 文件,我该怎么办? 结果是:

~$ sudo ppa-purge ppa:mc3man/trusty-media
Updating packages lists
E: The repository 'http://miktex.org/download/ubuntu focal Release' no longer has a Release file.
Warning:  apt-get update failed for some reason

~$ sudo apt-get update
Hit:1 http://pl.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://download.opensuse.org/repositories/Ubuntu:/debbuild/Ubuntu_20.04  InRelease
Hit:3 http://pl.archive.ubuntu.com/ubuntu focal-updates InRelease              
Hit:4 http://ppa.launchpad.net/sunderme/texstudio/ubuntu focal InRelease       
Hit:5 http://deb.playonlinux.com trusty InRelease                              
Hit:7 http://pl.archive.ubuntu.com/ubuntu focal-backports InRelease            
Hit:9 https://download.docker.com/linux/ubuntu focal InRelease                 
Ign:6 https://ftp.gust.org.pl/TeX/systems/win32/miktex/setup/deb focal InRelease
Hit:11 http://security.ubuntu.com/ubuntu focal-security InRelease              
Err:10 https://ftp.gust.org.pl/TeX/systems/win32/miktex/setup/deb focal Release
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses insecure algorithm.  Could not handshake: Error in the certificate verification. [IP: 158.75.62.5 443]
Ign:8 https://cvmrepo.web.cern.ch/cvmrepo/apt focal-prod InRelease             
Hit:12 https://cvmrepo.web.cern.ch/cvmrepo/apt focal-prod Release
Reading package lists... Done
E: The repository 'http://miktex.org/download/ubuntu focal Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

现在我无法再次安装它。有帮助吗?

答案1

什么都不起作用。但是哈哈...我忽略了一周后可以再次安装它。

~$ sudo apt update
Hit:1 http://pl.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 https://download.docker.com/linux/ubuntu focal InRelease                 
Hit:3 http://ppa.launchpad.net/sunderme/texstudio/ubuntu focal InRelease       
Get:4 http://pl.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]     
Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]      
Hit:6 http://download.opensuse.org/repositories/Ubuntu:/debbuild/Ubuntu_20.04  InRelease
Get:7 http://pl.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]   
Hit:10 http://deb.playonlinux.com trusty InRelease                             
Get:8 https://sunsite.icm.edu.pl/pub/CTAN/systems/win32/miktex/setup/deb focal InRelease [2 030 B]
Get:11 http://pl.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [841 kB]
Ign:9 https://cvmrepo.web.cern.ch/cvmrepo/apt focal-prod InRelease
Get:12 http://pl.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [434 kB]
Get:13 http://pl.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [264 kB]
Get:14 http://pl.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [746 kB]
Get:16 http://pl.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [555 kB]
Get:17 http://pl.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [302 kB]
Get:18 http://pl.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [2 468 B]
Hit:15 https://cvmrepo.web.cern.ch/cvmrepo/apt focal-prod Release              
Get:19 http://pl.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [1 768 B]
Get:20 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [24,2 kB]
Get:21 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [58,2 kB]
Fetched 3 554 kB in 1s (2 409 kB/s)                                           
Reading package lists... Done
Building dependency tree       
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Skipping acquire of configured file 'stable/source/Sources' as repository 'https://download.docker.com/linux/ubuntu focal InRelease' does not seem to provide it (sources.list entry misspelt?)
N: Skipping acquire of configured file 'universe/binary-i386/Packages' as repository 'http://miktex.org/download/ubuntu focal InRelease' doesn't support architecture 'i386'

问题很简单

E: The repository 'http://miktex.org/download/ubuntu focal Release' no longer has a Release file.

就让它过去,然后等待。

相关内容