Δημοσιεύτηκε: 12 Ιαν 2012, 20:45
από panoss
Κώδικας: Επιλογή όλων

ubuntu@ubuntu:~$ dpkg --force-help
dpkg forcing options - control behaviour when problems found:
warn but continue: --force-<thing>,<thing>,...
stop with error: --refuse-<thing>,<thing>,... | --no-force-<thing>,...
Forcing things:
[!] all Set all force options
[*] downgrade Replace a package with a lower version
configure-any Configure any package which may help this one
hold Process incidental packages even when on hold
not-root Try to (de)install things even when not root
bad-path PATH is missing important programs, problems likely
bad-verify Install a package even if it fails authenticity check
overwrite Overwrite a file from one package with another
overwrite-diverted Overwrite a diverted file with an undiverted version
[!] overwrite-dir Overwrite one package's directory with another's file
[!] unsafe-io Do not perform safe I/O operations when unpacking
[!] confnew Always use the new config files, don't prompt
[!] confold Always use the old config files, don't prompt
[!] confdef Use the default option for new config files if one
is available, don't prompt. If no default can be found,
you will be prompted unless one of the confold or
confnew options is also given
[!] confmiss Always install missing config files
[!] confask Offer to replace config files with no new versions
[!] architecture Process even packages with wrong or no architecture
[!] breaks Install even if it would break another package
[!] conflicts Allow installation of conflicting packages
[!] depends Turn all dependency problems into warnings
[!] depends-version Turn dependency version problems into warnings
[!] remove-reinstreq Remove packages which require installation
[!] remove-essential Remove an essential package

WARNING - use of options marked [!] can seriously damage your installation.
Forcing options marked [*] are enabled by default.
ubuntu@ubuntu:~$




Κώδικας: Επιλογή όλων

ubuntu@ubuntu:~$ dpkg --force-help
dpkg forcing options - control behaviour when problems found:
warn but continue: --force-<thing>,<thing>,...
stop with error: --refuse-<thing>,<thing>,... | --no-force-<thing>,...
Forcing things:
[!] all Set all force options
[*] downgrade Replace a package with a lower version
configure-any Configure any package which may help this one
hold Process incidental packages even when on hold
not-root Try to (de)install things even when not root
bad-path PATH is missing important programs, problems likely
bad-verify Install a package even if it fails authenticity check
overwrite Overwrite a file from one package with another
overwrite-diverted Overwrite a diverted file with an undiverted version
[!] overwrite-dir Overwrite one package's directory with another's file
[!] unsafe-io Do not perform safe I/O operations when unpacking
[!] confnew Always use the new config files, don't prompt
[!] confold Always use the old config files, don't prompt
[!] confdef Use the default option for new config files if one
is available, don't prompt. If no default can be found,
you will be prompted unless one of the confold or
confnew options is also given
[!] confmiss Always install missing config files
[!] confask Offer to replace config files with no new versions
[!] architecture Process even packages with wrong or no architecture
[!] breaks Install even if it would break another package
[!] conflicts Allow installation of conflicting packages
[!] depends Turn all dependency problems into warnings
[!] depends-version Turn dependency version problems into warnings
[!] remove-reinstreq Remove packages which require installation
[!] remove-essential Remove an essential package

WARNING - use of options marked [!] can seriously damage your installation.
Forcing options marked [*] are enabled by default.
ubuntu@ubuntu:~$


Κώδικας: Επιλογή όλων

ubuntu@ubuntu:~$ wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_0.8.13.2ubuntu4.3_amd64.deb -O apt_0.8.13.2ubuntu4.3_amd64.deb
--2012-01-12 17:31:13-- http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_0.8.13.2ubuntu4.3_amd64.deb
Resolving security.ubuntu.com... 91.189.92.167, 91.189.92.166
Connecting to security.ubuntu.com|91.189.92.167|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2111330 (2.0M) [application/x-debian-package]
Saving to: `apt_0.8.13.2ubuntu4.3_amd64.deb'

100%[======================================>] 2,111,330 583K/s in 3.7s

2012-01-12 17:31:19 (557 KB/s) - `apt_0.8.13.2ubuntu4.3_amd64.deb' saved [2111330/2111330]

ubuntu@ubuntu:~$


Κώδικας: Επιλογή όλων

