cubieplayer / Cubian

Debian for Cubieboard
http://cubian.org
270 stars 49 forks source link

Can't upgrade #336

Closed ex-troll closed 10 years ago

ex-troll commented 10 years ago

After apt-get remove mysql-server i can't upgrade..

root@cubie:/home/cubie# apt-get update
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://security.debian.org wheezy/updates Release                                                                                   
Hit http://ftp.debian.org wheezy Release.gpg                                                                                            
Get:1 http://repo.ajenti.org main Release.gpg [490 B]                              
Get:2 http://repo.ajenti.org main Release [11.1 kB]                                                      
Hit http://ftp.debian.org wheezy Release                                                                 
Hit http://security.debian.org wheezy/updates/main armhf Packages                                         
Hit http://security.debian.org wheezy/updates/contrib armhf Packages                                      
Get:3 http://repo.ajenti.org main/main armhf Packages [6,753 B]                                           
Hit http://security.debian.org wheezy/updates/non-free armhf Packages               
Hit http://ftp.debian.org wheezy/main Sources                                                                                   
Hit http://security.debian.org wheezy/updates/contrib Translation-en                                                            
Hit http://security.debian.org wheezy/updates/main Translation-en                                                               
Hit http://ftp.debian.org wheezy/contrib Sources                                                          
Get:4 http://repo.ajenti.org main/debian armhf Packages [1,468 B]                                         
Hit http://security.debian.org wheezy/updates/non-free Translation-en                                                           
Hit http://ftp.debian.org wheezy/non-free Sources                                                                               
Hit http://ftp.debian.org wheezy/main armhf Packages                                
Hit http://ftp.debian.org wheezy/contrib armhf Packages                             
Hit http://ftp.debian.org wheezy/non-free armhf Packages                            
Hit http://ftp.debian.org wheezy/contrib Translation-en                             
Hit http://ftp.debian.org wheezy/main Translation-en                                
Hit http://ftp.debian.org wheezy/non-free Translation-en                            
Hit http://packages.cubian.org wheezy Release.gpg                                   
Hit http://packages.cubian.org wheezy Release                                       
Hit http://packages.cubian.org wheezy/main armhf Packages
Hit http://packages.cubian.org wheezy/non-free armhf Packages
Hit http://packages.cubian.org wheezy/main Translation-en_US
Hit http://packages.cubian.org wheezy/main Translation-en
Hit http://packages.cubian.org wheezy/non-free Translation-en_US
Ign http://repo.ajenti.org main/debian Translation-en_US
Hit http://packages.cubian.org wheezy/non-free Translation-en
Ign http://repo.ajenti.org main/debian Translation-en
Ign http://repo.ajenti.org main/main Translation-en_US
Ign http://repo.ajenti.org main/main Translation-en
Fetched 19.8 kB in 2s (7,839 B/s)
Reading package lists... Done
root@cubie:/home/cubie# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libdbd-mysql-perl : Depends: libmysqlclient18 (>= 5.5.24+dfsg-1) but it is not installed
E: Unmet dependencies. Try using -f.
root@cubie:/home/cubie# apt-get -f upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following NEW packages will be installed:
  libmysqlclient18
