Debian Installation :: Aptitude And Dpkg Cannot Install Any Package
Jan 26, 2011I am running Debian Sid unstable , from one day apt-get, aptitude and dpkg cannot install any package.
View 1 RepliesI am running Debian Sid unstable , from one day apt-get, aptitude and dpkg cannot install any package.
View 1 RepliesI am trying to upgrade an amd64 lenny system to squeeze.I've got a 2.6.32 kernel running, done aptitude update and aptitude install aptitude.When I try "aptitude safe-upgrade", it sits forever resolving dependencies.it seems to search with the resolver counting up more and more open/conflict/ whatever.I stopped it once it got over 100,000)Is it possible to get aptitude to do a safe-upgrade, perhaps using a command line option?
View 2 Replies View RelatedI tend to use commands like 'aptitude search $something' or 'dpkg -S /usr/bin/command' (some command/variable in both) or 'apt-file search $something' and all/or many of its brethen. I do run updatedb every now and then but that command is for the overall health of the system similar to tracker perhaps (but not running continously like tracker and the daemon).
What I'm looking for is, if there is a way to get the package list (installed and otherwise) updated aggressively so that whenever I use any combination of aptitude or dpkg I get better response from the system. From what little I understand, aptitude or dpkg or somewhere there would be some sort of index/database where the current state of package availability and system state would be recorded. If there is a way that this could be improved upon would be nice to know. If there is some experimental package or road which the debian folks are looking for in the future so this latency can come down.
I was installing something, usplash, I think it was...
I ran $ sudo aptitude install usplash
and after it asked me if I wanted to install some aditional packages, it returned this:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
I have seen this error before. I just ran the command
$ sudo dpkg --configure -a
And it returned this:
Setting up initramfs-tools (0.92bubuntu29) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.28.10-some-string-here
Cannot find /lib/modules/2.6.28.10-some-string-here
update-initramfs: failed for /boot/initrd.img-2.6.28.10-some-string-here
dpkg: subprocess post-installation script returned error exit status 1
I did an:
$ aptitude search initramfs-tools
and I noticed that it had a "C" next to it. I think this has something to do with the package not being configured correctly or at all. Also looks like it is trying to generate an initd, but missing something. That kernel name looks kinda funky, though...
I uninstalled mplayer w/ apt-get (and with it mplayerthumbs + mozilla-mplayer) for the purpose of running a 'make install' on an SVN version I compiled - that worked out fine. Now I want to reinstate mplayerthumbs + mozilla-mplayer, but of course in doing so, mplayer is marked as a dep. How then do I mark mplayer to be ignored using the aforementioned package managers? Additionally, why isn't dpkg referencing my sources list?
Code:
[stuart8.5@mepis1 ~]$ sudo dpkg -i --ignore-depends=mplayer install mplayerthumbs mozilla-mplayer
[sudo] password for stuart8.5:
dpkg: error processing install (--install):
cannot access archive: No such file or directory
[code]....
After receiving no response either here or on IRC, I copied 80 package files to a temporary directory and ran dpkg-scanpackages . /dev/null > Packages with the expected result. The curious part is the delay when output redirection is not used: nothing appears until the script completes, when the result is dumped to the screen. It therefore appears that there is an upper limit to the number of packages that the script can handle, somewhere between 80 and 42,474.
Is this an undocumented feature, or just a peculiarity of my system?
I'm new to Debian and wanting to set up a local repository on my work drive. After following instructions online and copying all packages (~43,000) from the DVD set into /work/Debian/8.2/packages/ I ran dpkg-scan-packages as instructed:
Code: Select all# dpkg-scan-packages . /dev/null | gzip -9c > Packages.gz
This produced an empty file. I then ran dpkg-scanpackages with no output redirection expecting to see a flood of text on the screen, but all I got were error messages suggesting that it can see the .deb packages but is not parsing them:
Code: Select allroot@qbx:~# dpkg-scanpackages /work/Debian/8.2/packages
dpkg-deb: error: invalid character ' ' in archive '/work/Debian/8.2/packages/libshhopt1_1.1.7-3_i386.deb' member 'debian-binary' size
dpkg-scanpackages: error: couldn't parse control information from /work/Debian/8.2/packages/libshhopt1_1.1.7-3_i386.deb
[Code] ....
This all seems in accord with the man page, and it's so simple I'm wondering what I'm missing.
Debian 5.04 64bitGnome advise which package provides dpkg-reconfigure
View 3 Replies View RelatedI've build a package using dpkg-buildpackage but whenever I run aptitude safe-upgrade it upgrades the package I compiled as well even though it's the same version is there a way to tell it to leave it alone?
View 3 Replies View RelatedI have Lenny with Gnome installed. Does Synaptic Package Manager use apt-get or aptitude?
View 2 Replies View RelatedI had debian squeeze on my personal computer at home, 3 days ago i've upgraded it to the debian testing. last day i've installed virtualbox which i've gotten from virtualbox.org . today non of package managers work. an example of installing sumthin new with apt:
root@fairyland:/home/timmy# apt-get install clamav
Reading package lists... Done
Segmentation faulty tree... 50%
root@fairyland:/home/timmy#
also synaptic can't be started. i've run apt-get clean and removed /var/lib/apt/list i also tried apt-get update but these don't work sum useful info:
root@fairyland:/home/timmy# tail -n 40 /var/log/dpkg.log
2011-06-26 11:58:07 status half-installed virtualbox-ose 3.2.12-dfsg-1
2011-06-26 11:58:07 status config-files virtualbox-ose 3.2.12-dfsg-1
[code]....
just don't tell me i've to refresh its base, shit i hate to do this, i'd never done that about debian, this is one of the reasons i luv debian.
I changed to testing repository in my Debian 6.0 and I used command "apt-get update". Now, everytime I want to do something with apt-get or aptitude, I receive this:
With apt-get:
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/ftp.cz.debian.org_debian_dists_squeeze_main_i18n_Translation-cs
E: The package lists or status file could not be parsed or opened.
or with aptitude:
[ ERR] Reading package lists
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/ftp.cz.debian.org_debian_dists_squeeze_main_i18n_Translation-cs
E: The package lists or status file could not be parsed or opened.
E: Couldn't rebuild package cache
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/ftp.cz.debian.org_debian_dists_squeeze_main_i18n_Translation-cs
E: The package lists or status file could not be parsed or opened.....
I regularly compile something from a source repository that has a certain set of dependencies. Some of these dependencies are dev libraries that are provided via other libraries but are not considered installed packages in themselves, so I cannot test for some dependencies directly.
I am currently parsing an "apt-cache showpkg" output to check for some of these provided dependencies. This is somewhat kludge-y and messy, and I was looking for a more elegant solution.
Is there an APTITUDE option that will directly test for the presence of a library that is part of some other package without having to know the name of the package that the library is part of?
rosy84@rosy84:~$ apt-get install packagename aptitude
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?
When i try installing anything i get errors, for example when i try to install somthing from ubuntu software center i get this.
Code: installArchives() failed: Preconfiguring packages ... Preconfiguring packages ... Selecting previously deselected package ttf-symbol-replacement. (Reading database ... dpkg: warning: files list file for package `libsdl-image1.2' missing, assuming package has no files currently installed.
[Code]....
dpkg -i package.deb
Doesn't install package if it has not-installed dependencies.
What parameters do I miss to install that package with its dependencies from repository?
I want to rescue my system. After a faulty installation of linux-firmware_1.38_all.deb (subprocess /usr/bin/dpkg returned an error code (1))
the system does not boot, even in recovery mode. Using a live cd, I downloaded the linux-firmware version I had previously, and try to install it with dpkg but I can't direct it to the directories I need:
dpkg -i linux-firmware_1.26_all.deb
Segmentation fault
dpkg -i --instdir=/mnt/sdb1 linux-firmware_1.26_all.deb
dpkg: unrecognized option '--instdir=/mnt/sdb1
I cannot get the correct parameters even by reading the man page. What am I missing?
i installed a package with dpkg --install and told it to ignore an unmet dependency because the package it depended on could not be installed with apt-get (it was a perl module) and i have manually installed the perl module, it works... however every time i do "apt-get upgrade" or anything like that it wants to remove the package i forced to install because it still thinks there are unmet dependencies, is there a way to either tell it to ignore that the package has unmet dependencies (i mean ignore that always, not something i will have to add every time i use aptitude) or is there a way to convince it that the package it thinks is missing (the unmet dependency) is actually met.
View 3 Replies View RelatedI'm running Debian squeeze and my packages are all up to date. I usually do my updates by typing 'aptitude update' and 'aptitude safe-upgrade' at the command line as root.Sometimes when doing regular updates aptitude, or the package that's being updated, shows a ncurses-style dialog box on the screen, usually to have the user 'OK' a change, or to select which version of a configuration file to keep. Recently I've found these dialog boxes to be slightly messed up... in that the spot at the bottom where I would expect the 'OK' button to be is replaced by nonsensical characters.
There seems to be no problem with the way that the program functions, as I can press the tab key and then the return key, or just the return key alone, and the dialog goes away, seemingly doing it's job. But I would like to know what this program is. It's likely been updated recently, but looking through /var/log/aptitude and /var/log/aptitude.1.gz I cannot figure out which one it is. I'd like to file a bug report, or simply be able to follow the progress of someone else's bug. That's all.
I'm using a new Distro and after installing it and randomly searching for help on websites on how to install a .Deb file using dpkg at the konsole/terminal it says Bash : dpkg: Command not found . how is this possible ? Do I have to know about all the packages in the package manager to install this. slight difference for me ... knowing what I have and knowing if I need Apr93-323? (whatever) installed first or not ? The only thing I know is that I have the Iso image installed ... which is my linux distro . Where to go from here? because I usually go to a website site to find Software to install ...if I need it .back to the basics
View 14 Replies View RelatedWhen I tried to upgrade my xubuntu 10.04 , I got this error
dpkg: parse error, in file '/var/lib/dpkg/available' near line 2 package 'x11proto-core-dev': value for `status' field not allowed in this context E: Sub-process /usr/bin/dpkg returned an error code (2)
I'm running ubuntu 9.04 and was happy because I finally got the screen resolution to be a good size, but now I can't update anything or even upgrade ubuntu.The message I get is
Quote:
Could Not Initialize Package Information
An unresolvable problem occured while initializing the package information.Please report this bug against the 'update-manager' package and include the following error message:
'E:Unable to parse package file /var/lib/dpkg/status (1), E:The package lists or status file could not be parsed or opened.'
I've also had issues with installing new programs (specifically tried Boxee (64bit ver) and Last.fm Scrobbler), but was thinking these issues might be related to the updage-manager error.
Full error dpkg: failed to open package info file `/var/lib/dpkg/available' for reading: Input/output error
Runing 10.10 on USB.All was fine until a week ago then when trying to update I get that error.
Ive followed instructions in many threads to no avail. Heres what ive done and the result.
sudo apt-get update No error,all download fine sudo apt-get upgrade
Preconfiguring packages ...
dpkg: failed to open package info file `/var/lib/dpkg/available' for reading: Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)
sudo apt-get install -f
dpkg: failed to open package info file `/var/lib/dpkg/available' for reading: Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)
[Code]...
Sid
cmake 2.8.1-2
dh-make .54
dpkg-dev 1.15.7.1
I'm having some issues building deb packages. dh_make --createorig behaves as expected, but when I attempt to buld the package with dpkg-buildpackage -rfakeroot the build dies on a dpkg-source error.
Background: An [old] x86-based server running Debian Squeeze screwed up one of its SCSI hardware raids. Since the problem seemed more related to the raid controller than the disks (the disks still responded and I was able to restore their contents with some trickery), I got myself a QNAP NAS TS-119 as a replacement, installed Debian on it and wanted to install the original set of packages to the new platform.Instead of simply installing all packages on the QNAP that were on the old x86 box, I wanted to maintain the status of automatically installed packages in aptitude.
After looking at /var/lib/aptitude/pkgstates and a bit of confusionI looked at the aptitude source code and found the following rather simple explanation:Aptitude merges the package status information from apt and aptitude without storing redundant information in its own status file (which is good). This means the information aboutckages that were automatically installed is tracked in /var/lib/apt/extended_states.This may seem trivial but I couldn't find this information on the Internet I thought I'd submit a dummy question here in case others are havng similar problems.For the sake of completeness: There seem to be situations (like pending actions) where aptitude will store auto-install information in its own state file, /var/lib/aptitude/pkgstates.
I'm fairly new to debian, but not to Linux overall. And it seems that I can not install anything using the "apt-get" or "aptitude" commands. Here is what it says when I try to install synaptic:
apt-get install synaptic
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package synaptic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source.
E: Package synaptic has no installation candidate
I tried synaptic "aptitude install synaptic". Got this:
[Code]....
I have a post in beginners section but maybe I can find some help here.. If you do not mind,please read the following post about my problem.viewtopic.php?f=30&t=55243&p=320093#p319848
View 1 Replies View RelatedRunning testing
There were some grave bugs being showed by listbugs for apt dpkg etc
So ran aptitude hold for these buggy packages and upgraded others
Now unable to 'unhold' dpkg. ie
synaptic shows it as 1.17.13 both installed and latest and no upgradation possible
[URL] .... shows it as 1.17.23
Code: Select all# aptitude dist-upgrade
The following NEW packages will be installed:
dpkg:i386{ab} libbz2-1.0:i386{a} libjpeg62-turbo:i386{a} libsystemd0:i386{a}
some other stuff
Code: Select allThe following packages have unmet dependencies:
dpkg : Conflicts: dpkg:i386 but 1.17.23 is to be installed.
dpkg:i386 : Conflicts: dpkg but 1.17.13 is installed.
So I can only conclude that aptitude sees the need to upgrade from .13 to .23 but for some reason it cant 'get out' of the installed dpkg:amd64
I have downloaded the package but i dont know how to install and start the program.
View 10 Replies View RelatedI see that the backports now is officiel. My question is rather simpel: Is it possible to upgrade with (and how to) the backported packages without to much work? Is is needed to install all backported packages individually? I want to upgrade to any backported package with the command:
apitutude safe-upgrade - if it is possible.