Debian: even after these steps, cannot install a package with Synaptic
Linux - NewbieThis 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
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.
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:
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.
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)
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
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.
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
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?
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.