The Navigatrix has been updated. The new website can be found at navigatrix.net.




Post new topic Reply to topic  [ 33 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: update opencpn

Joined: 18 Mar 2014, 05:31
Posts: 11
someone knows how I can do it?


Top
   
 
 Post subject: Re: update opencpn

Joined: 04 Nov 2010, 20:51
Posts: 1062
Good thing this was just covered.

http://navigatrix.net/viewtopic.php?f=4&t=752&hilit=opencpn+4.0

We'll skip the bloody parts....open a terminal (<ctl><alt><t>) (Hint; skip to the near end)

Paste in, enter, and be agreeable:
Code:
sudo apt-get remove install-info

Add the opencpn repository
Code:
sudo add-apt-repository ppa:opencpn/opencpn

Update the list
Code:
sudo apt-get update

Install
Code:
sudo apt-get install opencpn opencpn-doc opencpn-tcdata opencpn-gshhs-low  opencpn-gshhs-crude opencpn-gshhs-intermediate opencpn-gshhs-high opencpn-gshhs-full
Enjoy.

Hint: If you're lazy do it all at once
Code:
sudo apt-get remove install-info && sudo add-apt-repository ppa:opencpn/opencpn && sudo apt-get update && sudo apt-get install opencpn opencpn-doc opencpn-tcdata opencpn-gshhs-low opencpn-gshhs-crude opencpn-gshhs-intermediate opencpn-gshhs-high opencpn-gshhs-full
Answer the questions on the terminal as they arise. Most (All) take an <Enter> only. Read the terminal. If it asks you to enter
Code:
sudo apt-get -f install
please do. It's to fix some oversight in instructions.

Enjoy.


Top
   
 
 Post subject: Re: update opencpn

Joined: 21 May 2013, 14:53
Posts: 93
Hello, NX-ers!

Something horrible happened... :)
I waited for hours to download the packages, and when it came to unpacking them, my hard disk got full...
So the installation has been interrupted, with this message:

Processing triggers for man-db (2.6.7.1-1) ...
/usr/bin/mandb: can't write to /var/cache/man/4689: No space left on device
Errors were encountered while processing:
/var/cache/apt/archives/opencpn-tcdata_3.3.2107-0~trusty1_all.deb
/var/cache/apt/archives/opencpn-gshhs-crude_2.2.4-0~trusty2_all.deb
/var/cache/apt/archives/opencpn-gshhs-low_2.2.4-0~trusty2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Now I made more space, now I have 5 G of free space.
How can I continue, without downloading everything again?

Thank you!


Top
   
 
 Post subject: Re: update opencpn

Joined: 04 Nov 2010, 20:51
Posts: 1062
Code:
sudo apt-get install opencpn opencpn-doc opencpn-tcdata opencpn-gshhs-low opencpn-gshhs-crude opencpn-gshhs-intermediate opencpn-gshhs-high opencpn-gshhs-full

will get you back on track. Any data already downloaded will be already downloaded.....apt-get will pick up where it spit up.


Top
   
 
 Post subject: Re: update opencpn

Joined: 21 May 2013, 14:53
Posts: 93
Thank you!

Wow...what a difference! It is way faster than the previous version, even without the OpenGL acceleration.
Very nice.

Thank you for your lightening-fast answer, Moe!


Top
   
 
 Post subject: Re: update opencpn

Joined: 18 Mar 2014, 05:31
Posts: 11
I got this errors

Reading state information... Done
E: Unable to locate package opencpn-doc
E: Unable to locate package opencpn-tcdata
E: Unable to locate package opencpn-gshhs-low
E: Unable to locate package opencpn-gshhs-crude
E: Unable to locate package opencpn-gshhs-intermediate
E: Unable to locate package opencpn-gshhs-high
E: Unable to locate package opencpn-gshhs-full


Top
   
 
 Post subject: Re: update opencpn

Joined: 04 Nov 2010, 20:51
Posts: 1062
Two reasons are likely candidates:

1) The PPA (private repository) has not been added.
Code:
sudo add-apt-repository ppa:opencpn/opencpn

2) The grand-master list of available packages in all repositories has not be updated to include the 'new' additions.
Code:
sudo apt-get update

It could be one, or the other, or both.

Give that a try.

It is quite possible the 'all-in-one' command misses a 'confirmation' request "Do you want to enter this repository into your system?'...sort of question.

If it does, it's my oversight as I never tested it on a 'virgin' system.