The following packages have been kept back:
  chromium-inspector chromium-l10n
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
5 not fully installed or removed.
Need to get 0 B/630 kB of archives.
After this operation, 3,142 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
E: Invalid archive signature
E: Prior errors apply to /var/cache/apt/archives/libmysqlclient18_5.5.38-0+wheezy1_armhf.deb
debconf: apt-extracttemplates failed: No such file or directory
dpkg-deb: error: `/var/cache/apt/archives/libmysqlclient18_5.5.38-0+wheezy1_armhf.deb' is not a debian format archive
dpkg: error processing /var/cache/apt/archives/libmysqlclient18_5.5.38-0+wheezy1_armhf.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/libmysqlclient18_5.5.38-0+wheezy1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@cubie:/home/cubie#

System work on Cubieboard2

root@cubie:/home/cubie# cat /etc/issue
Debian GNU/Linux 7 \n \l

root@cubie:/home/cubie# uname -a
Linux cubie 3.4.75-sun7i #35 SMP PREEMPT Sat Feb 8 02:10:31 CST 2014 armv7l GNU/Linux
root@cubie:/home/cubie#
ex-troll commented 10 years ago

today

root@cubie:/home/cubie# apt-get update
Get:1 http://security.debian.org wheezy/updates Release.gpg [836 B]
Get:2 http://security.debian.org wheezy/updates Release [102 kB]                                                                                  
Hit http://ftp.debian.org wheezy Release.gpg                                                                                            
Get:3 http://repo.ajenti.org main Release.gpg [490 B]                                                                                   
Hit http://ftp.debian.org wheezy Release                                                                                 
Get:4 http://repo.ajenti.org main Release [11.1 kB]                                         
Hit http://ftp.debian.org wheezy/main Sources                                                               
Get:5 http://repo.ajenti.org main/main armhf Packages [6,757 B]                                             
Hit http://ftp.debian.org wheezy/contrib Sources                                    
Hit http://ftp.debian.org wheezy/non-free Sources             
Hit http://ftp.debian.org wheezy/main armhf Packages          
Hit http://ftp.debian.org wheezy/contrib armhf Packages       
Hit http://ftp.debian.org wheezy/non-free armhf Packages      
Hit http://ftp.debian.org wheezy/contrib Translation-en       
Hit http://ftp.debian.org wheezy/main Translation-en          
Hit http://ftp.debian.org wheezy/non-free Translation-en      
Get:6 http://security.debian.org wheezy/updates/main armhf Packages [189 kB]
Get:7 http://security.debian.org wheezy/updates/contrib armhf Packages [14 B]                              
Get:8 http://repo.ajenti.org main/debian armhf Packages [1,468 B]                                          
Get:9 http://security.debian.org wheezy/updates/non-free armhf Packages [14 B]                                   
Get:10 http://security.debian.org wheezy/updates/contrib Translation-en [14 B]                                   
Get:11 http://security.debian.org wheezy/updates/main Translation-en [110 kB]                                    
Get:12 http://security.debian.org wheezy/updates/non-free Translation-en [14 B]                                  
Hit http://packages.cubian.org wheezy Release.gpg                                                                
Hit http://packages.cubian.org wheezy Release    
Hit http://packages.cubian.org wheezy/main armhf Packages                      
Hit http://packages.cubian.org wheezy/non-free armhf Packages
Hit http://packages.cubian.org wheezy/main Translation-en_US
Ign http://repo.ajenti.org main/debian Translation-en_US
Hit http://packages.cubian.org wheezy/main Translation-en
Ign http://repo.ajenti.org main/debian Translation-en
Hit http://packages.cubian.org wheezy/non-free Translation-en_US
Ign http://repo.ajenti.org main/main Translation-en_US
Ign http://repo.ajenti.org main/main Translation-en
Hit http://packages.cubian.org wheezy/non-free Translation-en
Fetched 421 kB in 2s (168 kB/s)
Reading package lists... Done
root@cubie:/home/cubie# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  openjdk-7-jre-lib stunnel4
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libmysqlclient18
The following NEW packages will be installed:
  libmysqlclient18
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
5 not fully installed or removed.
Need to get 0 B/630 kB of archives.
After this operation, 3,142 kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Use of uninitialized value $value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 65, <$__ANONIO__> line 1.
Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <$__ANONIO__> chunk 1.
E: Invalid archive signature
E: Prior errors apply to /var/cache/apt/archives/libmysqlclient18_5.5.38-0+wheezy1_armhf.deb
debconf: apt-extracttemplates failed: No such file or directory
dpkg-deb: error: `/var/cache/apt/archives/libmysqlclient18_5.5.38-0+wheezy1_armhf.deb' is not a debian format archive
dpkg: error processing /var/cache/apt/archives/libmysqlclient18_5.5.38-0+wheezy1_armhf.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/libmysqlclient18_5.5.38-0+wheezy1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@cubie:/home/cubie#
s-kostyuk commented 10 years ago

Warning: make backups first

Try to delete all mysql-related packages through aptitude or at least libdbd-mysql-perl. Not working? Try apt-get purge [package_name_here]. Not working too? Try carefully apt-get purge mysql*

ex-troll commented 10 years ago
root@cubie:/home/cubie# apt-get purge mysql*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libghc-hsql-mysql-dev-1.8.1-4cf03' for regex 'mysql*'
Note, selecting 'libdspam7-drv-mysql' for regex 'mysql*'
.......
Package 'ajenti-v-mysql' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  openjdk-7-jre-lib stunnel4
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  libdbd-mysql-perl* mysql-client-5.5* mysql-common*
0 upgraded, 0 newly installed, 3 to remove and 6 not upgraded.
5 not fully installed or removed.
After this operation, 33.8 MB disk space will be freed.
Do you want to continue [Y/n]? 
Use of uninitialized value $value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 65, <$__ANONIO__> line 1.
Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <$__ANONIO__> chunk 1.
(Reading database ... 52345 files and directories currently installed.)
Removing mysql-client-5.5 ...
Removing libdbd-mysql-perl ...
Removing mysql-common ...
Purging configuration files for mysql-common ...
dpkg: warning: while removing mysql-common, directory '/etc/mysql/conf.d' not empty so not removed
Processing triggers for man-db ...
Use of uninitialized value $value in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 65, <$__ANONIO__> line 1.
Use of uninitialized value $item in hash element at /usr/share/perl5/Debconf/DbDriver/File.pm line 85, <$__ANONIO__> chunk 1.
Setting up libaio1:armhf (0.3.109-3) ...
/sbin/ldconfig: 1: /sbin/ldconfig: �����
................
��: File name too long
dpkg: error processing libaio1:armhf (--configure):
 subprocess installed post-installation script returned error exit status 127