ubuntu@ubuntu:~$ wget http://de.archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.16.0~ubuntu7.1_amd64.deb -O dpkg_1.16.0~ubuntu7.1_amd64.debw
--2012-01-12 17:32:02-- http://de.archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.16.0~ubuntu7.1_amd64.deb
Resolving de.archive.ubuntu.com... 141.30.13.20, 141.30.13.30, 141.30.13.10
Connecting to de.archive.ubuntu.com|141.30.13.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1914940 (1.8M) [text/plain]
Saving to: `dpkg_1.16.0~ubuntu7.1_amd64.debw'

100%[======================================>] 1,914,940 735K/s in 2.5s

2012-01-12 17:32:05 (735 KB/s) - `dpkg_1.16.0~ubuntu7.1_amd64.debw' saved [1914940/1914940]

ubuntu@ubuntu:~$


Κώδικας: Επιλογή όλων

ubuntu@ubuntu:~$ wget http://de.archive.ubuntu.com/ubuntu/pool/main/g/gnupg/gpgv_1.4.11-3ubuntu1_amd64.deb -O gpgv_1.4.11-3ubuntu1_amd64.deb
--2012-01-12 17:32:44-- http://de.archive.ubuntu.com/ubuntu/pool/main/g/gnupg/gpgv_1.4.11-3ubuntu1_amd64.deb
Resolving de.archive.ubuntu.com... 141.30.13.10, 141.30.13.20, 141.30.13.30
Connecting to de.archive.ubuntu.com|141.30.13.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 185970 (182K) [text/plain]
Saving to: `gpgv_1.4.11-3ubuntu1_amd64.deb'

100%[======================================>] 185,970 413K/s in 0.4s

2012-01-12 17:32:46 (413 KB/s) - `gpgv_1.4.11-3ubuntu1_amd64.deb' saved [185970/185970]

ubuntu@ubuntu:~$


Κώδικας: Επιλογή όλων

ubuntu@ubuntu:~$ wget http://de.archive.ubuntu.com/ubuntu/pool/main/g/gnupg/gnupg_1.4.11-3ubuntu1_amd64.deb -O gnupg_1.4.11-3ubuntu1_amd64.deb
--2012-01-12 17:33:34-- http://de.archive.ubuntu.com/ubuntu/pool/main/g/gnupg/gnupg_1.4.11-3ubuntu1_amd64.deb
Resolving de.archive.ubuntu.com... 141.30.13.30, 141.30.13.10, 141.30.13.20
Connecting to de.archive.ubuntu.com|141.30.13.30|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 810742 (792K) [text/plain]
Saving to: `gnupg_1.4.11-3ubuntu1_amd64.deb'

100%[======================================>] 810,742 438K/s in 1.8s

2012-01-12 17:33:38 (438 KB/s) - `gnupg_1.4.11-3ubuntu1_amd64.deb' saved [810742/810742]

ubuntu@ubuntu:~$


Κώδικας: Επιλογή όλων

ubuntu@ubuntu:~$ sudo dpkg --configure -a (prosthesa ego to sudo)
ubuntu@ubuntu:~$


Κώδικας: Επιλογή όλων

ubuntu@ubuntu:~$ sudo dpkg -i apt_0.8.13.2ubuntu4.3_amd64.deb dpkg_1.16.0~ubuntu7.1_amd64.deb gpgv_1.4.11-3ubuntu1_amd64.deb gnupg_1.4.11-3ubuntu1_amd64.deb
(Reading database ... 134326 files and directories currently installed.)
Preparing to replace apt 0.8.13.2ubuntu2 (using apt_0.8.13.2ubuntu4.3_amd64.deb) ...
Unpacking replacement apt ...
dpkg: error processing dpkg_1.16.0~ubuntu7.1_amd64.deb (--install):
cannot access archive: No such file or directory
Preparing to replace gpgv 1.4.11-3ubuntu1 (using gpgv_1.4.11-3ubuntu1_amd64.deb) ...
Unpacking replacement gpgv ...
Preparing to replace gnupg 1.4.11-3ubuntu1 (using gnupg_1.4.11-3ubuntu1_amd64.deb) ...
Unpacking replacement gnupg ...
Setting up apt (0.8.13.2ubuntu4.3) ...
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>" not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>" not changed
gpg: Total number processed: 2
gpg: unchanged: 2
Setting up gpgv (1.4.11-3ubuntu1) ...
Processing triggers for man-db ...
Setting up gnupg (1.4.11-3ubuntu1) ...
Processing triggers for install-info ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
dpkg_1.16.0~ubuntu7.1_amd64.deb
ubuntu@ubuntu:~$



Κώδικας: Επιλογή όλων

