Cannot write to.. Broken pipe..

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
ragingb
Level 1
Level 1
Posts: 9
Joined: Wed Mar 24, 2010 11:04 am

Cannot write to.. Broken pipe..

Post by ragingb »

Hello there folks, I have some problems installing Wine on Lenny.

I open my root shell and add the repository and then i do

Code: Select all

wget -O - http://www.lamaresh.net/apt/key.gpg | apt-key add
And it returns:

Code: Select all

robin1337:/home/robin# wget -O - http://www.lamaresh.net/apt/key.gpg | apt-key add
--2010-03-24 17:14:25--  http://www.lamaresh.net/apt/key.gpg
Resolving www.lamaresh.net... gpg: can't open `': No such file or directory
62.149.140.127
Connecting to www.lamaresh.net|62.149.140.127|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1385 (1.4K) [text/plain]
Saving to: `STDOUT'

 0% [                                       ] 0           --.-K/s   in 0s      


Cannot write to `-' (Broken pipe).
robin1337:/home/robin#
And yes i am root. I did su and edited the sources.lst so that can not be the problem.
J4

Cannot write to.. Broken pipe..

Post by J4 »

Hi Ragingb,

Try putting forwards ticks around the URL: ' '

wget -O - 'http://www.lamaresh.net/apt/key.gpg' | apt-key add

Then it'll work as shown below (although I did not pipe it to apt-key)

$ wget -O - 'http://www.lamaresh.net/apt/key.gpg'
--2010-03-24 17:36:53-- http://www.lamaresh.net/apt/key.gpg
Connecting to 127.0.0.1:8118... connected.
Proxy request sent, awaiting response... 200 OK
Length: 1385 (1.4K) [text/plain]
Saving to: `STDOUT'

0% [ ] 0
--.-K/s -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.9 (GNU/Linux)

mQGiBElzdjkRBACXOL8DjsWUHZIUNPaZOek44vuTX9se0uJEJetJTg939KxTW/dt
iciEauYlQkJJfzIFaMuWp4I9GD3tJs3tWiAsdRng82Hk3qfEFbthNTTbSSZybd2h
0gJACY/utgsFrL8srrkewe8sWv6MnzidylP1ADgwW2fmHLrOehvyX4EJ7wCg3K+E
/ylazDDO0hBPKF5K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BLIC KEY BLOCK-----
100%[======================================>] 1,385 --.-K/s in
0s

2010-03-24 17:36:53 (46.8 MB/s) - `-' saved [1385/1385]


ragingb wrote:
Hello there folks, I have some problems installing Wine on Lenny.

I open my root shell and add the repository and then i do

Code:

wget -O - http://www.lamaresh.net/apt/key.gpg | apt-key add




And it returns:

Code:

robin1337:/home/robin# wget -O - http://www.lamaresh.net/apt/key.gpg | apt-key add
--2010-03-24 17:14:25-- http://www.lamaresh.net/apt/key.gpg
Resolving www.lamaresh.net... gpg: can't open `': No such file or directory
62.149.140.127
Connecting to www.lamaresh.net|62.149.140.127|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1385 (1.4K) [text/plain]
Saving to: `STDOUT'

0% [ ] 0 --.-K/s in 0s


Cannot write to `-' (Broken pipe).
robin1337:/home/robin#




And yes i am root. I did su and edited the sources.lst so that can not be the problem.




ragingb
Level 1
Level 1
Posts: 9
Joined: Wed Mar 24, 2010 11:04 am

Post by ragingb »

pretty annoying problem here..

Code: Select all

robin@robin1337:~$ su
Password: 
robin1337:/home/robin# whoami
root
robin1337:/home/robin# wget -O - 'http://www.lamaresh.net/apt/key.gpg' | apt-key add 
--2010-03-25 02:34:12--  http://www.lamaresh.net/apt/key.gpg
Resolving www.lamaresh.net... gpg: can't open `': No such file or directory
62.149.140.127
Connecting to www.lamaresh.net|62.149.140.127|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1385 (1.4K) [text/plain]
Saving to: `STDOUT'

 0% [                                       ] 0           --.-K/s   in 0s      


Cannot write to `-' (Broken pipe).
ragingb
Level 1
Level 1
Posts: 9
Joined: Wed Mar 24, 2010 11:04 am

Post by ragingb »

and

Code: Select all

robin1337:/home/robin# wget -O 'http://www.lamaresh.net/apt/key.gpg' | apt-key add 
gpg: can't open `': No such file or directory
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

ragingb wrote:robin1337:/home/robin# wget -O 'http://www.lamaresh.net/apt/key.gpg' | apt-key add
gpg: can't open `': No such file or directory
Check your internet connection. You either having issues with it, or your ISP blocking something.
ragingb
Level 1
Level 1
Posts: 9
Joined: Wed Mar 24, 2010 11:04 am

