Getting "Short read in buffer_copy" error with "dpkg"
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu, maintain a Vector Linux install
Posts: 50
Rep:
Getting "Short read in buffer_copy" error with "dpkg"
A little background:
I recently downloaded and installed Ubuntu "Hoary Hedgehog" 5.04, and had the installer wipe the previously Windows-xp hard drive. After exploring all the applications, I found that it was missing one (I think) very important game: Frozen Bubble.
I have been researching Linux for a while, and have previously played around with Knoppix 3.7. A few days before installing Ubuntu, I borrowed, from the local library, the "Linux All-in-One Desk Reference For Dummies", which was extremely informative and helpful. I would recommend it to anyone.
Anyway, to solve my dilemma, I downloaded the .deb for Frozen Bubble from some Debian file repository that I can't find right now. I then transferred it from the computer I downloaded it on and transferred it via floppy to my computer.
I would have used apt-get, but my computer has no Internet connection yet.
Now, to my problem. When I did
Code:
dpkg -i /frozen~1.deb
(I stored it in root), it gave me the following 2 (1?) error(s):
Code:
short read in buffer_copy (failed to write to pipe in copy)
and
Code:
short read in buffer_copy (backend dpkg-deb during `./usr/lib/perl5/auto/fb_c_stuff/fb_c_stuff.so')
When I saw this, went to "/usr/lib/perl5/auto/fb_c_stuff/" and, to my surprise, "fb_c_stuff.so" did not exist. I tried creating it, and then running the same command, but it still did not work.
Is the ".deb" file corrupted? Nautilus says that it is only 4 kbytes. That seems a little too small.
Do I need to install some other perl package? I looked through the Synaptic package manager, and I made sure that all of the perl packages in there were installed.
Did you look in Synaptic for Frozen Bubble? It's in Debian sid, so it should be in Ubuntu too. Although you might have to enable the Universe and/or Multiverse respositories.
And yes, 4K is too small. I bet if you look inside the file with a text editor there's an HTTP error or something.
Distribution: Ubuntu, maintain a Vector Linux install
Posts: 50
Original Poster
Rep:
Never mind, I fixed it. The file was to small. I got a hold of a usb flash drive, and redownloaded and retransferred it.
I couldn't find it in Synaptic. Actually, Synaptic was surpirisingly scarce in what it had to offer. Most of the stuff in there was already installed.
I have another problem now. Among a multitude of other dependencies, I needed to build SDL, because SDL-config could not be found. After "./configure"ing it and "make"ing it, "make install" gave me something like:
dpkg --configure -a help for terminal add/remove packages
I see you are advanced in configuring programs, and so on. I an new to the Ubuntu forums and I do not know at all how to type into the terminal.
When I am adding removing packages to get more hard drive space, this is not the first time I left too many pages open and it crashes on me. My son would fix it by typing in the terminal sudo something, but I want to know how to do this. The only thing not working is the add/remove packages at the moment. Here is what it said, E:dpkg was interrupted you must manually run 'dpkg--configure -a' to correct the problem E: _cache-open()failed please report. Please, could someone tell me how to get the default back or whatever. When I type in the terminal, it refused my password until I tried several times, plus, it finally says in the terminal No such command. Bash. No such command. What does bash mean? You were looking for a more complex configuration, I am hoping this question is one you do recognize the answer for.
I see you are advanced in configuring programs, and so on. I an new to the Ubuntu forums and I do not know at all how to type into the terminal.
When I am adding removing packages to get more hard drive space, this is not the first time I left too many pages open and it crashes on me. My son would fix it by typing in the terminal sudo something, but I want to know how to do this. The only thing not working is the add/remove packages at the moment. Here is what it said, E:dpkg was interrupted you must manually run 'dpkg--configure -a' to correct the problem E: _cache-open()failed please report. Please, could someone tell me how to get the default back or whatever. When I type in the terminal, it refused my password until I tried several times, plus, it finally says in the terminal No such command. Bash. No such command. What does bash mean? You were looking for a more complex configuration, I am hoping this question is one you do recognize the answer for.
Hi Kathy, you might want to start a new thread about this, but i will give you some information anyway.
Start a terminal, you might find it under "Applications" -> "Terminal emulators" or something, just choose on of them, then write this command like aptitude said you needed to: "dpkg--configure -a". You have to add the "sudo" word first if you are using sudo, if not then you need to type "su -c" first and then enter the root password. If you are using sudo then enter your own password.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.