ubuntu@ubuntu:~$ sudo dpkg -i --force-overwrite apt_0.8.13.2ubuntu4.3_amd64.deb dpkg_1.16.0~ubuntu7.1_amd64.deb gpgv_1.4.11-3ubuntu1_amd64.deb gnupg_1.4.11-3ubuntu1_amd64.deb
(Reading database ... 134326 files and directories currently installed.)
Preparing to replace apt 0.8.13.2ubuntu4.3 (using apt_0.8.13.2ubuntu4.3_amd64.deb) ...
Unpacking replacement apt ...
dpkg: error processing dpkg_1.16.0~ubuntu7.1_amd64.deb (--install):
cannot access archive: No such file or directory
Preparing to replace gpgv 1.4.11-3ubuntu1 (using gpgv_1.4.11-3ubuntu1_amd64.deb) ...
Unpacking replacement gpgv ...
Preparing to replace gnupg 1.4.11-3ubuntu1 (using gnupg_1.4.11-3ubuntu1_amd64.deb) ...
Unpacking replacement gnupg ...
Setting up apt (0.8.13.2ubuntu4.3) ...
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>" not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>" not changed
gpg: Total number processed: 2
gpg: unchanged: 2
Setting up gpgv (1.4.11-3ubuntu1) ...
Processing triggers for man-db ...
Setting up gnupg (1.4.11-3ubuntu1) ...
Processing triggers for install-info ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
dpkg_1.16.0~ubuntu7.1_amd64.deb
ubuntu@ubuntu:~$



Κώδικας: Επιλογή όλων

ubuntu@ubuntu:~$ sudo apt-get update
Ign cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1) natty InRelease
Ign cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1) natty/main TranslationIndex
Ign cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1) natty/restricted TranslationIndex
Ign cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1) natty/main Translation-en_US
Ign cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1) natty/main Translation-en
Ign cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1) natty/restricted Translation-en_US
Ign cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1) natty/restricted Translation-en
Ign http://security.ubuntu.com natty-security InRelease
Ign http://archive.ubuntu.com natty InRelease
Ign http://archive.ubuntu.com natty-updates InRelease
Get:1 http://security.ubuntu.com natty-security Release.gpg [198 B]
Get:2 http://security.ubuntu.com natty-security Release [39.8 kB]
Get:3 http://archive.ubuntu.com natty Release.gpg [198 B]
Get:4 http://archive.ubuntu.com natty-updates Release.gpg [198 B]
Get:5 http://archive.ubuntu.com natty Release [39.8 kB]
Get:6 http://security.ubuntu.com natty-security/main Sources [85.3 kB]
Get:7 http://archive.ubuntu.com natty-updates Release [39.8 kB]
Get:8 http://security.ubuntu.com natty-security/restricted Sources [14 B]
Get:9 http://security.ubuntu.com natty-security/main amd64 Packages [263 kB]
Get:10 http://archive.ubuntu.com natty/main Sources [862 kB]
Get:11 http://security.ubuntu.com natty-security/restricted amd64 Packages [14 B]
Ign http://security.ubuntu.com natty-security/main TranslationIndex
Ign http://security.ubuntu.com natty-security/restricted TranslationIndex
Ign http://security.ubuntu.com natty-security/main Translation-en_US
Get:12 http://archive.ubuntu.com natty/restricted Sources [4,104 B]
Get:13 http://archive.ubuntu.com natty/main amd64 Packages [1,550 kB]
Ign http://security.ubuntu.com natty-security/main Translation-en
Ign http://security.ubuntu.com natty-security/restricted Translation-en_US
Ign http://security.ubuntu.com natty-security/restricted Translation-en
Get:14 http://archive.ubuntu.com natty/restricted amd64 Packages [9,001 B]
Ign http://archive.ubuntu.com natty/main TranslationIndex
Ign http://archive.ubuntu.com natty/restricted TranslationIndex
Get:15 http://archive.ubuntu.com natty-updates/main Sources [146 kB]
Get:16 http://archive.ubuntu.com natty-updates/restricted Sources [753 B]
Get:17 http://archive.ubuntu.com natty-updates/main amd64 Packages [422 kB]
Get:18 http://archive.ubuntu.com natty-updates/restricted amd64 Packages [838 B]
Ign http://archive.ubuntu.com natty-updates/main TranslationIndex
Ign http://archive.ubuntu.com natty-updates/restricted TranslationIndex
Ign http://archive.ubuntu.com natty/main Translation-en_US
Ign http://archive.ubuntu.com natty/main Translation-en
Ign http://archive.ubuntu.com natty/restricted Translation-en_US
Ign http://archive.ubuntu.com natty/restricted Translation-en
Ign http://archive.ubuntu.com natty-updates/main Translation-en_US
Ign http://archive.ubuntu.com natty-updates/main Translation-en
Ign http://archive.ubuntu.com natty-updates/restricted Translation-en_US
Ign http://archive.ubuntu.com natty-updates/restricted Translation-en
Fetched 3,462 kB in 7s (470 kB/s)
Reading package lists... Done
ubuntu@ubuntu:~$


