[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apt stopped working on my qnap ts-209



Hi, 

since a few days I cannot use apt-get to install/upgrade packages: 

nas:~# apt-get update
E: Method ftp has died unexpectedly!
E: Method /usr/lib/apt/methods/ftp did not start correctly
E: Method ftp has died unexpectedly!
E: Method /usr/lib/apt/methods/ftp did not start correctly
E: Method http has died unexpectedly!
E: Method /usr/lib/apt/methods/http did not start correctly
E: Method http has died unexpectedly!
E: Method /usr/lib/apt/methods/http did not start correctly

nas:~# /usr/lib/apt/methods/http
Segmentation fault (core dumped)

The core dump is not very informative: 

nas:~# gdb /usr/lib/apt/methods/http core
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabi"...
(no debugging symbols found)
Reading symbols from /usr/lib/libapt-pkg-libc6.7-6.so.4.6...(no debugging 
symbols found)...done.
Loaded symbols for /usr/lib/libapt-pkg-libc6.7-6.so.4.6
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libutil.so.1...
(no debugging symbols found)...done.
Loaded symbols for /lib/libutil.so.1
Reading symbols from /lib/ld-linux.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.3
Core was generated by `/usr/lib/apt/methods/http'.
Program terminated with signal 11, Segmentation fault.
[New process 21986]
#0  0x40d01f78 in ?? ()
(gdb) bt
#0  0x40d01f78 in ?? ()
#1  0x401b6ebc in ?? () from /usr/lib/libstdc++.so.6
Cannot access memory at address 0xd3ee4

I've tried checking apt and /usr/lib/apt/methods/http with strace with the 
funny result, that it works in this case: 

nas:~# strace /usr/lib/apt/methods/http                                                
execve("/usr/lib/apt/methods/http", ["/usr/lib/apt/methods/http"], [/* 16 vars 
*/]) = 0
...
write(1, "100 Capabilities\nVersion: 1.2\nPip"..., 64100 Capabilities
Version: 1.2
Pipeline: true
Send-Config: true

) = 64
fcntl64(0, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(0, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
rt_sigaction(SIGTERM, {0xa738, [TERM], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 
0
rt_sigaction(SIGINT, {0xa738, [INT], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
select(1, [0], NULL, NULL, NULL^C <unfinished ...>

or with apt-get:

nas:~#  strace -f apt-get update 2>/dev/null
Ign http://people.debian.org lenny Release.gpg
Ign http://people.debian.org lenny/main Translation-en_US
...
Fetched 2261B in 5s (449B/s)
Reading package lists... Done

I consider this a very special kind of humour. Is there anything I can do to 
solve this issue?

Thanks

	Mathias


Reply to: