LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2018, 01:03 PM   #1
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Rep: Reputation: 51
Thumbs down Debian: even after these steps, cannot install a package with Synaptic


Recently I discovered that I want to have Sqlitebrowser.

Should be easy to install - I expected. It is shown in Synaptic. Marked to install, it needed some dependencies. Before installing, Synaptic says: ~9MiB to install, ~2MiB to download. "Great, it is small" - I thought. But after clicking install, it would not work. I received these errors:

Code:
W: Não pôde encontrar http://deb.debian.org/debian/pool/main/q/
          qtbase-opensource-src/libqt5printsupport5_5.7.1+dfsg-3+b1_amd64.deb
  Não foi possível abrir arquivo /var/cache/apt/archives/partial
          /libqt5printsupport5_5.7.1+dfsg-3+b1_amd64.deb
          - open (2: Arquivo ou diretório não encontrado)
          [IP: 2a04:4e42:16::204 80]


W: Não pôde encontrar http://deb.debian.org/debian/pool/main/q/qcustomplot
           /libqcustomplot1.3_1.3.2+dfsg1-1_amd64.deb
  Não foi possível abrir arquivo /var/cache/apt/archives/partial
           /libqcustomplot1.3_1.3.2+dfsg1-1_amd64.deb - open
           (2: Arquivo ou diretório não encontrado) [IP: 151.101.92.204 80]


W: Não pôde encontrar http://deb.debian.org/debian/pool/main/q/qscintilla2
           /libqt5scintilla2-l10n_2.9.3+dfsg-4_all.deb
  Não foi possível abrir arquivo /var/cache/apt/archives/partial
           /libqt5scintilla2-l10n_2.9.3+dfsg-4_all.deb
           - open (2: Arquivo ou diretório não encontrado)
           [IP: 2a04:4e42:16::204 80]


W: Não pôde encontrar http://deb.debian.org/debian/pool/main/q/qscintilla2
           /libqt5scintilla2-12v5_2.9.3+dfsg-4_amd64.deb
  Não foi possível abrir arquivo /var/cache/apt/archives/partial
           /libqt5scintilla2-12v5_2.9.3+dfsg-4_amd64.deb
           - open (2: Arquivo ou diretório não encontrado)
           [IP: 151.101.92.204 80]


W: Não pôde encontrar http://deb.debian.org/debian/pool/main/q/
           qtbase-opensource-src/libqt5test5_5.7.1+dfsg-3+b1_amd64.deb
  Não foi possível abrir arquivo /var/cache/apt/archives/partial
           /libqt5test5_5.7.1+dfsg-3+b1_amd64.deb
           - open (2: Arquivo ou diretório não encontrado)
           [IP: 2a04:4e42:16::204 80]


W: Não pôde encontrar http://deb.debian.org/debian/pool/main/s/
           sqlitebrowser/sqlitebrowser_3.9.1-2_amd64.deb
  Não foi possível abrir arquivo /var/cache/apt/archives/partial
           /sqlitebrowser_3.9.1-2_amd64.deb
           - open (2: Arquivo ou diretório não encontrado)
           [IP: 151.101.92.204 80]
Translating the sentences, they mean:

1. "Não pôde encontrar" -> "Could not find"

2. "Não foi possível abrir arquivo" -> "Could not open file"

3. "Arquivo ou diretório não encontrado" -> "File or directory not found"

What should be wrong? I have changed Synaptic repositories before, with help in these fora.

A smaller question: the errors of file/dir not found, are they *consequence* of each of the previous errors of not finding the package?

Before coming here, I had an idea: reload package information. I did that, but the error stays the same. Checking the repositories from Synaptic, I have these:

http://imgbox.com/i4RU3Tbd

What should I do to have that program?
 
Old 05-29-2018, 01:12 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,790

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
it looks like something wrong with your dir /var/cache/apt/archives/partial. Probably it does not exist. Try to create it, although I'm not really sure if that solves this.
 
1 members found this post helpful.
Old 05-29-2018, 01:26 PM   #3
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51
Exclamation

The folder did not exist, created. That almost fixed it. It downloaded something. But in the end, a window is shown:

Quote:
(as super user)

The following details are available:

W: Download is performed unsandboxed as root as file '/var/cache/apt/archives/partial/libqt5printsupport5_5.7.1+dfsg-3+b1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permissão negada)
Do a 'chmod +x' of something?

Last edited by dedec0; 05-29-2018 at 01:32 PM.
 
Old 05-29-2018, 01:28 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
maybe you should repeat the command with LC_ALL=C prepended to it.
not sure how it works with sudo, maybe
Code:
LC_ALL=C sudo synaptic
so that we can see the errors in english.

also, your sources: the skype repo looks poisonous.
it says "stable" - but are you sure it means stretch?
 
1 members found this post helpful.
Old 05-29-2018, 01:50 PM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,790

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
that was explained: the user _apt has no right to read it. So chmod ...
 
1 members found this post helpful.
Old 05-29-2018, 01:51 PM   #6
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by ondoho View Post
maybe you should repeat the command with LC_ALL=C prepended to it.
not sure how it works with sudo, maybe
Code:
LC_ALL=C sudo synaptic
so that we can see the errors in english.

also, your sources: the skype repo looks poisonous.
it says "stable" - but are you sure it means stretch?
I (usually) execute Synaptic from Mate's menu. I will create a new item there for that command - I should have thought of it before ((ashamed)). The current command in the menu calls 'synaptic-pkexec' instead - I never imagined that. Using the terminal, I found that the only "syna*" command available here is 'synaptic-pkexec'. Strange - for me, at least. Is that normal?

The skype repository is there because I installed Skype some weeks ago. It updates itself from there, I suppose. This is not suspicious to me. Skype has very few options for Linux. I think that should be right, since it was chosen by Skype itself. They should not have different repos for each Debian version, I imagine. One download for several linuxes. In the page

skype.com/en/get-skype/skype-for-linux

we have only these downloads:

Quote:
Get Skype for Linux RPM
Get Skype for Linux DEB
Get Skype for Linux SNAP
Get Skype for Windows
Get Skype for Mac
Irony of things: the reason why I want that SQLite view is the history file of Skype, it is a main.db file in that format. And for strange reasons, I cannot export mine in the usual way, from the program itself.
 
Old 05-29-2018, 02:05 PM   #7
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51
Exclamation

Quote:
Originally Posted by pan64 View Post
that was explained: the user _apt has no right to read it. So chmod ...
Synaptic created the file in the directory root (me as) created. It should have the right permissions - is this a bug? But before reading your post, I was replying ondoho answer.

Anyway, in these last minutes several things happened, I forgot to comment something: after that read error, sqlitebrowser ran from menu (it opened a window, at least, was all I did before closing it).

Now, with your comment, I checked the partial folder: was empty! I got back to synaptic window and marked the sqlitebrowser to be reinstalled. It downloaded again and reinstalled. No message!

Only now, ending the words above, I thought: the package to be reinstalled is other, right?
libqt5printsupport5_5.7.1+dfsg-3+b1_amd64.deb

Give me a few minutes...
 
Old 05-29-2018, 02:11 PM   #8
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51
Question

Quote:
Originally Posted by dedec0 View Post
[...]

Only now, ending the words above, I thought: the package to be reinstalled is other, right?
libqt5printsupport5_5.7.1+dfsg-3+b1_amd64.deb

Give me a few minutes...
In Synaptic:

Searched for "libqt5printsupport5". Found one package, already marked as installed. Marked it to be reinstalled... applied changes... no message was shown, as expected from before things! Is this possible?
 
Old 05-29-2018, 03:47 PM   #9
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51
Arrow Is this thread solved?

Is this thread solved? I am just waiting answers or comments to what I said in #6, #7 and #8.

Quote:
Originally Posted by ondoho View Post
maybe you should repeat the command with LC_ALL=C prepended to it.
not sure how it works with sudo, maybe
Code:
LC_ALL=C sudo synaptic
so that we can see the errors in english.

also, your sources: the skype repo looks poisonous.
it says "stable" - but are you sure it means stretch?
I did not know that command would (does) not need ";" after "=C".
(:
 
Old 05-29-2018, 05:57 PM   #10
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
the LC_ALL=C part is just so the output is in English. I would simply run
Code:
$ sudo dpkg --configure --pending
just to make sure everything completed properly.
 
1 members found this post helpful.
Old 05-29-2018, 06:27 PM   #11
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51
Smile

Quote:
Originally Posted by AwesomeMachine View Post
the LC_ALL=C part is just so the output is in English. I would simply run
Code:
$ sudo dpkg --configure --pending
just to make sure everything completed properly.
I knew what LC_ALL=C does, sets an environment variable for the succeeding command. But I thought what a ";" would be needed to have any command in the same line (after a space, of course).

I did that command now. No output. Does that mean everything is all right?

As I said, I am just waiting answers or comments to what I said in #6, #7 and #8. I am not sure that what you just said answers their questions.

Last edited by dedec0; 05-29-2018 at 06:39 PM.
 
Old 05-29-2018, 10:43 PM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
looks like everything is OK for now.

Quote:
Originally Posted by dedec0 View Post
The skype repository is there because I installed Skype some weeks ago. It updates itself from there, I suppose. This is not suspicious to me.
dream on...
numerous are threads where people had the wrong google chrome repos in their lists (and franken'd their installs), i guess the same goes for microsuck.
 
1 members found this post helpful.
Old 05-30-2018, 02:18 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,790

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
Quote:
Originally Posted by dedec0 View Post
Synaptic created the file in the directory root (me as) created. It should have the right permissions - is this a bug? But before reading your post, I was replying ondoho answer.

Anyway, in these last minutes several things happened, I forgot to comment something: after that read error, sqlitebrowser ran from menu (it opened a window, at least, was all I did before closing it).

Now, with your comment, I checked the partial folder: was empty! I got back to synaptic window and marked the sqlitebrowser to be reinstalled. It downloaded again and reinstalled. No message!

Only now, ending the words above, I thought: the package to be reinstalled is other, right?
libqt5printsupport5_5.7.1+dfsg-3+b1_amd64.deb

Give me a few minutes...
synaptic usually works as root. But the package management system uses the user _apt and - because you created the folder yourself - I'm not really sure if the rights are correctly set.
 
1 members found this post helpful.
Old 05-30-2018, 08:06 AM   #14
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,372

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by pan64 View Post
synaptic usually works as root. But the package management system uses the user _apt and - because you created the folder yourself - I'm not really sure if the rights are correctly set.
I simply did 'sudo mkdir partial', in /var/cache/apt/archives/.

Right now, I checked if the rights of another folder created there, compared it with the partial folder already there:

Code:
me@here: ~
$  cd /var/cache/apt/archives/

me@here: /var/cache/apt/archives/
$  sudo mkdir z
[sudo] senha para me: 

me@here: /var/cache/apt/archives/
$   ls -l
total 0
0 -rw-r----- 1 root root  0 mai 29 13:55 lock
0 drwxr-xr-x 2 root root 40 mai 29 16:05 partial
0 drwxr-xr-x 2 root root 40 mai 30 09:25 z

me@here: /var/cache/apt/archives/
$
Yesterday, in the reinstall step, because the download progress bar took a couple of seconds to end, similar to the first time (if not equal) I assumed it was downloaded again. Further, in Synaptic:

Settings > Preferences > [tab] Files

1. In "Temporary files", "Erase downloaded files after install" is and was checked.

2. In "History files", "Keep history" is and was checked.

How do I find something to install that will require the same thing that caused the problem yesterday? The error looked (for me) as caused by only one package, from a few installed - maybe because it was the first? Installing now should answer if '755 root:root' is good enough. The only thing to be missing is 'x' right, right?

Funny that the lock file exist without any synaptic windows opened, and also nothing (that I know) apt related is running. I tried that listing in different moments - same result. Also tried to open synaptic (in Debian it asks password before opening, in Ubuntu it only asked to apply changes), no problem for it rooting.

Last edited by dedec0; 05-30-2018 at 08:13 AM.
 
Old 05-30-2018, 08:14 AM   #15
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
If you want, we can go back to the basics, and start with:

Code:
sudo apt-get check

sudo dpkg --audit
 
1 members found this post helpful.
  


Reply

Tags
debian repository


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Synaptic: How do I know what package(s) to install? kathbeau Linux - Newbie 2 11-20-2014 11:39 AM
[SOLVED] Debian 6.0.1a i686 debian synaptic package manager Faithfully10 Debian 2 05-23-2011 05:35 PM
What are the steps to build and install a Slackware package from a RPM package? sudeepkulkarni Slackware 6 04-25-2011 12:51 PM
Debian Synaptic Package Manager error: xserver-xorg stripped craig61107 Linux - Newbie 1 02-10-2011 07:15 AM
debian etch 4.0 synaptic package manager bloodyscript Linux - Software 4 07-11-2007 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:24 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