Κώδικας: Επιλογή όλων

ubuntu@ubuntu:~$ sudo apt-get -o Dpkg::Options::="--force-overwrite" --reinstall install gpgv
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 284 not upgraded.
Need to get 186 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ natty/main gpgv amd64 1.4.11-3ubuntu1 [186 kB]
Fetched 186 kB in 0s (210 kB/s)
(Reading database ... 134326 files and directories currently installed.)
Preparing to replace gpgv 1.4.11-3ubuntu1 (using .../gpgv_1.4.11-3ubuntu1_amd64.deb) ...
Unpacking replacement gpgv ...
Processing triggers for man-db ...
Setting up gpgv (1.4.11-3ubuntu1) ...
ubuntu@ubuntu:~$


Κώδικας: Επιλογή όλων

ubuntu@ubuntu:~$ sudo apt-get update
Ign cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1) natty InRelease
Ign cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1) natty/main TranslationIndex
Ign cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1) natty/restricted TranslationIndex
Ign cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1) natty/main Translation-en_US
Ign cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1) natty/main Translation-en
Ign cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1) natty/restricted Translation-en_US
Ign cdrom://Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1) natty/restricted Translation-en
Ign http://security.ubuntu.com natty-security InRelease
Ign http://archive.ubuntu.com natty InRelease
Ign http://archive.ubuntu.com natty-updates InRelease
Hit http://security.ubuntu.com natty-security Release.gpg
Hit http://archive.ubuntu.com natty Release.gpg
Hit http://security.ubuntu.com natty-security Release
Hit http://archive.ubuntu.com natty-updates Release.gpg
Hit http://archive.ubuntu.com natty Release
Hit http://security.ubuntu.com natty-security/main Sources
Hit http://archive.ubuntu.com natty-updates Release
Hit http://security.ubuntu.com natty-security/restricted Sources
Hit http://security.ubuntu.com natty-security/main amd64 Packages
Hit http://security.ubuntu.com natty-security/restricted amd64 Packages
Ign http://security.ubuntu.com natty-security/main TranslationIndex
Ign http://security.ubuntu.com natty-security/restricted TranslationIndex
Hit http://archive.ubuntu.com natty/main Sources
Hit http://archive.ubuntu.com natty/restricted Sources
Hit http://archive.ubuntu.com natty/main amd64 Packages
Hit http://archive.ubuntu.com natty/restricted amd64 Packages
Ign http://archive.ubuntu.com natty/main TranslationIndex
Ign http://archive.ubuntu.com natty/restricted TranslationIndex
Hit http://archive.ubuntu.com natty-updates/main Sources
Hit http://archive.ubuntu.com natty-updates/restricted Sources
Hit http://archive.ubuntu.com natty-updates/main amd64 Packages
Hit http://archive.ubuntu.com natty-updates/restricted amd64 Packages
Ign http://archive.ubuntu.com natty-updates/main TranslationIndex
Ign http://archive.ubuntu.com natty-updates/restricted TranslationIndex
Ign http://security.ubuntu.com natty-security/main Translation-en_US
Ign http://security.ubuntu.com natty-security/main Translation-en
Ign http://security.ubuntu.com natty-security/restricted Translation-en_US
Ign http://security.ubuntu.com natty-security/restricted Translation-en
Ign http://archive.ubuntu.com natty/main Translation-en_US
Ign http://archive.ubuntu.com natty/main Translation-en
Ign http://archive.ubuntu.com natty/restricted Translation-en_US
Ign http://archive.ubuntu.com natty/restricted Translation-en
Ign http://archive.ubuntu.com natty-updates/main Translation-en_US
Ign http://archive.ubuntu.com natty-updates/main Translation-en
Ign http://archive.ubuntu.com natty-updates/restricted Translation-en_US
Ign http://archive.ubuntu.com natty-updates/restricted Translation-en
Reading package lists... Done
ubuntu@ubuntu:~$


[
Κώδικας: Επιλογή όλων

ubuntu@ubuntu:~$ sudo apt-get -o Dpkg::Options::="--force-overwrite" --reinstall install apt libapt-pkg4.11 ubuntu-keyring gnupg gpgv zlib1g command-not-found dpkg
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libapt-pkg4.11
E: Couldn't find any package by regex 'libapt-pkg4.11'
ubuntu@ubuntu:~$