Setting up libdbi-perl (1.622-1+deb7u1) ...
Errors were encountered while processing:
 libaio1:armhf
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@cubie:/home/cubie#
root@cubie:/home/cubie# aptitude safe-upgrade
Resolving dependencies...                
The following packages will be upgraded:
  ajenti icedtea-7-jre-jamvm openjdk-7-jre openjdk-7-jre-headless 
The following partially installed packages will be configured:
  libaio1 
4 packages upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 40.8 MB of archives. After unpacking 602 kB will be used.
Do you want to continue? [Y/n/?] y
Get: 1 http://repo.ajenti.org/debian/ main/main ajenti all 1.2.22.0 [1,040 kB]
Get: 2 http://security.debian.org/ wheezy/updates/main openjdk-7-jre armhf 7u65-2.5.1-2~deb7u1 [196 kB]
Get: 3 http://security.debian.org/ wheezy/updates/main icedtea-7-jre-jamvm armhf 7u65-2.5.1-2~deb7u1 [687 kB]
Get: 4 http://security.debian.org/ wheezy/updates/main openjdk-7-jre-headless armhf 7u65-2.5.1-2~deb7u1 [38.9 MB]
Fetched 40.8 MB in 22s (1,856 kB/s)                                                                                                                                                                                                          
(Reading database ... 52254 files and directories currently installed.)
Preparing to replace openjdk-7-jre:armhf 7u55-2.4.7-1~deb7u1 (using .../openjdk-7-jre_7u65-2.5.1-2~deb7u1_armhf.deb) ...
Unpacking replacement openjdk-7-jre:armhf ...
Preparing to replace icedtea-7-jre-jamvm:armhf 7u55-2.4.7-1~deb7u1 (using .../icedtea-7-jre-jamvm_7u65-2.5.1-2~deb7u1_armhf.deb) ...
Unpacking replacement icedtea-7-jre-jamvm:armhf ...
Preparing to replace openjdk-7-jre-headless:armhf 7u55-2.4.7-1~deb7u1 (using .../openjdk-7-jre-headless_7u65-2.5.1-2~deb7u1_armhf.deb) ...
Unpacking replacement openjdk-7-jre-headless:armhf ...
Preparing to replace ajenti 1.2.21.21 (using .../ajenti_1.2.22.0_all.deb) ...
Stopping Ajenti:
[FAIL] not running ... failed!
Unpacking replacement ajenti ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-support ...
Setting up libaio1:armhf (0.3.109-3) ...
/sbin/ldconfig: 1: /sbin/ldconfig: ���
.............
���: File name too long
dpkg: error processing libaio1:armhf (--configure):
 subprocess installed post-installation script returned error exit status 127
Setting up openjdk-7-jre-headless:armhf (7u65-2.5.1-2~deb7u1) ...
Installing new version of config file /etc/java-7-openjdk/jvm-armhf.cfg ...
Installing new version of config file /etc/java-7-openjdk/sound.properties ...
Installing new version of config file /etc/java-7-openjdk/security/java.policy ...
Setting up openjdk-7-jre:armhf (7u65-2.5.1-2~deb7u1) ...
Setting up icedtea-7-jre-jamvm:armhf (7u65-2.5.1-2~deb7u1) ...
Setting up ajenti (1.2.22.0) ...
:: SSL is already configured
------------------------------------------------
Now start Ajenti with 'service ajenti restart'
Ajenti will listen on HTTPS port 8000 by default

Default username : root
Default password : admin
------------------------------------------------
Processing triggers for python-support ...
Errors were encountered while processing:
 libaio1:armhf
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up libaio1:armhf (0.3.109-3) ...
/sbin/ldconfig: 1: /sbin/ldconfig: ���
...........
���: File name too long
dpkg: error processing libaio1:armhf (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 libaio1:armhf

Current status: 3 updates [-4].
root@cubie:/home/cubie#

It solved my problem with libdbd-mysql-perl, but

root@cubie:/home/cubie# aptitude purge libaio1
The following packages will be REMOVED:  
  libaio1{ap} 
0 packages upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
Need to get 0 B of archives. After unpacking 53.2 kB will be freed.
Do you want to continue? [Y/n/?] 
(Reading database ... 52254 files and directories currently installed.)
Removing libaio1:armhf ...
/sbin/ldconfig: 1: /sbin/ldconfig: ���
......
���: File name too long
dpkg: error processing libaio1:armhf (--purge):
 subprocess installed post-removal script returned error exit status 127
Errors were encountered while processing:
 libaio1:armhf
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:

root@cubie:/home/cubie# 
s-kostyuk commented 10 years ago

Try to check your file system, memory for errors and CPU frequency (Cubieboard is unstable on speed over 1.2 GHz). Last time I have seen similar errors on overlooked device. https://github.com/cubieplayer/Cubian/issues/109 http://cubian.org/2014/07/05/resolve-stability-issue-on-cb2/

Otherwise we need to find what file has "too long name" and causes /sbin/ldconfig crash. Or wait for power users

ex-troll commented 10 years ago

Try to check your file system

Yes, nand is dieing