ki7ay@ki7ay-laptop:~$ aptitude purge samba-common
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
ki7ay@ki7ay-laptop:~$ sudo aptitude purge samba-common
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages are BROKEN:
samba
The following packages have been kept back:
file language-pack-gnome-en libexif12 libgd2-noxpm libmagic1 libpng12-0
xscreensaver-data xscreensaver-gl
The following packages will be REMOVED:
samba-common{p}
0 packages upgraded, 0 newly installed, 1 to remove and 9 not upgraded.
Need to get 0B of archives. After unpacking 5018kB will be freed.
The following packages have unmet dependencies:
samba: Depends: samba-common (= 3.0.22-1ubuntu3.2) but it is not installable
Resolving dependencies...
The following actions will resolve these dependencies:
Upgrade the following packages:
samba [3.0.22-1ubuntu3.2 (now) -> 3.0.22-1ubuntu3.3 (dapper-security)]
samba-common [3.0.22-1ubuntu3 (dapper, now) -> 3.0.22-1ubuntu3.3
(dapper-security)]
Score is -49
Accept this solution? [Y/n/q/?] y
The following packages have been kept back:
file language-pack-gnome-en libexif12 libgd2-noxpm libmagic1 libpng12-0
xscreensaver-data xscreensaver-gl
The following packages will be upgraded:
samba samba-common
2 packages upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
Need to get 0B/4927kB of archives. After unpacking 12.3kB will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Preconfiguring packages ...
(Reading database ... 110410 files and directories currently installed.)
Preparing to replace samba 3.0.22-1ubuntu3.2 (using .../samba_3.0.22-1ubuntu3.3_i386.deb) ...
invoke-rc.d: dangling symlink: /etc/rc2.d/K09samba
dpkg: warning - old pre-removal script returned error exit status 102
dpkg - trying script from the new package instead ...
invoke-rc.d: dangling symlink: /etc/rc2.d/K09samba
dpkg: error processing /var/cache/apt/archives/samba_3.0.22-1ubuntu3.3_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 102
Preparing to replace samba-common 3.0.22-1ubuntu3 (using .../samba-common_3.0.22-1ubuntu3.3_i386.deb) ...
Unpacking replacement samba-common ...
Errors were encountered while processing:
/var/cache/apt/archives/samba_3.0.22-1ubuntu3.3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up samba-common (3.0.22-1ubuntu3.3) ...
ki7ay@ki7ay-laptop:~$