LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-03-2022, 01:16 AM   #1
Novatian
Senior Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 20.3 MATE, Android, Windows 10, MX Linux and Mint 21.1 MATE
Posts: 1,052

Rep: Reputation: 38
Libre Office won't save or save as...


I am using Mint 20.2 and Libre Office, which opens a document from my memory stick but when I modify it and want to save, it reads an error:
Quote:
Error saving the document resume 2022:
Write error.
The file could not be written.
Then
Quote:
OK.
To save as, I have to start a recovery of the document with the original title.
Below is the the title of the document that comes up, it should only be Brendan MB Resume.docx
Quote:
.~lock.Brendan MB Resume 2022.docx#
And inside the document:
Quote:
,bm,Computer2,03.08.2022 16:08,file:///home/bm/.config/libreoffice/4;
How can I save my new documents...?
 
Old 08-03-2022, 09:26 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
is the usb stick mounted as Read Only ?
 
Old 08-03-2022, 09:51 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,716

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
The lock file is used to prevent multiple users from editing the same file at the same time. It should be deleted when the document is closed but a crash or other glitch might not have when previously opened.

With the document closed try deleting the lock file and see what happens. Otherwise:

As posted the flash drive might be mounted read only.
The document might be set to read only by LO.
The flash drive might be failing and mounting read only.

Can you copy the document to your hard drive?
 
Old 08-04-2022, 12:33 AM   #4
Novatian
Senior Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 20.3 MATE, Android, Windows 10, MX Linux and Mint 21.1 MATE
Posts: 1,052

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by michaelk View Post
The lock file is used to prevent multiple users from editing the same file at the same time. It should be deleted when the document is closed but a crash or other glitch might not have when previously opened.

With the document closed try deleting the lock file and see what happens. Otherwise:

As posted the flash drive might be mounted read only.
The document might be set to read only by LO.
The flash drive might be failing and mounting read only.

Can you copy the document to your hard drive?
I saved an image from my SSD to the stick and it opened. And I copied a document to SSD and it opened. I don't know how to see if LO is set to read only?

I tried making a document called test save and save as docx and this results in LO wanting to recover another document, "untitled 1" if I choose to recover it it opens and has the test page in it and is still untitled even though this time it was titled in save as as "test 3".

I renamed the file without lock... but there is only the one line in that when opened.

Last edited by Novatian; 08-04-2022 at 01:43 AM.
 
Old 08-04-2022, 06:45 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,716

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
If you can copy files to the flash drive then it isn't read only. If a document opens read only there will be a banner at the top indicating it is read only.

Did you create the new test document on the SSD or the flash drive? LO will use default naming "untitled X" when a new document is saved unless it is renamed and also defaults to ~/Documents.

Check your backup directory for files. For the location look at the tools->options backup path. This is where recovery files are located. Typically LO is configured to auto save files every 10 minutes. Seems strange that LO wants to recover the file.

With LO not running just delete the lock file. The file contents from the OP "03.08.2022" indicates the date the lock file was created so was this the last time you opened this particular file?
 
Old 08-05-2022, 09:16 AM   #6
Novatian
Senior Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 20.3 MATE, Android, Windows 10, MX Linux and Mint 21.1 MATE
Posts: 1,052

Original Poster
Rep: Reputation: 38
May uninstalling and reinstalling LO help or Updating LO to the most recent version? Or manually installing and older version?


bm@Computer2:~$ apt-get update libreoffice
E: The update command takes no arguments

Last edited by Novatian; 08-05-2022 at 10:06 AM.
 
Old 08-05-2022, 09:22 AM   #7
Novatian
Senior Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 20.3 MATE, Android, Windows 10, MX Linux and Mint 21.1 MATE
Posts: 1,052

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by michaelk View Post
If you can copy files to the flash drive then it isn't read only. If a document opens read only there will be a banner at the top indicating it is read only.

Did you create the new test document on the SSD or the flash drive? LO will use default naming "untitled X" when a new document is saved unless it is renamed and also defaults to ~/Documents.

Check your backup directory for files. For the location look at the tools->options backup path. This is where recovery files are located. Typically LO is configured to auto save files every 10 minutes. Seems strange that LO wants to recover the file.

With LO not running just delete the lock file. The file contents from the OP "03.08.2022" indicates the date the lock file was created so was this the last time you opened this particular file?
The program open anew from SSD and won't save a test document.
On another Linux computer it works. But the renamed files still don't produce more that the line with the date.
Back up seems empty.
That date is the one.
Renaming the files and then opening them doesn't make a difference.

Last edited by Novatian; 08-05-2022 at 09:38 AM.
 
Old 08-05-2022, 09:27 AM   #8
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,498

Rep: Reputation: Disabled
Do you have 'permission' to write to your USB stick(?).

If not, you need to change it's 'ownership' to your user name.

(If it is a MS filesystem, you will likely need to write to it as sudo or root.)
 
Old 08-05-2022, 09:53 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,716

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Starting anew, the document will just be in RAM until it auto saves i.e. after 10 minutes by default or if you save the document. You did not post where you were trying to save the document. The recovery message when you try to save the test document is strange since the backup directory is empty. It appears like you can copy files back and forth between the flash, SSD or maybe from other sources so filesystem corruption or either file system being read only is not the problem? I assume you have sufficient free space on either filesystem.

LO might be messed up.
 
Old 08-05-2022, 10:42 AM   #10
Novatian
Senior Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 20.3 MATE, Android, Windows 10, MX Linux and Mint 21.1 MATE
Posts: 1,052

Original Poster
Rep: Reputation: 38
I installed the latest LO 7.3 along side the old, and the newer versions works.
 
Old 08-05-2022, 05:21 PM   #11
Novatian
Senior Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 20.3 MATE, Android, Windows 10, MX Linux and Mint 21.1 MATE
Posts: 1,052

Original Poster
Rep: Reputation: 38
I'll add solved, but, what went wrong?
 
Old 08-05-2022, 05:32 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,716

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
I have no idea.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Libre office vs Open office Arcane Linux - Software 25 11-26-2019 05:57 PM
Libre Office and Open Office both fail to open MS Office documents correctly. Observed Linux - Newbie 8 07-18-2014 10:48 AM
[SOLVED] Libre Office or Open Office QueenZ Linux - Newbie 12 02-22-2013 03:58 AM
Unoconv Convertor for RHEL 6 : Libre office & open office utility vishwajeet jagtap Linux - Software 0 02-15-2013 09:44 AM
LXer: Libre Office Initial plans for the free office suite [German] LXer Syndicated Linux News 2 11-14-2010 05:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration