¿Por qué apt-get abort por sí mismo, como si hubiera presionado 'N'?


29

En Ubuntu 14.04, cuando intento instalar una aplicación o incluso simplemente hacer:

sudo apt-get upgrade

Siempre termino con este mensaje al final:

Do you want to continue? [Y/n] Abort.

No escribí nada, simplemente aborta automáticamente.

¿Pueden ayudarme chicos?

======= [Editar # 1 agosto 12] ======= Aquí he copiado todos los textos de la terminal. He ejecutado el comando 2 aquí, el: sudo apt-get update y luego, después de obtener el resultado, ejecuto el sudo apt-get upgrade

Aquí están los textos copiados de la terminal:

franzbiely@Franz-Gizmo:~$ sudo apt-get update
Ign http://archive.ubuntu.com trusty InRelease                                 
Ign http://ppa.launchpad.net trusty InRelease                                  
Ign http://archive.canonical.com trusty InRelease                              
Ign http://extras.ubuntu.com trusty InRelease                                  
Ign http://archive.ubuntu.com trusty-updates InRelease                         
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://archive.canonical.com trusty Release.gpg                            
Hit http://extras.ubuntu.com trusty Release.gpg                                
Ign http://archive.ubuntu.com trusty-backports InRelease                       
Ign http://ppa.launchpad.net trusty InRelease                                  
Hit http://archive.canonical.com trusty Release                                
Hit http://extras.ubuntu.com trusty Release                                    
Hit http://archive.canonical.com trusty/partner Sources                        
Hit http://extras.ubuntu.com trusty/main Sources                               
Hit http://ppa.launchpad.net trusty Release.gpg                                
Ign http://dl.google.com stable InRelease                                      
Hit http://ppa.launchpad.net trusty Release.gpg                                
Hit http://archive.canonical.com trusty/partner amd64 Packages                 
Hit http://dl.google.com stable Release.gpg                                    
Hit http://ppa.launchpad.net trusty Release.gpg                                
Hit http://archive.canonical.com trusty/partner i386 Packages                  
Hit http://extras.ubuntu.com trusty/main amd64 Packages                        
Ign http://archive.ubuntu.com trusty-security InRelease                        
Hit http://dl.google.com stable Release                                        
Hit http://ppa.launchpad.net trusty Release                                    
Hit http://extras.ubuntu.com trusty/main i386 Packages                         
Hit http://dl.google.com stable/main amd64 Packages                            
Hit http://archive.ubuntu.com trusty Release.gpg                               
Hit http://ppa.launchpad.net trusty Release                                    
Hit http://dl.google.com stable/main i386 Packages                             
Get:1 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]             
Hit http://ppa.launchpad.net trusty Release                                    
Hit http://archive.ubuntu.com trusty-backports Release.gpg                     
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Get:2 http://archive.ubuntu.com trusty-security Release.gpg [933 B]            
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Hit http://archive.ubuntu.com trusty Release                                   
Get:3 http://archive.ubuntu.com trusty-updates Release [59.7 kB]               
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Ign http://archive.canonical.com trusty/partner Translation-en_PH              
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Ign http://archive.canonical.com trusty/partner Translation-en                 
Ign http://extras.ubuntu.com trusty/main Translation-en_PH                     
Ign http://extras.ubuntu.com trusty/main Translation-en                        
Ign http://dl.google.com stable/main Translation-en_PH                         
Ign http://dl.google.com stable/main Translation-en                            
Hit http://archive.ubuntu.com trusty-backports Release                         
Hit http://ppa.launchpad.net trusty/main amd64 Packages                        
Get:4 http://archive.ubuntu.com trusty-security Release [59.7 kB]              
Hit http://ppa.launchpad.net trusty/main i386 Packages                         
Hit http://archive.ubuntu.com trusty/main amd64 Packages                       
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages                 
Hit http://archive.ubuntu.com trusty/universe amd64 Packages                   
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages                 
Hit http://archive.ubuntu.com trusty/main i386 Packages                        
Hit http://archive.ubuntu.com trusty/restricted i386 Packages                  
Hit http://archive.ubuntu.com trusty/universe i386 Packages                    
Hit http://archive.ubuntu.com trusty/multiverse i386 Packages                  
Hit http://archive.ubuntu.com trusty/main Translation-en                       
Hit http://archive.ubuntu.com trusty/multiverse Translation-en                 
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Get:5 http://archive.ubuntu.com trusty-updates/main amd64 Packages [290 kB]
Ign http://ppa.launchpad.net trusty/main Translation-en_PH
Ign http://ppa.launchpad.net trusty/main Translation-en 
Ign http://ppa.launchpad.net trusty/main Translation-en_PH
Ign http://ppa.launchpad.net trusty/main Translation-en  
Ign http://ppa.launchpad.net trusty/main Translation-en_PH                     
Ign http://ppa.launchpad.net trusty/main Translation-en                        
Get:6 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [5,820 B]
Get:7 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [177 kB]
Get:8 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [7,381 B]
Get:9 http://archive.ubuntu.com trusty-updates/main i386 Packages [286 kB]     
Get:10 http://archive.ubuntu.com trusty-updates/restricted i386 Packages [5,820 B]
Get:11 http://archive.ubuntu.com trusty-updates/universe i386 Packages [178 kB]
Get:12 http://archive.ubuntu.com trusty-updates/multiverse i386 Packages [7,598 B]
Hit http://archive.ubuntu.com trusty-updates/main Translation-en               
Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en         
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en         
Get:13 http://archive.ubuntu.com trusty-updates/universe Translation-en [87.0 kB]
Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages             
Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages       
Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages         
Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages       
Hit http://archive.ubuntu.com trusty-backports/main i386 Packages              
Hit http://archive.ubuntu.com trusty-backports/restricted i386 Packages        
Hit http://archive.ubuntu.com trusty-backports/universe i386 Packages          
Hit http://archive.ubuntu.com trusty-backports/multiverse i386 Packages        
Hit http://archive.ubuntu.com trusty-backports/main Translation-en             
Hit http://archive.ubuntu.com trusty-backports/multiverse Translation-en       
Hit http://archive.ubuntu.com trusty-backports/restricted Translation-en       
Hit http://archive.ubuntu.com trusty-backports/universe Translation-en         
Get:14 http://archive.ubuntu.com trusty-security/main amd64 Packages [125 kB]  
Get:15 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [14 B]
Get:16 http://archive.ubuntu.com trusty-security/universe amd64 Packages [43.4 kB]
Get:17 http://archive.ubuntu.com trusty-security/multiverse amd64 Packages [1,147 B]
Get:18 http://archive.ubuntu.com trusty-security/main i386 Packages [122 kB]   
Get:19 http://archive.ubuntu.com trusty-security/restricted i386 Packages [14 B]
Get:20 http://archive.ubuntu.com trusty-security/universe i386 Packages [43.3 kB]
Get:21 http://archive.ubuntu.com trusty-security/multiverse i386 Packages [1,402 B]
Hit http://archive.ubuntu.com trusty-security/main Translation-en              
Hit http://archive.ubuntu.com trusty-security/multiverse Translation-en        
Hit http://archive.ubuntu.com trusty-security/restricted Translation-en        
Hit http://archive.ubuntu.com trusty-security/universe Translation-en          
Ign http://archive.ubuntu.com trusty/main Translation-en_PH                    
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_PH              
Ign http://archive.ubuntu.com trusty/restricted Translation-en_PH              
Ign http://archive.ubuntu.com trusty/universe Translation-en_PH                
Fetched 1,502 kB in 3min 15s (7,672 B/s)
Reading package lists... Done
franzbiely@Franz-Gizmo:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  gnome-settings-daemon-schemas linux-headers-generic linux-signed-generic
  linux-signed-image-generic unity-settings-daemon
The following packages will be upgraded:
  linux-libc-dev
1 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Need to get 784 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
franzbiely@Franz-Gizmo:~$ 

======= [/ end edit] =============


¿Qué pasa si escribes y?
Tim

@Eliah, sí, trata de darle y cuando te pregunte [S / n]. Normalmente sugiero que lo hagan sudo apt-get update | pastebinity nos den el enlace, ya que puede ser una salida bastante larga ...
Tim

Después de escribir y, solo dice comando no encontrado ya que estoy escribiendo y en ~ $
Francis M Albores

Sí @tim, el problema es que ya estoy abortado, aunque no he escrito nada, así que estoy en la (línea de comando $ ahora).
Francis M Albores

@EliahKagan Intentaré copiar todo y pegarlo aquí cuando vuelva a mi computadora en casa.
Francis M Albores

Respuestas:


28

apt-get aborta cuando quiere confirmación interactiva pero no puede leer la entrada de stdin.

Por ejemplo, cualquiera (con actualizaciones pendientes) puede reproducir este comportamiento redirigiendo / dev / null a stdin:

skath@tahiti:~$ sudo apt-get upgrade < /dev/null
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libcgmanager0
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.3 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
skath@tahiti:~$

Esto lleva a la siguiente pregunta, ¿qué se está haciendo cargo de la entrada estándar cuando llamas sudo apt-get upgrade? Esa es una pregunta más complicada y podría involucrar su configuración de sudo o el terminal o shell que está utilizando para invocar el comando ...

O bien, si sólo tiene una solución, puede pasar -ya apt-getsaltarse el símbolo:sudo apt-get -y upgrade


1
El mismo problema, prefiero saber qué es lo que se come la entrada. Esto sucede en Yakuake. Otros terminales como Konso's Konsole o mlterm funcionan como de costumbre.
Hamid

1
Me encontré con esto también (en Debian, lo sé, esto es Ask Ubuntu, pero tal vez aún será útil ...) y no tengo idea de por qué sucedió, pero abrí una nueva pestaña en mi aplicación de emulador de terminal, y el El problema se fue.
Jackson

Es como un pecado, uno de esos grandes. Desapareció después de una supuesta actualización.
Hamid

Ya veo, eso explicaría por qué me sucedió después de usar wildmidi, que aparentemente está tratando de capturar algo de entrada para cambiar el volumen, etc. mientras se reproduce midi, pero no se liberó correctamente después de segfault o algo así.
hsandt

6

mi problema fue que intenté ejecutar varios comandos a la vez copiándolos en la consola

apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install build-essential
...

Llamar a cada comando por separado resolvió mi problema


2
También puede haber un retorno de carro 'oculto' entre dos nombres de paquete. Cuando sudo apt-get install libssl-dev libdb-dev libdb++-dev
eliminé

@underound gracias! Deberías agregar esto como respuesta. Tuve ese problema al instalar un solo paquete, pero me había copiado de una página web y tomó el retorno de carro junto con él. apt-get todavía me dio el aviso, pero (creo) tomó mi aportación como abortada en \rYlugar de Yhacerlo
otro

1

Acabo de tener este problema el 18.04.2. update, updatey dist-upgradefuncionó bien; install, falló con un aborto. , usando -ytrabajado.

Sin embargo, descubrí que había un problema en mi /etc/apt/sources.listarchivo y que al restaurarlo al valor predeterminado que venía con la distribución (puede encontrar su versión en línea con bastante facilidad), eso resolvió completamente el problema.

Sospecho que uno de los scripts alternativos de la biblioteca de terceros que estaba agregando su propio repositorio cometió un error.

Recomiendo hacer una copia de seguridad, intente reemplazar el archivo, asegurándose de que la propiedad y los permisos sean los mismos que los originales, y luego haga una sudo apt update, luego intente su instalación.

No he tenido ningún problema desde entonces.

Al usar nuestro sitio, usted reconoce que ha leído y comprende nuestra Política de Cookies y Política de Privacidad.
Licensed under cc by-sa 3.0 with attribution required.