5

I'm trying to install Qt Creator to my Raspberry Pi 3 for a GUI project. However when I use the command

sudo apt-get install qt5-default

it gives an error saying that:

E:Unable to fetch some archives,maybe run apt-get update or try with --fix-missing?

As I considered the advice of my raspberry pi I tried the command sudo apt-get update. However I got errors again saying

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

Apparently I am doing something wrong and any help will be appreciated.

Edit for clearance: Normally I was able to get updates without any errors. However after trying to install Qt it started giving errors as I tried to update.

Bex
  • 2,929
  • 3
  • 26
  • 34
Avio
  • 63
  • 1
  • 1
  • 9

2 Answers2

5

Here is a working way to install Qt5. For Qt5 there is no need for dev-tools. So this command is not relevant:

sudo apt-get install qt4-dev-tools

The two commands needed to install Qt5 fully are:

  1. sudo apt-get install qt5-default (installs Qt version 5.7.1)
  2. sudo apt-get install qtcreator

Hope this helps.

Greenonline
  • 2,969
  • 5
  • 27
  • 38
Chandra
  • 51
  • 1
  • 2
2

Not particularly sure why you are trying to install that package, the App Note for installing Qt Creator on Raspberry Pi says to install

sudo apt-get install qt4-dev-tools

and

sudo apt-get install qtcreator

Some extra packages are also listed.

I personally keep Qt Creator on my PC which can compile programs a lot faster during development and then follow their Build Guide so I can compile it naively on a releasable version.

pfl
  • 341
  • 1
  • 6