Post by ragingb »

yea well what ever the problem was i fixed it by doing.

wget -O - http://www.lamaresh.net/apt/key.gpg >> key.gpg
apt-key add key.gpg
OK

so it all worked itself out, tada, tada, how u like me now xD
ragingb
Level 1
Level 1
Posts: 9
Joined: Wed Mar 24, 2010 11:04 am

Post by ragingb »

lol, i just saw there a second method xD Maybe you guys could consider my method being a third one..
James McKenzie

Cannot write to.. Broken pipe..

Post by James McKenzie »

ragingb wrote:
pretty annoying problem here..


Code:

robin@robin1337:~$ su
Password:
robin1337:/home/robin# whoami
root
robin1337:/home/robin# wget -O - 'http://www.lamaresh.net/apt/key.gpg' | apt-key add
--2010-03-25 02:34:12-- http://www.lamaresh.net/apt/key.gpg
Resolving www.lamaresh.net... gpg: can't open `': No such file or directory
62.149.140.127
Connecting to www.lamaresh.net|62.149.140.127|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1385 (1.4K) [text/plain]
Saving to: `STDOUT'

0% [ ] 0 --.-K/s in 0s


Cannot write to `-' (Broken pipe).
Interesting because you are trying to save the file to the screen and
some systems will NOT allow this with a gpg key file.

You found that using the redirect fixed this.

And this is a distro problem. Time to tell the debian folks that you
have it.

James McKenzie
ragingb
Level 1
Level 1
Posts: 9
Joined: Wed Mar 24, 2010 11:04 am

Post by ragingb »

Hey James McKenzie, did you told the Debian support about this already? If not let me tell them please...? I don't know if this is a huge bugfix but if it is it wouldn't be fair for me to gain all the credits because I wouldn't find out about this if you didn't told me just now. What is the best way to tell the Debian folks, I would say open a forum topic on their support website or send them an e-mail do you maybe know about a more direct way to report this?

Now I had to fix something else, when I where trying to get win32 apps running I noticed some trouble and noticed it wasn't running v1.1.41 instead it was still running the Debian version 1. 0.1-1 all along so I managed synamptic to uninstall wine 1.0.1-1 and some stuff around it. The I closed synaptic I opened synaptic again and then did a search for wine.

Some libwine-... v1.0.1-1 were still in place I didn't remove them. Then when I took a view down the list I saw available for install "wine v1.0.0-1". Then i found out that I could set it manually to force install v1.1.41. I did, and synaptic marked all the libwine-... library's for uninstall marked some needs for install and now it works it says v.1.1.41.

I am still have a liltle doubt about that key file thing I did because if there was not a solution for this jet how comes there are still reviews of users running Debian Lenny and a high version of wine like v1.1.xx?

I version checked it this time and it
James McKenzie

Cannot write to.. Broken pipe..

Post by James McKenzie »

ragingb wrote:
Hey James McKenzie, did you told the Debian support about this already? If not let me tell them please...?
I don't run Debian here, so you are free to let them know about this
problem. They may ask you to do some testing for them or this may
already be a known problem with a good workaround. However, Wine 1.0.1
is over a year old. Wine 1.2.0 needs some more fixes before it can be
released.

James McKenzie
ragingb
Level 1
Level 1
Posts: 9
Joined: Wed Mar 24, 2010 11:04 am

Post by ragingb »

I posted the workaround on the dutch debian mailinglist maybe they know where I actualy report this. It feld better to tell it first to the dutch debian crowd that lead the mailinglist.
ragingb
Level 1
Level 1
Posts: 9
Joined: Wed Mar 24, 2010 11:04 am

Post by ragingb »

I posted the workaround on the dutch Debian mailing list maybe they know where I actually report this. It felt better to tell it first to the dutch debian crowd that lead the mailing list.

For the interested folks who do speak dutch here is where I posted it. http://lists.debian.org/debian-user-dut ... 00044.html
ragingb
Level 1
Level 1
Posts: 9
Joined: Wed Mar 24, 2010 11:04 am

Post by ragingb »

The Debian folks told me the actual command that didn't work in the first place should be.

Code: Select all

wget -O - http://www.lamaresh.net/apt/key.gpg | apt-key add -
Now the first - just after the parameter -O defines data should be kept in there to be used later on in the second command. The second command starts just after && and then it uses the data from the memory with the same character -

Sounds pretty reasonable and I just checked again and it also says so in the howto. It's just that I haven't seen the - in the first place and nobody else here seen what went wrong. But no shame, we all make this kinda mistakes once in a while..

See ya'll around, keep up the good work!
Locked