升级失败导致我的所有软件包都来自 18.04,尽管我运行的是 16.04

升级失败导致我的所有软件包都来自 18.04,尽管我运行的是 16.04
# sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 http://archive.canonical.com/ubuntu bionic InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Fetched 88.7 kB in 0s (99.6 kB/s)
Reading package lists... Done

尽管它正在尝试从 Bionic 更新

$ lsb_release -a                                                                                                                                                                 
No LSB modules are available.                                                                                                                                                                 
Distributor ID: Ubuntu                                                                                                                                                                        
Description:    Ubuntu 16.04.6 LTS                                                                                                                                                            
Release:        16.04                                                                                                                                                                         
Codename:       xenial  

当我这样做时,它是 Xenial。我甚至无法 ssh 到我的服务器,我需要使用我的 VPS 中的紧急控制台工具。如果我尝试安装新软件包,它不起作用。它说要升级我的内核,但我无法这样做,因为 VPS 不允许这样做。

$ sudo apt-get install openssh-server                                                                                                                                            
Reading package lists... Done                                                                                                                                                                 
Building dependency tree                                                                                                                                                                      
Reading state information... Done                                                                                                                                                             
The following additional packages will be installed:                                                                                                                                          
  libc-bin libc6 libgssapi-krb5-2 libxext6 libxmuu1 openssh-client openssh-sftp-server python3-certifi python3-chardet python3-idna python3-pkg-resources python3-requests python3-six        
  python3-urllib3 ssh-import-id xauth                                                                                                                                                         
Suggested packages:                                                                                                                                                                           
  glibc-doc locales krb5-doc krb5-user keychain libpam-ssh monkeysphere ssh-askpass molly-guard rssh ufw python3-setuptools python3-cryptography python3-openssl python3-socks                
The following NEW packages will be installed:                                                                                                                                                 
  libgssapi-krb5-2 libxext6 libxmuu1 openssh-client openssh-server openssh-sftp-server python3-certifi python3-chardet python3-idna python3-pkg-resources python3-requests python3-six        
  python3-urllib3 ssh-import-id xauth                                                                                                                                                         
The following packages will be upgraded:                                                                                                                                                      
  libc-bin libc6                                                                                                                                                                              
2 upgraded, 15 newly installed, 0 to remove and 605 not upgraded.                                                                                                                             
Need to get 0 B/5166 kB of archives.                                                                                                                                                          
After this operation, 9286 kB of additional disk space will be used.                                                                                                                          
Do you want to continue? [Y/n]

dpkg: error processing archive /var/cache/apt/archives/libc6_2.27-3ubuntu1_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1                                                                                                                          
Processing triggers for libc-bin (2.23-0ubuntu11) ...                                                                                                                                         
Errors were encountered while processing:                                                                                                                                                     
 /var/cache/apt/archives/libc6_2.27-3ubuntu1_amd64.deb                                                                                                                                        
E: Sub-process /usr/bin/dpkg returned an error code (1)  

相关内容