Top
   
 
 Post subject: Re: update opencpn

Joined: 18 Mar 2014, 05:31
Posts: 11
after this

sudo apt-get update

i got this

E: Some index files failed to download. They have been ignored, or old ones used instead.


doesn't work... :(


Top
   
 
 Post subject: Re: update opencpn

Joined: 04 Nov 2010, 20:51
Posts: 1062
Sometimes it's harder to figure out the problem than just get a bigger hammer and beat it into submission.

I just had a look with a fresh LiveCD version. The install script chokes so you have to beat it.

I don't understand the files failed to download problem.

I could find them all. Rather than figure out what you may, or may not be missing, I packaged them into an archive and placed them in a dropbag

http://wadda.org/dropbag/diecicentouno.tar.gz

Download the archive. Unpack it.

Open a terminal and execute:

Code:
sudo cp ~/Downloads/opencpn/* /var/cache/apt/archives/
Code:
sudo apt-get install opencpn opencpn-doc opencpn-tcdata opencpn-gshhs-low opencpn-gshhs-crude opencpn-gshhs-intermediate opencpn-gshhs-high opencpn-gshhs-full
Code:
sudo apt-get -f install
It will complain, ignore the errors, that will fix it.

Remember your friends.


Top
   
 
 Post subject: Re: update opencpn

Joined: 18 Mar 2014, 05:31
Posts: 11
Moe wrote:
Sometimes it's harder to figure out the problem than just get a bigger hammer and beat it into submission.

I just had a look with a fresh LiveCD version. The install script chokes so you have to beat it.

I don't understand the files failed to download problem.

I could find them all. Rather than figure out what you may, or may not be missing, I packaged them into an archive and placed them in a dropbag

http://wadda.org/dropbag/diecicentouno.tar.gz

Download the archive. Unpack it.

Open a terminal and execute:

Code:
sudo cp ~/Downloads/opencpn/* /var/cache/apt/archives/
Code:
sudo apt-get install opencpn opencpn-doc opencpn-tcdata opencpn-gshhs-low opencpn-gshhs-crude opencpn-gshhs-intermediate opencpn-gshhs-high opencpn-gshhs-full
Code:
sudo apt-get -f install
It will complain, ignore the errors, that will fix it.

Remember your friends.


Thanks guys, i made all that you wrote but doesn't work any way!


Top
   
 
 Post subject: Re: update opencpn

Joined: 04 Nov 2010, 20:51
Posts: 1062
If you specified what leads you to this conclusion we might be able to fix it.

Defining the problem is half the solution. Understanding the problem is the rest of the solution.

How do you know that it didn't work?


Top
   
 
 Post subject: Re: update opencpn

Joined: 18 Mar 2014, 05:31
Posts: 11
Moe wrote:
If you specified what leads you to this conclusion we might be able to fix it.

Defining the problem is half the solution. Understanding the problem is the rest of the solution.
How do you know that it didn't work?


ok Moe, I start from the begining:

if i try to in install opencpn with Gdebi, this is the error: dependency is non satifable: wx2.8-i18n

Now i try to upgrade with sudo: I follow all of your instruction (from the beginning to the end) but opencpn is always on 3.2 release....

what can i do?? maybe i disintall opencpn and than try to install the new version?


Top
   
 
 Post subject: Re: update opencpn

Joined: 04 Nov 2010, 20:51
Posts: 1062
Are you getting errors like
Quote:
Vcp: cannot stat ‘/home/nx/Downloads/opencpn/*’: No such file or directory

or[quoteReading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package opencpn-doc
E: Unable to locate package opencpn-tcdata
E: Unable to locate package opencpn-gshhs-low
E: Unable to locate package opencpn-gshhs-crude
E: Unable to locate package opencpn-gshhs-intermediate
E: Unable to locate package opencpn-gshhs-high
E: Unable to locate package opencpn-gshhs-full
][/quote]

What version of Navigatrix? The current one sports OpenCPN 3.2.2, I have to hunt for the 3.2, or did you not type the entire number?


Top
   
 
 Post subject: Re: update opencpn

Joined: 04 Nov 2010, 20:51
Posts: 1062
Unless you are creating a typo, these instruction take a freshly made USB installation of Navigatrix all the way through an OpenCPN 4.0.0 installation. It has been tested many times.

If you are only getting version 3.2, and not 3.2.2, it might mean you have an older version of Navigatrix and there is something going on that I'm not aware of...or you do not have a persistence file, and never really install it, but, the easiest, fastest solution for me, if you want to update OpenCPN, update Navigatrix because I do not have enough information to reasonable begin to figure out what is going wrong.


Top
   
 
 Post subject: Re: update opencpn

Joined: 04 Nov 2010, 20:51
Posts: 1062
Check your typing (or cut and paste method).

I dug in the attic and on any Navigatrix 0.5, OpenCPN 4.0.0 can be installed with those instructions.


Top
   
 
 Post subject: Re: update opencpn

Joined: 18 Mar 2014, 05:31
Posts: 11
Moe wrote:
Are you getting errors like
Quote:
Vcp: cannot stat ‘/home/nx/Downloads/opencpn/*’: No such file or directory

or[quoteReading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package opencpn-doc
E: Unable to locate package opencpn-tcdata
E: Unable to locate package opencpn-gshhs-low
E: Unable to locate package opencpn-gshhs-crude
E: Unable to locate package opencpn-gshhs-intermediate
E: Unable to locate package opencpn-gshhs-high
E: Unable to locate package opencpn-gshhs-full
]


What version of Navigatrix? The current one sports OpenCPN 3.2.2, I have to hunt for the 3.2, or did you not type the entire number?[/quote]


Version 3.2.2...


Top
   
 
 Post subject: Re: update opencpn

Joined: 18 Mar 2014, 05:31
Posts: 11
/ A conference is a gathering of \
| important people who singly can do |
| nothing but together can decide that |
| nothing can be done. |
| |
\ -- Fred Allen /
--------------------------------------
\
__,---.
/__|o )
`- / /
,) (,
// \\
{( )}
=======""===""===============
|||||
|||
|

diecicentouno@diecicentouno-Aspire-5740:~$ sudo cp ~/Downloads/opencpn/* /var/cache/apt/archives/
[sudo] password for diecicentouno:
diecicentouno@diecicentouno-Aspire-5740:~$ sudo apt-get install opencpn opencpn-doc opencpn-tcdata opencpn-gshhs-low opencpn-gshhs-crude opencpn-gshhs-intermediate opencpn-gshhs-high opencpn-gshhs-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package opencpn-doc
E: Unable to locate package opencpn-tcdata
E: Unable to locate package opencpn-gshhs-low
E: Unable to locate package opencpn-gshhs-crude
E: Unable to locate package opencpn-gshhs-intermediate
E: Unable to locate package opencpn-gshhs-high
E: Unable to locate package opencpn-gshhs-full
diecicentouno@diecicentouno-Aspire-5740:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
alien cups-ppdc libcupscgi1 libcupsmime1 libcupsppdc1 libfontembed1
libgutenprint2 libqpdf10 librpmbuild3 librpmsign1 pax rpm ssl-cert
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
diecicentouno@diecicentouno-Aspire-5740:~$


let's have a look!
thank you for your assistence!


Top
   
 
 Post subject: Re: update opencpn

Joined: 04 Nov 2010, 20:51
Posts: 1062
There are two ways to get output like you've demonstrated:
  • The list of available packages was not updated

This is done to update what the system knows is available, and where that information is located.

First, youŕe adding to the know list of available packages

Add the opencpn repository
Code:
Code:
sudo add-apt-repository ppa:opencpn/opencpn

Then you regenerate the list of packages, including the new OpenCPN repository

Update the list
Code:
Code:
sudo apt-get update

Once you have the updated list (and locations) of available packages, then you can install them.
Code:
sudo apt-get install opencpn opencpn-doc opencpn-tcdata opencpn-gshhs-low opencpn-gshhs-crude opencpn-gshhs-intermediate opencpn-gshhs-high opencpn-gshhs-full
Since you had indicated you had trouble with the packages that were downloaded, I sorry, I assumed you had already done those steps.

Executing those three commands in sequence should bring you success.
  • The other way you could get this output and not be able to update OpenCPN is if you had a LiveCD with no persistence file....but, since your login is not ´nx´ I'd look to the first case.


Top
   
 
 Post subject: Re: update opencpn

Joined: 18 Mar 2014, 05:31
Posts: 11
Moe, doesn't works.....

I attached a file with the errors...


Top
   
 
 Post subject: Re: update opencpn

Joined: 04 Nov 2010, 20:51
Posts: 1062
Ora si sono solo scherzi con me.


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 33 posts ]  Go to page 1, 2  Next


Search for:
cron

Credits © 2010 - 2024