Skip to main content

Thread: Problem with apt-get [install and upgrade]


hello,
trying install openvpn using apt-get, error during process [as far understand issue unattended-updates, not upgrade due apt-get porblem :/]. cannot upgrade, install, autoremove or purge else [which need since /boot full. upgrading did update before trying]....

trace [on sudo apt-get autoremove]:

0 upgraded, 0 newly installed, 79 remove , 421 not upgraded.
35 not installed or removed.
need 24.1 kb of archives.
after operation, 140 mb disk space freed.
want continue [y/n]? y
get:1 http://us.archive.ubuntu.com/ubuntu/ oneiric/main unattended-upgrades 0.73ubuntu1 [24.1 kb]
fetched 24.1 kb in 0s (31.2 kb/s)
preconfiguring packages ...
(reading database ... 287206 files , directories installed.)
removing flashplugin-downloader:i386 ...
removing libasound2-plugins:i386 ...
removing libpulse0:i386 ...
removing libsndfile1:i386 ...
removing libvorbisenc2:i386 ...
removing libvorbis0a:i386 ...
processing triggers libc-bin ...
ldconfig deferred processing taking place
(reading database ... 287174 files , directories installed.)
preparing replace unattended-upgrades 0.73ubuntu1 (using .../unattended-upgrades_0.73ubuntu1_all.deb) ...
checking running unattended-upgrades:
traceback (most recent call last):
file "/usr/share/unattended-upgrades/unattended-upgrade-shutdown", line 27, in <module>
import apt_pkg
importerror: no module named apt_pkg
invoke-rc.d: initscript unattended-upgrades, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script new package instead ...
checking running unattended-upgrades:
traceback (most recent call last):
file "/usr/share/unattended-upgrades/unattended-upgrade-shutdown", line 27, in <module>
import apt_pkg
importerror: no module named apt_pkg
invoke-rc.d: initscript unattended-upgrades, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/unattended-upgrades_0.73ubuntu1_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
update-rc.d: warning: unattended-upgrades start runlevel arguments (2 3 4 5) not match lsb default-start values (none)
update-rc.d: warning: unattended-upgrades stop runlevel arguments (0 1 6) not match lsb default-stop values (0 6)
checking running unattended-upgrades:
traceback (most recent call last):
file "/usr/share/unattended-upgrades/unattended-upgrade-shutdown", line 27, in <module>
import apt_pkg
importerror: no module named apt_pkg
invoke-rc.d: initscript unattended-upgrades, action "start" failed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
errors encountered while processing:
/var/cache/apt/archives/unattended-upgrades_0.73ubuntu1_all.deb
e: sub-process /usr/bin/dpkg returned error code (1)

maybe missed basic, appreciate pointers on solving issue.

hi ark2,

can try temporarily disable unattended-upgrades:

modify file /etc/apt/apt.conf.d/10periodic , change value "0":
code:
apt::periodic::unattended-upgrade "0";
did made changes python setup? please show:
code:
locate apt_pkg.so  ls -l /usr/bin/python

kind regards

lasall


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [ubuntu] Problem with apt-get [install and upgrade]


Ubuntu

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?